diff options
Diffstat (limited to 'src/northbridge/amd/amdfam10/get_pci1234.c')
-rw-r--r-- | src/northbridge/amd/amdfam10/get_pci1234.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/northbridge/amd/amdfam10/get_pci1234.c b/src/northbridge/amd/amdfam10/get_pci1234.c index 41c2b33152..a6f679ecad 100644 --- a/src/northbridge/amd/amdfam10/get_pci1234.c +++ b/src/northbridge/amd/amdfam10/get_pci1234.c @@ -73,29 +73,29 @@ void get_pci1234(void) //2. so at the same time we need update hsdn with hcdn_reg here // printk(BIOS_DEBUG, "sysconf.ht_c_num = %02d\n", sysconf.ht_c_num); - for(j=0;j<sysconf.ht_c_num;j++) { + for (j=0;j<sysconf.ht_c_num;j++) { u32 dwordx; dwordx = sysconf.ht_c_conf_bus[j]; // printk(BIOS_DEBUG, "sysconf.ht_c_conf_bus[%02d] = %08x\n", j, sysconf.ht_c_conf_bus[j]); dwordx &=0xfffffffd; //keep bus num, node_id, link_num, enable bits - if((dwordx & 0x7fd) == dword) { //SBLINK + if ((dwordx & 0x7fd) == dword) { //SBLINK sysconf.pci1234[0] = dwordx; sysconf.hcdn[0] = sysconf.hcdn_reg[j]; continue; } - if((dwordx & 1)) { + if ((dwordx & 1)) { // We need to find out the number of HC // for exact match - for(i=1;i<sysconf.hc_possible_num;i++) { - if((dwordx & 0x7fc) == (sysconf.pci1234[i] & 0x7fc)) { // same node and same linkn + for (i=1;i<sysconf.hc_possible_num;i++) { + if ((dwordx & 0x7fc) == (sysconf.pci1234[i] & 0x7fc)) { // same node and same linkn sysconf.pci1234[i] = dwordx; sysconf.hcdn[i] = sysconf.hcdn_reg[j]; break; } } // for 0xffc match or same node - for(i=1;i<sysconf.hc_possible_num;i++) { - if((dwordx & 0x7fc) == (dwordx & sysconf.pci1234[i] & 0x7fc)) { + for (i=1;i<sysconf.hc_possible_num;i++) { + if ((dwordx & 0x7fc) == (dwordx & sysconf.pci1234[i] & 0x7fc)) { sysconf.pci1234[i] = dwordx; sysconf.hcdn[i] = sysconf.hcdn_reg[j]; break; @@ -104,8 +104,8 @@ void get_pci1234(void) } } - for(i=1;i<sysconf.hc_possible_num;i++) { - if(!(sysconf.pci1234[i] & 1)) { + for (i=1;i<sysconf.hc_possible_num;i++) { + if (!(sysconf.pci1234[i] & 1)) { sysconf.pci1234[i] = 0; sysconf.hcdn[i] = 0x20202020; } |