xref: /openbmc/google-ipmi-sys/commands.hpp (revision a2056e9c)
1*a2056e9cSWilly Tu // Copyright 2021 Google LLC
2*a2056e9cSWilly Tu //
3*a2056e9cSWilly Tu // Licensed under the Apache License, Version 2.0 (the "License");
4*a2056e9cSWilly Tu // you may not use this file except in compliance with the License.
5*a2056e9cSWilly Tu // You may obtain a copy of the License at
6*a2056e9cSWilly Tu //
7*a2056e9cSWilly Tu //      http://www.apache.org/licenses/LICENSE-2.0
8*a2056e9cSWilly Tu //
9*a2056e9cSWilly Tu // Unless required by applicable law or agreed to in writing, software
10*a2056e9cSWilly Tu // distributed under the License is distributed on an "AS IS" BASIS,
11*a2056e9cSWilly Tu // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*a2056e9cSWilly Tu // See the License for the specific language governing permissions and
13*a2056e9cSWilly Tu // limitations under the License.
14*a2056e9cSWilly 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,
460e9aae5dSPatrick Venture };
470e9aae5dSPatrick Venture 
480e9aae5dSPatrick Venture } // namespace ipmi
490e9aae5dSPatrick Venture } // namespace google
50