blob: eed7be6038753163ccdcf6c7403034f819d68bd0 [file] [log] [blame]
Vijay Khemkae7d23d02019-03-08 13:13:40 -08001/*
2 * Copyright (c) 2018-present Facebook. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19enum ipmi_fb_net_fns
20{
21 NETFN_OEM_USB_DBG_REQ = 0x3C,
22 NETFN_OEM_USB_DBG_RES = 0x3D,
23};
24
25// OEM Command Codes for USB basded Debug Card
26enum oem_usb_dbg_cmds
27{
28 CMD_OEM_USB_DBG_GET_FRAME_INFO = 0x1,
29 CMD_OEM_USB_DBG_GET_UPDATED_FRAMES = 0x2,
30 CMD_OEM_USB_DBG_GET_POST_DESC = 0x3,
31 CMD_OEM_USB_DBG_GET_GPIO_DESC = 0x4,
32 CMD_OEM_USB_DBG_GET_FRAME_DATA = 0x5,
33 CMD_OEM_USB_DBG_CTRL_PANEL = 0x6,
34};
35
36// OEM Command Codes for FB 1S/2S servers
37enum fb_oem_cmds
38{
39 CMD_OEM_ADD_RAS_SEL = 0x10,
40 CMD_OEM_ADD_IMC_LOG = 0x11,
41 CMD_OEM_SET_MAC_ADDR = 0x18,
42 CMD_OEM_GET_MAC_ADDR = 0x19,
43 CMD_OEM_SET_PROC_INFO = 0x1A,
44 CMD_OEM_GET_PROC_INFO = 0x1B,
45 CMD_OEM_SET_DIMM_INFO = 0x1C,
46 CMD_OEM_GET_DIMM_INFO = 0x1D,
47 CMD_OEM_BYPASS_CMD = 0x34,
48 CMD_OEM_GET_BOARD_ID = 0x37,
49 CMD_OEM_GET_80PORT_RECORD = 0x49,
50 CMD_OEM_SET_BOOT_ORDER = 0x52,
51 CMD_OEM_GET_BOOT_ORDER = 0x53,
52 CMD_OEM_SET_MACHINE_CONFIG_INFO = 0x6A,
53 CMD_OEM_LEGACY_SET_PPR = 0x6E,
54 CMD_OEM_LEGACY_GET_PPR = 0x6F,
55 CMD_OEM_SET_POST_START = 0x73,
56 CMD_OEM_SET_POST_END = 0x74,
57 CMD_OEM_SET_PPIN_INFO = 0x77,
58 CMD_OEM_SET_ADR_TRIGGER = 0x7A,
59 CMD_OEM_GET_PLAT_INFO = 0x7E,
60 CMD_OEM_SET_SYSTEM_GUID = 0xEF,
61 CMD_OEM_GET_FW_INFO = 0xF2,
62 CMD_OEM_SLED_AC_CYCLE = 0xF3,
63 CMD_OEM_GET_PCIE_CONFIG = 0xF4,
64 CMD_OEM_SET_IMC_VERSION = 0xF5,
65 CMD_OEM_SET_FW_UPDATE_STATE = 0xF6,
66 CMD_OEM_GET_BIOS_FLASH_INFO = 0x55,
67 CMD_OEM_GET_PCIE_PORT_CONFIG = 0x80,
68 CMD_OEM_SET_PCIE_PORT_CONFIG = 0x81,
69 CMD_OEM_GET_TPM_PRESENCE = 0x82,
70 CMD_OEM_SET_TPM_PRESENCE = 0x83,
71 CMD_OEM_SET_BIOS_FLASH_INFO = 0x87,
72 CMD_OEM_SET_PPR = 0x90,
73 CMD_OEM_GET_PPR = 0x91,
74 CMD_OEM_SET_IPMB_OFFONLINE = 0xE6,
75 CMD_OEM_RISER_SENSOR_MON_CRL = 0xE7,
76 CMD_OEM_BBV_POWER_CYCLE = 0xE9,
77 CMD_OEM_ADD_CPER_LOG = 0x70,
78
79};