summaryrefslogtreecommitdiffstats
path: root/apphandler.h
diff options
context:
space:
mode:
authorTom <tomjoseph@in.ibm.com>2016-11-07 12:14:51 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-01-17 16:31:30 +0530
commit9e5232e59573ae4ddc6dd2064a813fd650dd0695 (patch)
tree3a11d75a38de185feb2afb295794d83d494c796b /apphandler.h
parenta640b775491bff926ac759ffd6e13ec2bcc80d26 (diff)
downloadphosphor-host-ipmid-9e5232e59573ae4ddc6dd2064a813fd650dd0695.tar.gz
phosphor-host-ipmid-9e5232e59573ae4ddc6dd2064a813fd650dd0695.zip
Create library for System Interface Commands.
There are IPMI commands like Read Event Message Buffer, Set BMC Global Enables and Get Message Flags which is to be executed from host interface only. So creating a separate library for these commands which would be used only by phosphor-host-ipmid. Change-Id: I14cb4019b9ab19c84e463e5a7820010f57f1c5eb Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'apphandler.h')
-rw-r--r--apphandler.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/apphandler.h b/apphandler.h
index 5753c27..ec7d4b0 100644
--- a/apphandler.h
+++ b/apphandler.h
@@ -3,17 +3,6 @@
#include <stdint.h>
-// These are per skiboot ipmi-sel code
-
-// OEM_SEL type with Timestamp
-#define SEL_OEM_ID_0 0x55
-// SEL type is OEM and -not- general SEL
-#define SEL_RECORD_TYPE_OEM 0xC0
-// Minor command for soft shurdown
-#define SOFT_OFF 0x00
-// Major command for Any kind of power ops
-#define CMD_POWER 0x04
-
// IPMI commands for App net functions.
enum ipmi_netfn_app_cmds
{
@@ -24,31 +13,9 @@ enum ipmi_netfn_app_cmds
IPMI_CMD_GET_DEVICE_GUID = 0x08,
IPMI_CMD_RESET_WD = 0x22,
IPMI_CMD_SET_WD = 0x24,
- IPMI_CMD_SET_BMC_GLOBAL_ENABLES = 0x2E,
- IPMI_CMD_GET_MSG_FLAGS = 0x31,
- IPMI_CMD_READ_EVENT = 0x35,
IPMI_CMD_GET_CAP_BIT = 0x36,
IPMI_CMD_SET_CHAN_ACCESS = 0x40,
IPMI_CMD_GET_CHAN_INFO = 0x42,
-
};
-// A Mechanism to tell host to shtudown hosts by sending this PEM SEL. Really
-// the only used fields by skiboot are:
-// id[0] / id[1] for ID_0 , ID_1
-// type : SEL_RECORD_TYPE_OEM as standard SELs are ignored by skiboot
-// cmd : CMD_POWER for power functions
-// data[0], specific commands. example Soft power off. power cycle, etc.
-struct oem_sel_timestamped
-{
- /* SEL header */
- uint8_t id[2];
- uint8_t type;
- uint8_t manuf_id[3];
- uint8_t timestamp[4];
- /* OEM SEL data (6 bytes) follows */
- uint8_t netfun;
- uint8_t cmd;
- uint8_t data[4];
-};
#endif
OpenPOWER on IntegriCloud