Fix implicit declarations of pci_read_config32 and pci_write_config32 in
authorMaggie Li <Maggie.li@amd.com>
Tue, 23 Dec 2008 02:22:07 +0000 (02:22 +0000)
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Tue, 23 Dec 2008 02:22:07 +0000 (02:22 +0000)
the SB600 code.

Signed-off-by: Maggie Li <Maggie.li@amd.com>
Reviewed-by: Zheng bao <Zheng.bao@amd.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3837 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/southbridge/amd/sb600/sb600_reset.c

index 68913b484603d47cb140de2f759a293c2086e565..d6ea995a5cb13f065f5d4ef81fea0f51ba875235 100644 (file)
 
 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)