Lines Matching full:command
22 namespace command namespace
28 // IPMI OEM command.
33 // Map of IPMI OEM command to its equivalent interface command.
35 // the status of the executed command.
36 static const std::map<OEMCmd, Host::Command> intfCommand = {
37 {CMD_HEARTBEAT, Base::Host::Command::Heartbeat},
38 {CMD_POWER, Base::Host::Command::SoftOff}};
40 // Map of Interface command to its corresponding IPMI OEM command.
41 // This is needed when pushing IPMI commands to command manager's
44 static const std::map<Host::Command, IpmiCmdData> ipmiCommand = {
45 {Base::Host::Command::Heartbeat, std::make_pair(CMD_HEARTBEAT, 0x00)},
46 {Base::Host::Command::SoftOff, std::make_pair(CMD_POWER, SOFT_OFF)}};
49 void Host::execute(Base::Host::Command command) in execute() argument
52 "CONTROL_HOST_CMD", convertForMessage(command)); in execute()
55 ipmiCommand.at(command), in execute()
62 // Called into by Command Manager
78 // callback for command to host in currentFirmwareCondition()
91 auto cmd = phosphor::host::command::CommandHandler( in currentFirmwareCondition()
92 ipmiCommand.at(Base::Host::Command::Heartbeat), in currentFirmwareCondition()
120 } // namespace command