You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nvsvpd.h 649B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _IPXE_NVSVPD_H
  2. #define _IPXE_NVSVPD_H
  3. /**
  4. * @file
  5. *
  6. * Non-Volatile Storage using Vital Product Data
  7. *
  8. */
  9. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  10. #include <ipxe/nvs.h>
  11. #include <ipxe/pcivpd.h>
  12. struct nvo_block;
  13. struct refcnt;
  14. /** An NVS VPD device */
  15. struct nvs_vpd_device {
  16. /** NVS device */
  17. struct nvs_device nvs;
  18. /** PCI VPD device */
  19. struct pci_vpd vpd;
  20. };
  21. extern int nvs_vpd_init ( struct nvs_vpd_device *nvsvpd,
  22. struct pci_device *pci );
  23. extern void nvs_vpd_nvo_init ( struct nvs_vpd_device *nvsvpd,
  24. unsigned int field, struct nvo_block *nvo,
  25. struct refcnt *refcnt );
  26. #endif /* IPXE_NVSVPD_H */