summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/pcivpd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ipxe/pcivpd.h b/src/include/ipxe/pcivpd.h
index 8b973ea1c..469ec29f8 100644
--- a/src/include/ipxe/pcivpd.h
+++ b/src/include/ipxe/pcivpd.h
@@ -134,6 +134,17 @@ struct pci_vpd {
};
/**
+ * Check for presence of PCI VPD
+ *
+ * @v vpd PCI VPD
+ * @ret is_present VPD is present
+ */
+static inline __attribute__ (( always_inline )) int
+pci_vpd_is_present ( struct pci_vpd *vpd ) {
+ return ( vpd->cap != 0 );
+}
+
+/**
* Check if PCI VPD read cache is valid
*
* @v vpd PCI VPD