iPXE
|
Null PCI API. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | PCIAPI_PREFIX_null __null_ |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static __always_inline int | PCIAPI_INLINE (null, pci_can_probe)(void) |
Check if PCI bus probing is allowed. More... | |
static __always_inline void | PCIAPI_INLINE (null, pci_discover)(uint32_t busdevfn __unused |
Find next PCI bus:dev.fn address range in system. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_read_config_byte)(struct pci_device *pci __unused |
Read byte from PCI configuration space via PCI BIOS. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_read_config_word)(struct pci_device *pci __unused |
Read word from PCI configuration space via PCI BIOS. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_read_config_dword)(struct pci_device *pci __unused |
Read dword from PCI configuration space via PCI BIOS. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_write_config_byte)(struct pci_device *pci __unused |
Write byte to PCI configuration space via PCI BIOS. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_write_config_word)(struct pci_device *pci __unused |
Write word to PCI configuration space via PCI BIOS. More... | |
static __always_inline int | PCIAPI_INLINE (null, pci_write_config_dword)(struct pci_device *pci __unused |
Write dword to PCI configuration space via PCI BIOS. More... | |
static __always_inline void * | PCIAPI_INLINE (null, pci_ioremap)(struct pci_device *pci __unused |
Map PCI bus address as an I/O address. More... | |
Variables | |
static __always_inline void struct pci_range * | range |
range | count = 0 |
static __always_inline int unsigned int where | __unused |
static __always_inline int unsigned int where uint8_t * | value |
return | |
Null PCI API.
Definition in file null_pci.h.
#define PCIAPI_PREFIX_null __null_ |
Definition at line 17 of file null_pci.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Check if PCI bus probing is allowed.
ok | Bus probing is allowed |
Definition at line 28 of file null_pci.h.
|
inlinestatic |
Find next PCI bus:dev.fn address range in system.
busdevfn | Starting PCI bus:dev.fn address |
range | PCI bus:dev.fn address range to fill in |
|
inlinestatic |
Read byte from PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value read |
rc | Return status code |
|
inlinestatic |
Read word from PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value read |
rc | Return status code |
|
inlinestatic |
Read dword from PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value read |
rc | Return status code |
|
inlinestatic |
Write byte to PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value to be written |
rc | Return status code |
|
inlinestatic |
Write word to PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value to be written |
rc | Return status code |
|
inlinestatic |
Write dword to PCI configuration space via PCI BIOS.
pci | PCI device |
where | Location within PCI configuration space |
value | Value to be written |
rc | Return status code |
|
inlinestatic |
Map PCI bus address as an I/O address.
bus_addr | PCI bus address |
len | Length of region |
io_addr | I/O address, or NULL on error |
__always_inline void struct pci_range* range |
Definition at line 40 of file null_pci.h.
range count = 0 |
Definition at line 43 of file null_pci.h.
__always_inline void unsigned long bus_addr size_t len __unused |
Definition at line 56 of file null_pci.h.
__always_inline int unsigned int where uint32_t* value |
Definition at line 57 of file null_pci.h.
return |
Definition at line 59 of file null_pci.h.