iPXE
|
PCI configuration space backup and restoration. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | pci_config_backup |
A PCI configuration space backup. More... | |
Macros | |
#define | PCI_CONFIG_BACKUP_ALL 0x100 |
Limit of PCI configuration space. More... | |
#define | PCI_CONFIG_BACKUP_STANDARD 0x40 |
Limit of standard PCI configuration space. More... | |
#define | PCI_CONFIG_BACKUP_EXCLUDE_END 0xff |
PCI configuration space backup exclusion list end marker. More... | |
#define | PCI_CONFIG_BACKUP_EXCLUDE(...) { __VA_ARGS__, PCI_CONFIG_BACKUP_EXCLUDE_END } |
Define a PCI configuration space backup exclusion list. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
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.h.
#define PCI_CONFIG_BACKUP_ALL 0x100 |
Limit of PCI configuration space.
Definition at line 15 of file pcibackup.h.
#define PCI_CONFIG_BACKUP_STANDARD 0x40 |
Limit of standard PCI configuration space.
Definition at line 18 of file pcibackup.h.
#define PCI_CONFIG_BACKUP_EXCLUDE_END 0xff |
PCI configuration space backup exclusion list end marker.
Definition at line 26 of file pcibackup.h.
#define PCI_CONFIG_BACKUP_EXCLUDE | ( | ... | ) | { __VA_ARGS__, PCI_CONFIG_BACKUP_EXCLUDE_END } |
Define a PCI configuration space backup exclusion list.
Definition at line 29 of file pcibackup.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
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().