Steve Foreman | 4f0d1de | 2021-09-20 14:06:32 -0700 | [diff] [blame] | 1 | // Copyright 2022 Google LLC |
Willy Tu | a2056e9 | 2021-10-10 13:36:16 -0700 | [diff] [blame] | 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 | |
Patrick Venture | 0e9aae5 | 2020-08-13 13:07:09 -0700 | [diff] [blame] | 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, |
William A. Kennington III | 29f35bc | 2020-11-03 23:30:31 -0800 | [diff] [blame] | 38 | // Returns the machine name of the image |
| 39 | SysMachineName = 7, |
Shounak Mitra | ac4a16f | 2021-02-02 11:11:44 -0800 | [diff] [blame] | 40 | // Arm for psu reset on host shutdown |
| 41 | SysPsuHardResetOnShutdown = 8, |
Willy Tu | 3b1b427 | 2021-03-02 17:58:10 -0800 | [diff] [blame] | 42 | // The Sys get flash size command |
| 43 | SysGetFlashSize = 9, |
linyuny | 8cfa4c4 | 2021-06-16 13:53:08 -0700 | [diff] [blame] | 44 | // The Sys Host Power Off with disabled fallback watchdog |
| 45 | SysHostPowerOff = 10, |
Steve Foreman | 4f0d1de | 2021-09-20 14:06:32 -0700 | [diff] [blame] | 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, |
Willy Tu | e4fddf4 | 2022-04-07 09:58:53 -0700 | [diff] [blame] | 54 | // The Sys PCIe Slot Bifurcation information command. |
| 55 | SysPCIeSlotBifurcation = 15, |
Nikhil Namjoshi | 5e70dc8 | 2022-09-16 00:36:07 +0000 | [diff] [blame] | 56 | // The Sys get BMC Mode command |
| 57 | SysGetBmcMode = 16, |
John Wedig | a92d0e6 | 2023-06-29 10:43:47 -0700 | [diff] [blame] | 58 | // The Sys Linux Boot Done command |
| 59 | SysLinuxBootDone = 17, |
Willy Tu | 8ef4971 | 2024-02-05 03:57:32 +0000 | [diff] [blame] | 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, |
Gaurav Gandhi | d455bfd | 2024-01-29 22:32:27 -0800 | [diff] [blame] | 66 | // Google CustomAccel Get VR Settings |
Willy Tu | 8ef4971 | 2024-02-05 03:57:32 +0000 | [diff] [blame] | 67 | SysGetAccelVrSettings = 21, |
Gaurav Gandhi | d455bfd | 2024-01-29 22:32:27 -0800 | [diff] [blame] | 68 | // Google CustomAccel Set VR Settings |
Willy Tu | 8ef4971 | 2024-02-05 03:57:32 +0000 | [diff] [blame] | 69 | SysSetAccelVrSettings = 22, |
Brandon Kim | 559cb01 | 2024-05-03 09:12:07 +0000 | [diff] [blame] | 70 | // Get BM instance property info |
| 71 | SysGetBMInstanceProperty = 23, |
Brandon Kim | 93a4c0a | 2024-08-17 00:36:55 +0000 | [diff] [blame] | 72 | // Read OEM BIOS Setting |
| 73 | SysReadBiosSetting = 24, |
Brandon Kim | e892969 | 2024-08-19 22:00:36 +0000 | [diff] [blame^] | 74 | // Write OEM BIOS Setting |
| 75 | SysWriteBiosSetting = 25, |
Patrick Venture | 0e9aae5 | 2020-08-13 13:07:09 -0700 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | } // namespace ipmi |
| 79 | } // namespace google |