From 4403f6082372d069e3cabe0918d9af5f9c1dccf6 Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Wed, 3 Nov 2004 00:47:40 +0000 Subject: *** empty log message *** git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1736 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/amd/amdk8/incoherent_ht.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/amdk8/incoherent_ht.c b/src/northbridge/amd/amdk8/incoherent_ht.c index d55037c9b7..c8e0770534 100644 --- a/src/northbridge/amd/amdk8/incoherent_ht.c +++ b/src/northbridge/amd/amdk8/incoherent_ht.c @@ -246,8 +246,6 @@ static int ht_setup_chain(device_t udev, unsigned upos) } struct ht_chain { - device_t udev; - unsigned upos; unsigned devreg; }; static int ht_setup_chainx(device_t udev, unsigned upos, unsigned bus) @@ -344,20 +342,24 @@ static int ht_setup_chains(const struct ht_chain *ht_c, int ht_c_num) dword |= (reg & 0xffff0000)>>8; pci_write_config32( PCI_DEV(0, devpos,0), regpos , dword); #if 0 - print_debug("PCI_DEV=(0,0x"); + print_debug("udev=(0,0x"); print_debug_hex8(devpos); print_debug(",0) 0x"); print_debug_hex8(regpos); print_debug("="); print_debug_hex32(dword); - print_debug("\r\n"); #endif /* Make certain the HT bus is not enumerated */ ht_collapse_previous_enumeration(busn); - upos = ht_c[i].upos; - udev = ht_c[i].udev; + upos = ((reg & 0xf00)>>8) * 0x20 + 0x80; + udev = PCI_DEV(0, devpos, 0); +#if 0 + print_debug("\tupos=0x"); + print_debug_hex32(upos); + print_debug("\r\n"); +#endif reset_needed |= ht_setup_chainx(udev,upos,busn ); -- cgit v1.2.3