Lines 292-298
static void setup_nhm(void)
Link Here
|
292 |
|
292 |
|
293 |
/* First, locate the PCI bus where the MCH is located */ |
293 |
/* First, locate the PCI bus where the MCH is located */ |
294 |
|
294 |
|
295 |
for(i = 0; i < sizeof(possible_nhm_bus); i++) { |
295 |
for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { |
296 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
296 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
297 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
297 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
298 |
vid &= 0xFFFF; |
298 |
vid &= 0xFFFF; |
Lines 327-333
static void setup_nhm32(void)
Link Here
|
327 |
ctrl.mode = ECC_NONE; |
327 |
ctrl.mode = ECC_NONE; |
328 |
|
328 |
|
329 |
/* First, locate the PCI bus where the MCH is located */ |
329 |
/* First, locate the PCI bus where the MCH is located */ |
330 |
for(i = 0; i < sizeof(possible_nhm_bus); i++) { |
330 |
for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { |
331 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
331 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); |
332 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
332 |
pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); |
333 |
vid &= 0xFFFF; |
333 |
vid &= 0xFFFF; |