iPXE
|
Non-Volatile Storage using Vital Product Data. More...
Go to the source code of this file.
Data Structures | |
struct | nvs_vpd_device |
An NVS VPD device. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | nvs_vpd_init (struct nvs_vpd_device *nvsvpd, struct pci_device *pci) |
Initialise NVS VPD device. More... | |
void | nvs_vpd_nvo_init (struct nvs_vpd_device *nvsvpd, unsigned int field, struct nvo_block *nvo, struct refcnt *refcnt) |
Initialise non-volatile option storage within NVS VPD device. More... | |
Non-Volatile Storage using Vital Product Data.
Definition in file nvsvpd.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
int nvs_vpd_init | ( | struct nvs_vpd_device * | nvsvpd, |
struct pci_device * | pci | ||
) |
Initialise NVS VPD device.
nvsvpd | NVS VPD device |
pci | PCI device |
rc | Return status code |
Definition at line 178 of file nvsvpd.c.
References DBGC, nvs_vpd_device::nvs, nvs_vpd_read(), nvs_vpd_write(), PCI_ARGS, PCI_FMT, pci_vpd_init(), rc, nvs_device::read, strerror(), nvs_vpd_device::vpd, and nvs_device::write.
Referenced by hermon_probe().
void nvs_vpd_nvo_init | ( | struct nvs_vpd_device * | nvsvpd, |
unsigned int | field, | ||
struct nvo_block * | nvo, | ||
struct refcnt * | refcnt | ||
) |
Initialise non-volatile option storage within NVS VPD device.
nvsvpd | NVS VPD device |
field | VPD field descriptor |
nvo | Non-volatile options block |
refcnt | Containing object reference counter, or NULL |
Definition at line 220 of file nvsvpd.c.
References address, DBGC, len, nvo_init(), nvs_vpd_device::nvs, nvs_vpd_nvo_resize(), pci_vpd::pci, PCI_ARGS, PCI_FMT, PCI_VPD_FIELD_ARGS, PCI_VPD_FIELD_FMT, pci_vpd_find(), rc, and nvs_vpd_device::vpd.
Referenced by hermon_probe().