Lines Matching +full:host +full:- +full:command
3 #include <host-interface.hpp>
4 #include <ipmid-host/cmd-utils.hpp>
5 #include <ipmid-host/cmd.hpp>
7 #include <phosphor-logging/log.hpp>
13 namespace host namespace
15 namespace command namespace
18 // IPMI command
20 // Non-OEM commands that need to send SMS_ATN
23 // Map of IPMI OEM command to its equivalent interface command.
25 // the status of the executed command.
26 static const std::map<OEMCmd, Host::Command> intfCommand = {
27 {IPMI_CMD_OCC_RESET, Base::Host::Command::OCCReset}};
30 void Host::execute(Base::Host::Command command, std::variant<uint8_t> data) in execute() argument
36 entry("CONTROL_HOST_CMD=%s", convertForMessage(command).c_str())); in execute()
38 // If the command is OCCReset, then all we need is just sensor ID in execute()
39 // This is the only command that is being used now. in execute()
40 if (command == Base::Host::Command::OCCReset) in execute()
46 std::bind(&Host::commandStatusHandler, this, std::placeholders::_1, in execute()
54 // Called into by Command Manager
55 void Host::commandStatusHandler(IpmiCmdData cmd, bool status) in commandStatusHandler()
61 this->commandComplete(intfCommand.at(std::get<0>(cmd)), value); in commandStatusHandler()
64 } // namespace command
65 } // namespace host