aboutsummaryrefslogtreecommitdiff
path: root/include/ipmi.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2014-12-01 16:00:27 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-02 17:41:48 +1100
commitb64d1426149d54e2926fab145d185f3c6fc8b4ed (patch)
tree2eff2295b4f022f29f20339a65ec57a8a6c51ad1 /include/ipmi.h
parent0f8acff8d61accde3b3cd69327a10a94bac92088 (diff)
downloadskiboot-b64d1426149d54e2926fab145d185f3c6fc8b4ed.zip
skiboot-b64d1426149d54e2926fab145d185f3c6fc8b4ed.tar.gz
skiboot-b64d1426149d54e2926fab145d185f3c6fc8b4ed.tar.bz2
ipmi/fru: Add support for populating fru data
This patch adds basic support for populating some fru data. Currently we only support adding the skiboot version number to the product information area. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r--include/ipmi.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ipmi.h b/include/ipmi.h
index 42906e6..8c178f5 100644
--- a/include/ipmi.h
+++ b/include/ipmi.h
@@ -84,6 +84,7 @@
#define IPMI_NETFN_STORAGE 0x0a
#define IPMI_NETFN_APP 0x06
+#define IPMI_WRITE_FRU IPMI_CODE(IPMI_NETFN_STORAGE, 0x12)
#define IPMI_GET_SEL_INFO IPMI_CODE(IPMI_NETFN_STORAGE, 0x40)
#define IPMI_GET_SEL_TIME IPMI_CODE(IPMI_NETFN_STORAGE, 0x48)
#define IPMI_SET_SEL_TIME IPMI_CODE(IPMI_NETFN_STORAGE, 0x49)
@@ -109,8 +110,8 @@
#define IPMI_DEFAULT_INTERFACE 0
-#define IPMI_MAX_REQ_SIZE 64
-#define IPMI_MAX_RESP_SIZE 64
+#define IPMI_MAX_REQ_SIZE 60
+#define IPMI_MAX_RESP_SIZE 60
struct ipmi_backend;
struct ipmi_msg {
@@ -179,4 +180,7 @@ void ipmi_rtc_init(void);
/* Register ipmi host interface access callbacks */
void ipmi_opal_init(void);
+/* Populate fru data */
+void ipmi_fru_init(uint8_t fru_dev_id);
+
#endif