From e67c79b8560fbe50e1dad23149e8b90dc5358b56 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 10 Jan 2011 03:34:34 +0000 Subject: [pci] Add ability to resize a VPD field Signed-off-by: Michael Brown --- src/include/ipxe/pcivpd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include') 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 */ -- cgit v1.2.3-55-g7522