aboutsummaryrefslogtreecommitdiff
path: root/include/vpd.h
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-01-13 17:56:17 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-16 09:55:43 +1100
commitc134dbfeaa1f24c892919b483c3fc00a05822efb (patch)
treef519bd0d6dcf9c639fe4c7e9e95378bc99e62511 /include/vpd.h
parent45b1170171775ad3df994da69933f2f8c659c398 (diff)
downloadskiboot-c134dbfeaa1f24c892919b483c3fc00a05822efb.zip
skiboot-c134dbfeaa1f24c892919b483c3fc00a05822efb.tar.gz
skiboot-c134dbfeaa1f24c892919b483c3fc00a05822efb.tar.bz2
vpd: add vpd_valid() to check keyword VPD blobs
Adds a function to check whether a blob is a valid IBM ASCII keyword VPD blob. This allows us to recognise when we do and do not have a VPD blob and act accordingly. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [stewart@linux.vnet.ibm.com: check if initial 0x84 exists. Spotted by Vasant] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/vpd.h')
-rw-r--r--include/vpd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vpd.h b/include/vpd.h
index bc60d81..02bbde2 100644
--- a/include/vpd.h
+++ b/include/vpd.h
@@ -34,6 +34,8 @@ const void *vpd_find(const void *vpd, size_t vpd_size,
const char *record, const char *keyword,
uint8_t *sz);
+bool vpd_valid(const void *vvpd, size_t vpd_size);
+
/* Add model property to dt_root */
void add_dtb_model(void);