From b96af1ea60cf4f0c7c40901e739959aa1df8acae Mon Sep 17 00:00:00 2001 From: Maggie Li Date: Tue, 23 Dec 2008 02:22:07 +0000 Subject: Fix implicit declarations of pci_read_config32 and pci_write_config32 in the SB600 code. Signed-off-by: Maggie Li Reviewed-by: Zheng bao Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3837 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/sb600/sb600_reset.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/southbridge/amd') diff --git a/src/southbridge/amd/sb600/sb600_reset.c b/src/southbridge/amd/sb600/sb600_reset.c index 68913b4846..d6ea995a5c 100644 --- a/src/southbridge/amd/sb600/sb600_reset.c +++ b/src/southbridge/amd/sb600/sb600_reset.c @@ -26,6 +26,30 @@ typedef u32 device_t; +static void pci_write_config8(device_t dev, unsigned where, unsigned char value) +{ + unsigned addr; + addr = (dev>>4) | where; + outl(0x80000000 | (addr & ~3), 0xCF8); + outb(value, 0xCFC + (addr & 3)); +} + +static void pci_write_config32(device_t dev, unsigned where, unsigned value) +{ + unsigned addr; + addr = (dev>>4) | where; + outl(0x80000000 | (addr & ~3), 0xCF8); + outl(value, 0xCFC); +} + +static unsigned pci_read_config32(device_t dev, unsigned where) +{ + unsigned addr; + addr = (dev>>4) | where; + outl(0x80000000 | (addr & ~3), 0xCF8); + return inl(0xCFC); +} + #include "../../../northbridge/amd/amdk8/reset_test.c" void hard_reset(void) -- cgit v1.2.3