summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2015-10-22 17:16:10 -0500
committerPatrick Williams <patrick@stwcx.xyz>2015-10-22 17:16:10 -0500
commit6f6e665d3a888585cc90cf322f1327233eafa0bb (patch)
treec20b9ca214966d775728f85c316e25fc3693833b
parentd00529463950fa8726b6f08663a923b4299f653f (diff)
parentdfc8d7775f51dc4927e6c458654545d50cb023bf (diff)
downloadphosphor-host-ipmid-6f6e665d3a888585cc90cf322f1327233eafa0bb.tar.gz
phosphor-host-ipmid-6f6e665d3a888585cc90cf322f1327233eafa0bb.zip
Merge pull request #11 from anoo1/master
Add App Set BMC Global Enables ipmi cmd
-rwxr-xr-xapphandler.C17
-rw-r--r--apphandler.h15
2 files changed, 25 insertions, 7 deletions
diff --git a/apphandler.C b/apphandler.C
index 45cec19..40cd79d 100755
--- a/apphandler.C
+++ b/apphandler.C
@@ -203,7 +203,18 @@ ipmi_ret_t ipmi_app_reset_watchdog(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
return rc;
}
+ipmi_ret_t ipmi_app_set_bmc_global_enables(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
+ ipmi_request_t request, ipmi_response_t response,
+ ipmi_data_len_t data_len, ipmi_context_t context)
+{
+ ipmi_ret_t rc = IPMI_CC_OK;
+ *data_len = 0;
+ // Event and message logging enabled by default so return for now
+ printf("IPMI APP SET BMC GLOBAL ENABLES Ignoring for now\n");
+
+ return rc;
+}
@@ -246,6 +257,12 @@ void register_netfn_app_functions()
printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_APP, IPMI_CMD_READ_EVENT);
ipmi_register_callback(NETFUN_APP, IPMI_CMD_READ_EVENT, NULL, ipmi_app_read_event);
+
+ printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n",NETFUN_APP,
+ IPMI_CMD_SET_BMC_GLOBAL_ENABLES);
+ ipmi_register_callback(NETFUN_APP, IPMI_CMD_SET_BMC_GLOBAL_ENABLES, NULL,
+ ipmi_app_set_bmc_global_enables);
+
return;
}
diff --git a/apphandler.h b/apphandler.h
index 2c4ea22..2957437 100644
--- a/apphandler.h
+++ b/apphandler.h
@@ -1,16 +1,17 @@
#ifndef __HOST_IPMI_APP_HANDLER_H__
#define __HOST_IPMI_APP_HANDLER_H__
-// IPMI commands for net functions.
+// IPMI commands for App net functions.
enum ipmi_netfn_app_cmds
{
// Get capability bits
- IPMI_CMD_RESET_WD = 0x22,
- IPMI_CMD_SET_WD = 0x24,
- IPMI_CMD_GET_CAP_BIT = 0x36,
- IPMI_CMD_GET_DEVICE_ID = 0x00,
- IPMI_CMD_SET_ACPI = 0x06,
- IPMI_CMD_READ_EVENT = 0x35,
+ IPMI_CMD_GET_DEVICE_ID = 0x01,
+ IPMI_CMD_SET_ACPI = 0x06,
+ IPMI_CMD_RESET_WD = 0x22,
+ IPMI_CMD_SET_WD = 0x24,
+ IPMI_CMD_SET_BMC_GLOBAL_ENABLES = 0x2E,
+ IPMI_CMD_READ_EVENT = 0x35,
+ IPMI_CMD_GET_CAP_BIT = 0x36,
};
OpenPOWER on IntegriCloud