Fix all build problems on PPC except the _SDA_BASE issues caused by the

code expecting too old binutils(?).

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4007 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2009-03-15 10:04:41 +00:00
committed by Stefan Reinauer
parent 8f556be766
commit 6d07c932bb
6 changed files with 15 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
#ifndef ARCH_PPC_PCI_OPS_H
#define ARCH_PPC_PCI_OPS_H
const struct pci_bus_operations pci_ppc_conf1;
extern const struct pci_bus_operations pci_ppc_conf1;
#endif /* ARCH_PPC_PCI_OPS_H */

View File

@@ -4,12 +4,12 @@
/*
* Direct access to PCI hardware...
*/
extern uint8_t pci_ppc_read_config8(unsigned char, int, int);
extern uint16_t pci_ppc_read_config16(unsigned char, int, int);
extern uint32_t pci_ppc_read_config32(unsigned char, int, int);
extern int pci_ppc_write_config8(unsigned char, int, int, uint8_t);
extern int pci_ppc_write_config16(unsigned char, int, int, uint16_t);
extern int pci_ppc_write_config32(unsigned char, int, int, uint32_t);
uint8_t pci_ppc_read_config8(unsigned char, int, int);
uint16_t pci_ppc_read_config16(unsigned char, int, int);
uint32_t pci_ppc_read_config32(unsigned char, int, int);
int pci_ppc_write_config8(unsigned char, int, int, uint8_t);
int pci_ppc_write_config16(unsigned char, int, int, uint16_t);
int pci_ppc_write_config32(unsigned char, int, int, uint32_t);
#define CONFIG_CMD(bus,devfn,where) \
((bus << 16) | (devfn << 8) | (where & ~3) | 0x80000000)