blob: 595d683e971e19e61670c7c7f3c86931ab9b0a5f [file] [log] [blame]
Steve Foreman4f0d1de2021-09-20 14:06:32 -07001// Copyright 2022 Google LLC
Willy Tua2056e92021-10-10 13:36:16 -07002//
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 Venture0e9aae52020-08-13 13:07:09 -070015#pragma once
16
17namespace google
18{
19namespace ipmi
20{
21
22enum 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 III29f35bc2020-11-03 23:30:31 -080038 // Returns the machine name of the image
39 SysMachineName = 7,
Shounak Mitraac4a16f2021-02-02 11:11:44 -080040 // Arm for psu reset on host shutdown
41 SysPsuHardResetOnShutdown = 8,
Willy Tu3b1b4272021-03-02 17:58:10 -080042 // The Sys get flash size command
43 SysGetFlashSize = 9,
linyuny8cfa4c42021-06-16 13:53:08 -070044 // The Sys Host Power Off with disabled fallback watchdog
45 SysHostPowerOff = 10,
Steve Foreman4f0d1de2021-09-20 14:06:32 -070046 // 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 Tue4fddf42022-04-07 09:58:53 -070054 // The Sys PCIe Slot Bifurcation information command.
55 SysPCIeSlotBifurcation = 15,
Nikhil Namjoshi5e70dc82022-09-16 00:36:07 +000056 // The Sys get BMC Mode command
57 SysGetBmcMode = 16,
John Wediga92d0e62023-06-29 10:43:47 -070058 // The Sys Linux Boot Done command
59 SysLinuxBootDone = 17,
Willy Tu8ef49712024-02-05 03:57:32 +000060 // 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 Gandhid455bfd2024-01-29 22:32:27 -080066 // Google CustomAccel Get VR Settings
Willy Tu8ef49712024-02-05 03:57:32 +000067 SysGetAccelVrSettings = 21,
Gaurav Gandhid455bfd2024-01-29 22:32:27 -080068 // Google CustomAccel Set VR Settings
Willy Tu8ef49712024-02-05 03:57:32 +000069 SysSetAccelVrSettings = 22,
Brandon Kim559cb012024-05-03 09:12:07 +000070 // Get BM instance property info
71 SysGetBMInstanceProperty = 23,
Brandon Kim93a4c0a2024-08-17 00:36:55 +000072 // Read OEM BIOS Setting
73 SysReadBiosSetting = 24,
Brandon Kime8929692024-08-19 22:00:36 +000074 // Write OEM BIOS Setting
75 SysWriteBiosSetting = 25,
Patrick Venture0e9aae52020-08-13 13:07:09 -070076};
77
78} // namespace ipmi
79} // namespace google