diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/pcivpd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/pcivpd.h b/src/include/ipxe/pcivpd.h index 469ec29f8..0abf8a956 100644 --- a/src/include/ipxe/pcivpd.h +++ b/src/include/ipxe/pcivpd.h @@ -32,6 +32,9 @@ struct pci_vpd_field { uint8_t len; } __attribute__ (( packed )); +/** Maximum PCI VPD field length */ +#define PCI_VPD_MAX_LEN 0xff + /** Construct PCI VPD field descriptor * * @v tag ISAPnP tag @@ -172,5 +175,7 @@ extern int pci_vpd_write ( struct pci_vpd *vpd, unsigned int address, const void *buf, size_t len ); extern int pci_vpd_find ( struct pci_vpd *vpd, unsigned int field, unsigned int *address, size_t *len ); +extern int pci_vpd_resize ( struct pci_vpd *vpd, unsigned int field, + size_t len, unsigned int *address ); #endif /* _IPXE_PCIVPD_H */ |
