1 #ifndef _IPXE_PCIBACKUP_H 2 #define _IPXE_PCIBACKUP_H 15 #define PCI_CONFIG_BACKUP_ALL 0x100 18 #define PCI_CONFIG_BACKUP_STANDARD 0x40 26 #define PCI_CONFIG_BACKUP_EXCLUDE_END 0xff 29 #define PCI_CONFIG_BACKUP_EXCLUDE(...) \ 30 { __VA_ARGS__, PCI_CONFIG_BACKUP_EXCLUDE_END } void pci_backup(struct pci_device *pci, struct pci_config_backup *backup, unsigned int limit, const uint8_t *exclude)
Back up PCI configuration space.
uint32_t dwords[PCI_CONFIG_BACKUP_ALL/sizeof(uint32_t)]
#define PCI_CONFIG_BACKUP_ALL
Limit of PCI configuration space.
void pci_restore(struct pci_device *pci, struct pci_config_backup *backup, unsigned int limit, const uint8_t *exclude)
Restore PCI configuration space.
A PCI configuration space backup.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)