iPXE
|
PCI configuration space backup and restoration. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | pci_backup_excluded (struct pci_device *pci, unsigned int offset, const uint8_t *exclude) |
Check PCI configuration space offset against exclusion list. More... | |
void | pci_backup (struct pci_device *pci, struct pci_config_backup *backup, unsigned int limit, const uint8_t *exclude) |
Back up PCI configuration space. More... | |
void | pci_restore (struct pci_device *pci, struct pci_config_backup *backup, unsigned int limit, const uint8_t *exclude) |
Restore PCI configuration space. More... | |
PCI configuration space backup and restoration.
Definition in file pcibackup.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Check PCI configuration space offset against exclusion list.
pci | PCI device |
offset | Offset within PCI configuration space |
exclude | PCI configuration space backup exclusion list, or NULL |
Definition at line 44 of file pcibackup.c.
References DBGC, offset, and PCI_CONFIG_BACKUP_EXCLUDE_END.
Referenced by pci_backup(), and pci_restore().
void pci_backup | ( | struct pci_device * | pci, |
struct pci_config_backup * | backup, | ||
unsigned int | limit, | ||
const uint8_t * | exclude | ||
) |
Back up PCI configuration space.
pci | PCI device |
backup | PCI configuration space backup |
limit | Maximum offset in PCI configuration space |
exclude | PCI configuration space backup exclusion list, or NULL |
Definition at line 67 of file pcibackup.c.
References pci_config_backup::dwords, limit, offset, pci_backup_excluded(), and pci_read_config_dword().
Referenced by arbel_reset(), hermon_reset(), pci_reset(), and qib7322_reset().
void pci_restore | ( | struct pci_device * | pci, |
struct pci_config_backup * | backup, | ||
unsigned int | limit, | ||
const uint8_t * | exclude | ||
) |
Restore PCI configuration space.
pci | PCI device |
backup | PCI configuration space backup |
limit | Maximum offset in PCI configuration space |
exclude | PCI configuration space backup exclusion list, or NULL |
Definition at line 87 of file pcibackup.c.
References pci_config_backup::dwords, limit, offset, pci_backup_excluded(), and pci_write_config_dword().
Referenced by arbel_reset(), hermon_reset(), pci_reset(), and qib7322_reset().