1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 namespace google 18 { 19 namespace ipmi 20 { 21 22 enum SysOEMCommands 23 { 24 // The Sys cable check command. 25 SysCableCheck = 0, 26 // The Sys cpld version over ipmi command. 27 SysCpldVersion = 1, 28 // The Sys get eth device command. 29 SysGetEthDevice = 2, 30 // The Sys psu hard reset command. 31 SysPsuHardReset = 3, 32 // The Sys pcie slot count command. 33 SysPcieSlotCount = 4, 34 // The Sys pcie slot to i2c bus mapping command. 35 SysPcieSlotI2cBusMapping = 5, 36 // The Sys "entity id:entity instance" to entity name mapping command. 37 SysEntityName = 6, 38 // Returns the machine name of the image 39 SysMachineName = 7, 40 // Arm for psu reset on host shutdown 41 SysPsuHardResetOnShutdown = 8, 42 // The Sys get flash size command 43 SysGetFlashSize = 9, 44 // The Sys Host Power Off with disabled fallback watchdog 45 SysHostPowerOff = 10, 46 // Google CustomAccel service - get the number of devices available 47 SysAccelOobDeviceCount = 11, 48 // Google CustomAccel service - get the name of a single device 49 SysAccelOobDeviceName = 12, 50 // Google CustomAccel service - read from a device 51 SysAccelOobRead = 13, 52 // Google CustomAccel service - write to a device 53 SysAccelOobWrite = 14, 54 // The Sys PCIe Slot Bifurcation information command. 55 SysPCIeSlotBifurcation = 15, 56 // The Sys get BMC Mode command 57 SysGetBmcMode = 16, 58 // The Sys Linux Boot Done command 59 SysLinuxBootDone = 17, 60 // Send reboot checkpoint to BMC to monitor the reboot process. 61 SysSendRebootCheckpoint = 18, 62 // Send reboot end event to BMC to notify BMC the reboot is completed. 63 SysSendRebootComplete = 19, 64 // Send Additional duration to BMC to monitor the reboot process. 65 SysSendRebootAdditionalDuration = 20, 66 // Google CustomAccel Get VR Settings 67 SysGetAccelVrSettings = 21, 68 // Google CustomAccel Set VR Settings 69 SysSetAccelVrSettings = 22, 70 // Get BM instance property info 71 SysGetBMInstanceProperty = 23, 72 // Read OEM BIOS Setting 73 SysReadBiosSetting = 24, 74 // Write OEM BIOS Setting 75 SysWriteBiosSetting = 25, 76 }; 77 78 } // namespace ipmi 79 } // namespace google 80