iPXE
pcibackup.h
Go to the documentation of this file.
1 #ifndef _IPXE_PCIBACKUP_H
2 #define _IPXE_PCIBACKUP_H
3 
4 /** @file
5  *
6  * PCI configuration space backup and restoration
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <stdint.h>
13 
14 /** A PCI configuration space backup */
17 };
18 
19 /** PCI configuration space backup exclusion list end marker */
20 #define PCI_CONFIG_BACKUP_EXCLUDE_END 0xff
21 
22 /** Define a PCI configuration space backup exclusion list */
23 #define PCI_CONFIG_BACKUP_EXCLUDE(...) \
24  { __VA_ARGS__, PCI_CONFIG_BACKUP_EXCLUDE_END }
25 
26 extern void pci_backup ( struct pci_device *pci,
27  struct pci_config_backup *backup,
28  const uint8_t *exclude );
29 extern void pci_restore ( struct pci_device *pci,
30  struct pci_config_backup *backup,
31  const uint8_t *exclude );
32 
33 #endif /* _IPXE_PCIBACKUP_H */
void pci_restore(struct pci_device *pci, struct pci_config_backup *backup, const uint8_t *exclude)
Restore PCI configuration space.
Definition: pcibackup.c:85
void pci_backup(struct pci_device *pci, struct pci_config_backup *backup, const uint8_t *exclude)
Back up PCI configuration space.
Definition: pcibackup.c:66
A PCI device.
Definition: pci.h:187
A PCI configuration space backup.
Definition: pcibackup.h:15
unsigned char uint8_t
Definition: stdint.h:10
unsigned int uint32_t
Definition: stdint.h:12
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint32_t dwords[64]
Definition: pcibackup.h:16