diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-23 19:16:30 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-23 19:16:30 +0000 |
commit | 116ec61844982961aab8f89f1dfee1572ffac843 (patch) | |
tree | 37ec5a8bb9ddde4001c77eeb57ea4d1e8bb6a84e /src/northbridge/amd/amdk8/amdk8_f_pci.c | |
parent | 1ad9f29886a547d597b609d496512d151b5c6531 (diff) |
zero warnings days...
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5484 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdk8/amdk8_f_pci.c')
-rw-r--r-- | src/northbridge/amd/amdk8/amdk8_f_pci.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/northbridge/amd/amdk8/amdk8_f_pci.c b/src/northbridge/amd/amdk8/amdk8_f_pci.c index 607fc6c73e..d89dadc0d6 100644 --- a/src/northbridge/amd/amdk8/amdk8_f_pci.c +++ b/src/northbridge/amd/amdk8/amdk8_f_pci.c @@ -1,6 +1,7 @@ #ifndef AMDK8_F_PCI_C - #define AMDK8_F_PCI_C + +#ifdef UNUSED_CODE /* bit [10,8] are dev func, bit[1,0] are dev index */ static uint32_t pci_read_config32_index(device_t dev, uint32_t index_reg, uint32_t index) { @@ -15,16 +16,14 @@ static uint32_t pci_read_config32_index(device_t dev, uint32_t index_reg, uint32 static void pci_write_config32_index(device_t dev, uint32_t index_reg, uint32_t index, uint32_t data) { - pci_write_config32(dev, index_reg, index); pci_write_config32(dev, index_reg + 0x4, data); - } +#endif static uint32_t pci_read_config32_index_wait(device_t dev, uint32_t index_reg, uint32_t index) { - uint32_t dword; index &= ~(1<<30); @@ -41,7 +40,6 @@ static uint32_t pci_read_config32_index_wait(device_t dev, uint32_t index_reg, u static void pci_write_config32_index_wait(device_t dev, uint32_t index_reg, uint32_t index, uint32_t data) { - uint32_t dword; pci_write_config32(dev, index_reg + 0x4, data); @@ -51,7 +49,6 @@ static void pci_write_config32_index_wait(device_t dev, uint32_t index_reg, uint do { dword = pci_read_config32(dev, index_reg); } while (!(dword & (1<<31))); - } #endif |