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