OpenBIC
OpenSource Bridge-IC
oem_1s_handler.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
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#ifndef OEM_1S_HANDLER_H
18#define OEM_1S_HANDLER_H
19
20#include "ipmi.h"
21
27};
28
39};
40
46};
47
48#define IS_SECTOR_END_MASK 0x80
55};
56
57#define GLOBAL_GPIO_IDX_KEY 0xFF
63};
64
68};
69
71 uint8_t sensor_num;
72 uint8_t read_option;
74
76 uint16_t decimal;
77 uint16_t fraction;
78 uint8_t status;
80
81uint8_t gpio_idx_exchange(ipmi_msg *msg);
82
83void OEM_1S_MSG_OUT(ipmi_msg *msg);
84void OEM_1S_GET_GPIO(ipmi_msg *msg);
87void OEM_1S_FW_UPDATE(ipmi_msg *msg);
92void OEM_1S_RESET_BMC(ipmi_msg *msg);
101void OEM_1S_RESET_BIC(ipmi_msg *msg);
109void OEM_1S_CLEAR_CMOS(ipmi_msg *msg);
111void OEM_1S_GET_SDR(ipmi_msg *msg);
125void OEM_1S_RECORD_DAM_PIN_STATUS(uint8_t gpio_num, uint8_t status);
127
128#ifdef CONFIG_SNOOP_ASPEED
129void OEM_1S_GET_POST_CODE(ipmi_msg *msg);
130#endif
131
132#ifdef CONFIG_PECI
133void OEM_1S_PECI_ACCESS(ipmi_msg *msg);
134#endif
135
136#ifdef ENABLE_APML
137void OEM_1S_APML_READ(ipmi_msg *msg);
138void OEM_1S_APML_WRITE(ipmi_msg *msg);
139void OEM_1S_SEND_APML_REQUEST(ipmi_msg *msg);
140void OEM_1S_GET_APML_RESPONSE(ipmi_msg *msg);
141#endif
142
143#ifdef CONFIG_JTAG
144void OEM_1S_SET_JTAG_TAP_STA(ipmi_msg *msg);
145void OEM_1S_JTAG_DATA_SHIFT(ipmi_msg *msg);
146
147#ifdef ENABLE_ASD
148void OEM_1S_ASD_INIT(ipmi_msg *msg);
149#endif
150#endif
151
152#ifdef ENABLE_FAN
153void OEM_1S_SET_FAN_DUTY_AUTO(ipmi_msg *msg);
154void OEM_1S_GET_FAN_DUTY(ipmi_msg *msg);
155void OEM_1S_GET_FAN_RPM(ipmi_msg *msg);
156#endif
157
158#ifdef CONFIG_I3C_ASPEED
160#endif
161
163
164#endif
uint8_t status
Definition: mctp_ctrl.h:1
void OEM_1S_GET_SDR(ipmi_msg *msg)
Definition: oem_1s_handler.c:2053
void OEM_1S_FW_UPDATE(ipmi_msg *msg)
Definition: oem_1s_handler.c:238
GET_SET_GPIO_OPTIONS
Definition: oem_1s_handler.h:58
@ SET_GPIO_OUTPUT_STATUS
Definition: oem_1s_handler.h:60
@ SET_GPIO_DIRECTION_STATUS
Definition: oem_1s_handler.h:62
@ GET_GPIO_DIRECTION_STATUS
Definition: oem_1s_handler.h:61
@ GET_GPIO_STATUS
Definition: oem_1s_handler.h:59
void OEM_1S_MSG_OUT(ipmi_msg *msg)
Definition: oem_1s_handler.c:87
struct _ACCURACY_SENSOR_READING_REQ ACCURACY_SENSOR_READING_REQ
void OEM_1S_READ_BIC_REGISTER(ipmi_msg *msg)
Definition: oem_1s_handler.c:1499
void OEM_1S_GET_VR_MONITOR_STATUS(ipmi_msg *msg)
Definition: oem_1s_handler.c:1412
void OEM_1S_GET_SET_GPIO(ipmi_msg *msg)
Definition: oem_1s_handler.c:1114
GET_SET_VGPIO_OPTIONS
Definition: oem_1s_handler.h:65
@ SET_VGPIO_STATUS
Definition: oem_1s_handler.h:67
@ GET_VGPIO_DIRECTION_AND_STATUS
Definition: oem_1s_handler.h:66
void OEM_1S_PRE_POWER_OFF_CONTROL(ipmi_msg *msg)
Definition: oem_1s_handler.c:2262
void OEM_1S_INFORM_BMC_TO_CONTROL_POWER(ipmi_msg *msg)
Definition: oem_1s_handler.c:609
void OEM_1S_SET_VR_MONITOR_STATUS(ipmi_msg *msg)
Definition: oem_1s_handler.c:1389
void OEM_1S_SET_GPIO_CONFIG(ipmi_msg *msg)
Definition: oem_1s_handler.c:229
void OEM_1S_GET_GPIO_CONFIG(ipmi_msg *msg)
Definition: oem_1s_handler.c:220
void OEM_1S_NOTIFY_PMIC_ERROR(ipmi_msg *msg)
Definition: oem_1s_handler.c:2020
void OEM_1S_WRITE_BIC_REGISTER(ipmi_msg *msg)
Definition: oem_1s_handler.c:1521
void OEM_1S_GET_FW_VERSION(ipmi_msg *msg)
Definition: oem_1s_handler.c:410
void OEM_1S_RESET_BIC(ipmi_msg *msg)
Definition: oem_1s_handler.c:1427
void OEM_1S_GET_FPGA_USER_CODE(ipmi_msg *msg)
Definition: oem_1s_handler.c:1735
FIRMWARE_INFO
Definition: oem_1s_handler.h:22
@ BIC_PLAT_NAME
Definition: oem_1s_handler.h:23
@ BIC_PROJ_NAME
Definition: oem_1s_handler.h:25
@ BIC_PLAT_BOARD_ID
Definition: oem_1s_handler.h:24
@ BIC_PROJ_STAGE
Definition: oem_1s_handler.h:26
void OEM_1S_GET_CARD_TYPE(ipmi_msg *msg)
Definition: oem_1s_handler.c:1755
void OEM_1S_RECORD_DAM_PIN_STATUS(uint8_t gpio_num, uint8_t status)
Definition: oem_1s_handler.c:2745
struct _ACCURACY_SENSOR_READING_RES ACCURACY_SENSOR_READING_RES
ERROR_CODE_SET_PMIC_ERROR_FLAG
Definition: oem_1s_handler.h:41
@ INVALID_DIMM_ID
Definition: oem_1s_handler.h:45
@ INVALID_ERROR_TYPE
Definition: oem_1s_handler.h:44
@ SUCCESS
Definition: oem_1s_handler.h:42
@ NOT_SUPPORT
Definition: oem_1s_handler.h:43
void OEM_1S_SAFE_WRITE_READ_M2_DATA(ipmi_msg *msg)
Definition: oem_1s_handler.c:2253
void OEM_1S_SET_DEVICE_ACTIVE(ipmi_msg *msg)
Definition: oem_1s_handler.c:2271
void OEM_1S_GET_BIOS_VERSION(ipmi_msg *msg)
Definition: oem_1s_handler.c:2207
void OEM_1S_READ_FW_IMAGE(ipmi_msg *msg)
Definition: oem_1s_handler.c:643
void OEM_1S_SENSOR_POLL_EN(ipmi_msg *msg)
Definition: oem_1s_handler.c:968
void OEM_1S_12V_CYCLE_SLOT(ipmi_msg *msg)
Definition: oem_1s_handler.c:1470
void OEM_1S_GET_BIC_STATUS(ipmi_msg *msg)
Definition: oem_1s_handler.c:1372
void OEM_1S_CLEAR_CMOS(ipmi_msg *msg)
Definition: oem_1s_handler.c:1820
void OEM_1S_INFORM_PEER_SLED_CYCLE(ipmi_msg *msg)
Definition: oem_1s_handler.c:1721
void OEM_1S_GET_PCIE_CARD_SENSOR_READING(ipmi_msg *msg)
Definition: oem_1s_handler.c:2225
void OEM_1S_GET_GPIO(ipmi_msg *msg)
Definition: oem_1s_handler.c:189
void OEM_1S_GET_DIMM_I3C_MUX_SELECTION(ipmi_msg *msg)
Definition: oem_1s_handler.c:2244
void OEM_1S_GET_SET_BIC_VGPIO(ipmi_msg *msg)
Definition: oem_1s_handler.c:1189
void OEM_1S_GET_PCIE_CARD_STATUS(ipmi_msg *msg)
Definition: oem_1s_handler.c:2216
void OEM_1S_BMC_IPMB_ACCESS(ipmi_msg *msg)
Definition: oem_1s_handler.c:2114
FIRWARE_UPDATE_TARGET
Definition: oem_1s_handler.h:49
@ CXL_UPDATE
Definition: oem_1s_handler.h:53
@ CPLD_UPDATE
Definition: oem_1s_handler.h:51
@ PRoT_FLASH_UPDATE
Definition: oem_1s_handler.h:54
@ BIC_UPDATE
Definition: oem_1s_handler.h:52
@ BIOS_UPDATE
Definition: oem_1s_handler.h:50
void OEM_1S_GET_BIC_FW_INFO(ipmi_msg *msg)
Definition: oem_1s_handler.c:367
void IPMI_OEM_1S_handler(ipmi_msg *msg)
Definition: oem_1s_handler.c:2432
FIRMWARE_COMPONENT
Definition: oem_1s_handler.h:29
@ COMPNT_PVCCD_HV
Definition: oem_1s_handler.h:36
@ COMPNT_CPLD
Definition: oem_1s_handler.h:30
@ COMPNT_PVCCIN
Definition: oem_1s_handler.h:34
@ COMPNT_PVCCINFAON
Definition: oem_1s_handler.h:37
@ COMPNT_PVCCFA_EHV_FIVRA
Definition: oem_1s_handler.h:35
@ COMPNT_BIOS
Definition: oem_1s_handler.h:33
@ COMPNT_PVCCFA_EHV
Definition: oem_1s_handler.h:38
@ COMPNT_ME
Definition: oem_1s_handler.h:32
@ COMPNT_BIC
Definition: oem_1s_handler.h:31
uint8_t gpio_idx_exchange(ipmi_msg *msg)
Definition: oem_1s_handler.c:1076
void OEM_1S_GET_PCIE_RETIMER_TYPE(ipmi_msg *msg)
Definition: oem_1s_handler.c:2189
void OEM_1S_PEX_FLASH_READ(ipmi_msg *msg)
Definition: oem_1s_handler.c:1730
void OEM_1S_GET_4BYTE_POST_CODE(ipmi_msg *msg)
Definition: oem_1s_handler.c:757
void OEM_1S_SET_ADD_DEBUG_SEL_MODE(ipmi_msg *msg)
Definition: oem_1s_handler.c:2159
void OEM_1S_ACCURACY_SENSOR_READING(ipmi_msg *msg)
Definition: oem_1s_handler.c:991
void OEM_1S_I2C_DEV_SCAN(ipmi_msg *msg)
Definition: oem_1s_handler.c:1355
void OEM_1S_GET_HSC_STATUS(ipmi_msg *msg)
Definition: oem_1s_handler.c:2198
void OEM_1S_GET_FW_SHA256(ipmi_msg *msg)
void OEM_1S_DEBUG_GET_HW_SIGNAL(ipmi_msg *msg)
Definition: oem_1s_handler.c:2280
void OEM_1S_RESET_BMC(ipmi_msg *msg)
Definition: oem_1s_handler.c:623
Definition: oem_1s_handler.h:70
uint8_t read_option
Definition: oem_1s_handler.h:72
uint8_t sensor_num
Definition: oem_1s_handler.h:71
Definition: oem_1s_handler.h:75
uint16_t decimal
Definition: oem_1s_handler.h:76
uint16_t fraction
Definition: oem_1s_handler.h:77
uint8_t status
Definition: oem_1s_handler.h:78
Definition: ipmb.h:165
void OEM_1S_WRITE_READ_DIMM(ipmi_msg *msg)
Definition: plat_ipmi.c:257