diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2018-02-22 00:33:38 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-03-01 05:34:21 +0000 |
commit | 5ca50959438c3c99acfafe4d0ff301eb29b84233 (patch) | |
tree | 2029e9f55678f63251b0e1aa5b75a8f8aa226004 /sensorhandler.cpp | |
parent | dc212b235dbf0251f5da787316f629d615ede997 (diff) | |
download | phosphor-host-ipmid-5ca50959438c3c99acfafe4d0ff301eb29b84233.tar.gz phosphor-host-ipmid-5ca50959438c3c99acfafe4d0ff301eb29b84233.zip |
Implement Get SDR and Reserve SDR repository command
Both Get SDR and Reserve SDR repository command is same as
Get Device SDR and Reserve Device SDR command respectively.
So the same implementation is shared.
Resolves openbmc/openbmc#2615
Change-Id: I64e37837bc5a616bed41a3ceff7d63033d88455c
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r-- | sensorhandler.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 2bd022b..7d9d394 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -1082,24 +1082,18 @@ void register_netfn_sen_functions() nullptr, ipmi_sen_get_sensor_reading, PRIVILEGE_USER); - // <Reserve SDR> - printf("Registering NetFn:[0x%X], Cmd:[0x%X]\n", - NETFUN_SENSOR, IPMI_CMD_RESERVE_SDR_REPO); - ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_RESERVE_SDR_REPO, + // <Reserve Device SDR Repository> + ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_RESERVE_DEVICE_SDR_REPO, nullptr, ipmi_sen_reserve_sdr, PRIVILEGE_USER); - // <Get SDR Info> - printf("Registering NetFn:[0x%X], Cmd:[0x%x]\n", - NETFUN_SENSOR, IPMI_CMD_GET_SDR_INFO); - ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_GET_SDR_INFO, + // <Get Device SDR Info> + ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_GET_DEVICE_SDR_INFO, nullptr, ipmi_sen_get_sdr_info, PRIVILEGE_USER); - // <Get SDR> - printf("Registering NetFn:[0x%X], Cmd:[0x%x]\n", - NETFUN_SENSOR, IPMI_CMD_GET_SDR); - ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_GET_SDR, + // <Get Device SDR> + ipmi_register_callback(NETFUN_SENSOR, IPMI_CMD_GET_DEVICE_SDR, nullptr, ipmi_sen_get_sdr, PRIVILEGE_USER); |