summaryrefslogtreecommitdiffstats
path: root/ipmi
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-07-27 06:59:05 -0700
committerPatrick Venture <venture@google.com>2018-07-31 14:12:59 +0000
commitba003434509dce6d0a9b83806a37040c70fc4d40 (patch)
treee5d8ba7602639b004909b04c59b8220b20ae7020 /ipmi
parentca97c83d151ba5d5cca0518420662abc298cce50 (diff)
downloadphosphor-pid-control-ba003434509dce6d0a9b83806a37040c70fc4d40.tar.gz
phosphor-pid-control-ba003434509dce6d0a9b83806a37040c70fc4d40.zip
ipmi: enable oem ipmi command for fan control
This enables building the OEM IPMI handler for fan control. This includes the ability to set it in manual mode, or check if it's in fail-sade mode. Tested: Verified that using host-side tool I was able to get and set the mode for a zone, as well as check if a zone had fallen into failsade mode. Change-Id: I995407c089610692c7f6442f6e22f76689f4da1c Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'ipmi')
-rw-r--r--ipmi/manualcmds.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipmi/manualcmds.cpp b/ipmi/manualcmds.cpp
index d71eedb..f86db9e 100644
--- a/ipmi/manualcmds.cpp
+++ b/ipmi/manualcmds.cpp
@@ -242,15 +242,15 @@ void setupGlobalOemFanControl() __attribute__((constructor));
void setupGlobalOemFanControl()
{
- ipmid::OemRouter* oemRouter = ipmid::mutableOemRouter();
+ oem::Router* router = oem::mutableRouter();
fprintf(stderr,
"Registering OEM:[%#08X], Cmd:[%#04X] for Manual Zone Control\n",
- ipmid::oem::openbmc::obmcOemNumber,
- ipmid::oem::openbmc::OemCmd::fanManualCmd);
+ oem::obmcOemNumber,
+ oem::Cmd::fanManualCmd);
- oemRouter->registerHandler(
- ipmid::oem::openbmc::obmcOemNumber,
- ipmid::oem::openbmc::OemCmd::fanManualCmd,
+ router->registerHandler(
+ oem::obmcOemNumber,
+ oem::Cmd::fanManualCmd,
ManualModeControl);
}
OpenPOWER on IntegriCloud