diff options
author | Patrick Venture <venture@google.com> | 2018-09-07 19:26:25 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-25 10:06:33 -0700 |
commit | 46470a38d0a3b8f29cd8efc4af8a76adcace524a (patch) | |
tree | c3e2df8b2a238889aabb14b6ba4efd76c4607364 /apphandler.hpp | |
parent | 87651333c451cfa8090273366be5ec62bd1a9eea (diff) | |
download | phosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.tar.gz phosphor-host-ipmid-46470a38d0a3b8f29cd8efc4af8a76adcace524a.zip |
rename headers to match style
Moving headers from ".h" to ".hpp"
Reworked the header inclusion a bit so that host-ipmid is treated as a
library, and local headers aren't.
renamed apphandler.h => apphandler.hpp
renamed chassishandler.h => chassishandler.hpp
renamed globalhandler.h => globalhandler.hpp
renamed sensorhandler.h => sensorhandler.hpp
renamed storageaddsel.h => storageaddsel.hpp
renamed storagehandler.h => storagehandler.hpp
renamed systemintfcmds.h => systemintfcmds.hpp
Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'apphandler.hpp')
-rw-r--r-- | apphandler.hpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/apphandler.hpp b/apphandler.hpp new file mode 100644 index 0000000..3d377fb --- /dev/null +++ b/apphandler.hpp @@ -0,0 +1,37 @@ +#pragma once + +#include <stdint.h> + +// IPMI commands for App net functions. +enum ipmi_netfn_app_cmds +{ + // Get capability bits + IPMI_CMD_GET_DEVICE_ID = 0x01, + IPMI_CMD_GET_SELF_TEST_RESULTS = 0x04, + IPMI_CMD_SET_ACPI = 0x06, + IPMI_CMD_GET_DEVICE_GUID = 0x08, + IPMI_CMD_RESET_WD = 0x22, + IPMI_CMD_SET_WD = 0x24, + IPMI_CMD_GET_WD = 0x25, + IPMI_CMD_GET_CAP_BIT = 0x36, + IPMI_CMD_GET_SYS_GUID = 0x37, + IPMI_CMD_SET_CHAN_ACCESS = 0x40, + IPMI_CMD_GET_CHANNEL_ACCESS = 0x41, + IPMI_CMD_GET_CHAN_INFO = 0x42, + IPMI_CMD_GET_CHAN_CIPHER_SUITES = 0x54, + IPMI_CMD_SET_SYSTEM_INFO = 0x58, + IPMI_CMD_GET_SYSTEM_INFO = 0x59, +}; + +enum ipmi_app_sysinfo_params +{ + IPMI_SYSINFO_SET_STATE = 0x00, + IPMI_SYSINFO_SYSTEM_FW_VERSION = 0x01, + IPMI_SYSINFO_SYSTEM_NAME = 0x02, + IPMI_SYSINFO_PRIMARY_OS_NAME = 0x03, + IPMI_SYSINFO_OS_NAME = 0x04, + IPMI_SYSINFO_OS_VERSION = 0x05, + IPMI_SYSINFO_BMC_URL = 0x06, + IPMI_SYSINFO_OS_HYP_URL = 0x07, + IPMI_SYSINFO_OEM_START = 0xC0, // Start of range of OEM parameters +}; |