summaryrefslogtreecommitdiffstats
path: root/storagehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storagehandler.cpp')
-rw-r--r--storagehandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 59dfdde..fa630e3 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -19,6 +19,7 @@
#include "storagehandler.h"
#include "utils.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
+#include "sensorhandler.h"
void register_netfn_storage_functions() __attribute__((constructor));
@@ -762,6 +763,16 @@ void register_netfn_storage_functions()
nullptr, ipmi_get_repository_info,
PRIVILEGE_USER);
+ // <Reserve SDR Repository>
+ ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_RESERVE_SDR,
+ nullptr, ipmi_sen_reserve_sdr,
+ PRIVILEGE_USER);
+
+ // <Get SDR>
+ ipmi_register_callback(NETFUN_STORAGE, IPMI_CMD_GET_SDR,
+ nullptr, ipmi_sen_get_sdr,
+ PRIVILEGE_USER);
+
ipmi::fru::registerCallbackHandler();
return;
}
OpenPOWER on IntegriCloud