summaryrefslogtreecommitdiffstats
path: root/chassishandler.h
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2016-08-01 04:58:01 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-09-02 03:30:33 +0000
commitfd28dd7ae4dafc8b919098feb2876623474eeeaa (patch)
tree33919d8b0322e57c3e21abfa4fae6df21fda39b7 /chassishandler.h
parenteb9b814403895d6435e04f02a9ff6c2b1b02cf54 (diff)
downloadphosphor-host-ipmid-fd28dd7ae4dafc8b919098feb2876623474eeeaa.tar.gz
phosphor-host-ipmid-fd28dd7ae4dafc8b919098feb2876623474eeeaa.zip
Implement Network Settings Override
We want to implement the network settings override functionality. This is an OEM boot parameter selector, using parameter ID 0x61. The first byte of the parameter data is the same as parameter ID 5 (ie, the valid flag in the top bit). Persistency doesn't matter here, as petitboot will not clear out this setting. The rest of the parameter data is a host network settings description. For other BMC firmware, the BMC just treats this as opaque (the BMC will just return the same data (including that data1 byte), in response to a Get System Boot Option). For OpenBMC, we may want the BMC to know how to construct that data; the spec for that is at: http://ozlabs.org/~sam/ipmi-network-format Closes openbmc/openbmc#267 Change-Id: I2af8776718deda97acf90d10504783085ccf7323 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'chassishandler.h')
-rw-r--r--chassishandler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chassishandler.h b/chassishandler.h
index b6f7d93..e47b4a1 100644
--- a/chassishandler.h
+++ b/chassishandler.h
@@ -2,6 +2,7 @@
#define __HOST_IPMI_CHASSIS_HANDLER_H__
#include <stdint.h>
+#include <cstddef>
// IPMI commands for Chassis net functions.
enum ipmi_netfn_app_cmds
@@ -37,5 +38,16 @@ enum ipmi_chassis_control_cmds : uint8_t
CMD_PULSE_DIAGNOSTIC_INTR = 0x04,
CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05,
};
+enum class BootOptionParameter : size_t
+{
+ BOOT_FLAGS = 0x5,
+ OPAL_NETWORK_SETTINGS = 0x61
+};
+
+enum class BootOptionResponseSize : size_t
+{
+ BOOT_FLAGS = 5,
+ OPAL_NETWORK_SETTINGS = 26
+};
#endif
OpenPOWER on IntegriCloud