include/device: Move inline functions from pci_def.h to pci.h
pci_def.h is supposed to only contain definitions, such that it may be included in assembly files. Declaration of functions in said file prevents that. Change-Id: I0f90a74291c8a2ef7a1e1027d2d2182f896050fb Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: https://review.coreboot.org/13300 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
0cd9ff8987
commit
420caafee8
@ -119,6 +119,13 @@ unsigned pci_find_capability(device_t dev, unsigned cap);
|
||||
void pci_early_bridge_init(void);
|
||||
int pci_early_device_probe(u8 bus, u8 dev, u32 mmio_base);
|
||||
|
||||
#ifndef __ROMCC__
|
||||
static inline int pci_base_address_is_memory_space(unsigned int attr)
|
||||
{
|
||||
return (attr & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_MEMORY;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_PCI */
|
||||
|
||||
#endif /* PCI_H */
|
||||
|
Reference in New Issue
Block a user