1#ifndef _IPXE_EFI_PCI_API_H
2#define _IPXE_EFI_PCI_API_H
14#define PCIAPI_PREFIX_efi
16#define PCIAPI_PREFIX_efi __efi_
20#define EFIPCI_WIDTH_BYTE 0
21#define EFIPCI_WIDTH_WORD 1
22#define EFIPCI_WIDTH_DWORD 2
24#define EFIPCI_LOCATION( _offset, _width ) \
25 ( (_offset) | ( (_width) << 16 ) )
26#define EFIPCI_OFFSET( _location ) ( (_location) & 0xffff )
27#define EFIPCI_WIDTH( _location ) ( (_location) >> 16 )
34 unsigned long value );
95 *
value = 0xffffffffUL;
pseudo_bit_t value[0x00020]
#define EFIPCI_WIDTH_WORD
int efipci_read(struct pci_device *pci, unsigned long location, void *value)
Read from PCI configuration space.
#define EFIPCI_WIDTH_BYTE
#define EFIPCI_LOCATION(_offset, _width)
int efipci_write(struct pci_device *pci, unsigned long location, unsigned long value)
Write to PCI configuration space.
#define EFIPCI_WIDTH_DWORD
#define __always_inline
Declare a function to be always inline.
#define __unused
Declare a variable or data structure as unused.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
int pci_can_probe(struct pci_device *pci)
Check if PCI bus probing is allowed.
int pci_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
int pci_write_config_word(struct pci_device *pci, unsigned int where, uint16_t value)
Write 16-bit word to PCI configuration space.
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.
#define PCIAPI_INLINE(_subsys, _api_func)
Calculate static inline PCI I/O API function name.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
static __always_inline int unsigned int where