xref: /openbmc/google-ipmi-sys/commands.hpp (revision 559cb011)
14f0d1de6SSteve Foreman // Copyright 2022 Google LLC
2a2056e9cSWilly Tu //
3a2056e9cSWilly Tu // Licensed under the Apache License, Version 2.0 (the "License");
4a2056e9cSWilly Tu // you may not use this file except in compliance with the License.
5a2056e9cSWilly Tu // You may obtain a copy of the License at
6a2056e9cSWilly Tu //
7a2056e9cSWilly Tu //      http://www.apache.org/licenses/LICENSE-2.0
8a2056e9cSWilly Tu //
9a2056e9cSWilly Tu // Unless required by applicable law or agreed to in writing, software
10a2056e9cSWilly Tu // distributed under the License is distributed on an "AS IS" BASIS,
11a2056e9cSWilly Tu // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12a2056e9cSWilly Tu // See the License for the specific language governing permissions and
13a2056e9cSWilly Tu // limitations under the License.
14a2056e9cSWilly Tu 
150e9aae5dSPatrick Venture #pragma once
160e9aae5dSPatrick Venture 
170e9aae5dSPatrick Venture namespace google
180e9aae5dSPatrick Venture {
190e9aae5dSPatrick Venture namespace ipmi
200e9aae5dSPatrick Venture {
210e9aae5dSPatrick Venture 
220e9aae5dSPatrick Venture enum SysOEMCommands
230e9aae5dSPatrick Venture {
240e9aae5dSPatrick Venture     // The Sys cable check command.
250e9aae5dSPatrick Venture     SysCableCheck = 0,
260e9aae5dSPatrick Venture     // The Sys cpld version over ipmi command.
270e9aae5dSPatrick Venture     SysCpldVersion = 1,
280e9aae5dSPatrick Venture     // The Sys get eth device command.
290e9aae5dSPatrick Venture     SysGetEthDevice = 2,
300e9aae5dSPatrick Venture     // The Sys psu hard reset command.
310e9aae5dSPatrick Venture     SysPsuHardReset = 3,
320e9aae5dSPatrick Venture     // The Sys pcie slot count command.
330e9aae5dSPatrick Venture     SysPcieSlotCount = 4,
340e9aae5dSPatrick Venture     // The Sys pcie slot to i2c bus mapping command.
350e9aae5dSPatrick Venture     SysPcieSlotI2cBusMapping = 5,
360e9aae5dSPatrick Venture     // The Sys "entity id:entity instance" to entity name mapping command.
370e9aae5dSPatrick Venture     SysEntityName = 6,
3829f35bceSWilliam A. Kennington III     // Returns the machine name of the image
3929f35bceSWilliam A. Kennington III     SysMachineName = 7,
40ac4a16f7SShounak Mitra     // Arm for psu reset on host shutdown
41ac4a16f7SShounak Mitra     SysPsuHardResetOnShutdown = 8,
423b1b427cSWilly Tu     // The Sys get flash size command
433b1b427cSWilly Tu     SysGetFlashSize = 9,
448cfa4c44Slinyuny     // The Sys Host Power Off with disabled fallback watchdog
458cfa4c44Slinyuny     SysHostPowerOff = 10,
464f0d1de6SSteve Foreman     // Google CustomAccel service - get the number of devices available
474f0d1de6SSteve Foreman     SysAccelOobDeviceCount = 11,
484f0d1de6SSteve Foreman     // Google CustomAccel service - get the name of a single device
494f0d1de6SSteve Foreman     SysAccelOobDeviceName = 12,
504f0d1de6SSteve Foreman     // Google CustomAccel service - read from a device
514f0d1de6SSteve Foreman     SysAccelOobRead = 13,
524f0d1de6SSteve Foreman     // Google CustomAccel service - write to a device
534f0d1de6SSteve Foreman     SysAccelOobWrite = 14,
54e4fddf43SWilly Tu     // The Sys PCIe Slot Bifurcation information command.
55e4fddf43SWilly Tu     SysPCIeSlotBifurcation = 15,
565e70dc8cSNikhil Namjoshi     // The Sys get BMC Mode command
575e70dc8cSNikhil Namjoshi     SysGetBmcMode = 16,
58a92d0e6bSJohn Wedig     // The Sys Linux Boot Done command
59a92d0e6bSJohn Wedig     SysLinuxBootDone = 17,
608ef49716SWilly Tu     // Send reboot checkpoint to BMC to monitor the reboot process.
618ef49716SWilly Tu     SysSendRebootCheckpoint = 18,
628ef49716SWilly Tu     // Send reboot end event to BMC to notify BMC the reboot is completed.
638ef49716SWilly Tu     SysSendRebootComplete = 19,
648ef49716SWilly Tu     // Send Additional duration to BMC to monitor the reboot process.
658ef49716SWilly Tu     SysSendRebootAdditionalDuration = 20,
66d455bfd6SGaurav Gandhi     // Google CustomAccel Get VR Settings
678ef49716SWilly Tu     SysGetAccelVrSettings = 21,
68d455bfd6SGaurav Gandhi     // Google CustomAccel Set VR Settings
698ef49716SWilly Tu     SysSetAccelVrSettings = 22,
70*559cb011SBrandon Kim     // Get BM instance property info
71*559cb011SBrandon Kim     SysGetBMInstanceProperty = 23,
720e9aae5dSPatrick Venture };
730e9aae5dSPatrick Venture 
740e9aae5dSPatrick Venture } // namespace ipmi
750e9aae5dSPatrick Venture } // namespace google
76