device/pci.h: change #ifdef argument to __SIMPLE_DEVICE__
Change the argument to #ifdef from __PRE_RAM__ to __SIMPLE_DEVICE__ in order to account for the coreboot stages that do not define device_t and are not __PRE_RAM__ (i.e. smm) device_t Change-Id: Ic6e9b504803622b60b5217c9432ce57caefc5065 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/16369 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
6fc430b3eb
commit
45b3b82f18
|
@ -108,13 +108,13 @@ static inline const struct pci_operations *ops_pci(device_t dev)
|
||||||
|
|
||||||
#endif /* ! __SIMPLE_DEVICE__ */
|
#endif /* ! __SIMPLE_DEVICE__ */
|
||||||
|
|
||||||
#ifdef __PRE_RAM__
|
#ifdef __SIMPLE_DEVICE__
|
||||||
unsigned pci_find_next_capability(pci_devfn_t dev, unsigned cap, unsigned last);
|
unsigned pci_find_next_capability(pci_devfn_t dev, unsigned cap, unsigned last);
|
||||||
unsigned pci_find_capability(pci_devfn_t dev, unsigned cap);
|
unsigned pci_find_capability(pci_devfn_t dev, unsigned cap);
|
||||||
#else /* !__PRE_RAM__ */
|
#else /* !__SIMPLE_DEVICE__ */
|
||||||
unsigned pci_find_next_capability(device_t dev, unsigned cap, unsigned last);
|
unsigned pci_find_next_capability(device_t dev, unsigned cap, unsigned last);
|
||||||
unsigned pci_find_capability(device_t dev, unsigned cap);
|
unsigned pci_find_capability(device_t dev, unsigned cap);
|
||||||
#endif /* __PRE_RAM__ */
|
#endif /* __SIMPLE_DEVICE__ */
|
||||||
|
|
||||||
void pci_early_bridge_init(void);
|
void pci_early_bridge_init(void);
|
||||||
int pci_early_device_probe(u8 bus, u8 dev, u32 mmio_base);
|
int pci_early_device_probe(u8 bus, u8 dev, u32 mmio_base);
|
||||||
|
|
Loading…
Reference in New Issue