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, 60*d455bfd6SGaurav Gandhi // Google CustomAccel Get VR Settings 61*d455bfd6SGaurav Gandhi SysGetAccelVrSettings = 18, 62*d455bfd6SGaurav Gandhi // Google CustomAccel Set VR Settings 63*d455bfd6SGaurav Gandhi SysSetAccelVrSettings = 19, 640e9aae5dSPatrick Venture }; 650e9aae5dSPatrick Venture 660e9aae5dSPatrick Venture } // namespace ipmi 670e9aae5dSPatrick Venture } // namespace google 68