OpenBIC
OpenSource Bridge-IC
plat_event.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#ifndef PLAT_EVENT_H
17#define PLAT_EVENT_H
18
19#include "plat_cpld.h"
20
21#define HAMSA_SMB_ERR_EVENT_HEADER 0x60
22typedef struct _vr_fault_info {
23 uint8_t mtia_event_source;
24 uint8_t cpld_reg_offset;
25 uint8_t cpld_reg_bit;
26 bool is_pmbus_vr;
27 uint8_t rail_id;
29
30typedef struct __attribute__((packed)) _plat_asic_error_event {
31 uint8_t event_id_0;
32 uint8_t event_id_1;
33 uint8_t chip_id;
34 uint8_t module_id;
36
40};
41
42void process_mtia_vr_power_fault_sel(cpld_info *cpld_info, uint8_t *current_cpld_value);
43void plat_set_ac_on_log(void);
44void plat_set_dc_on_log(bool is_assert);
45void plat_set_arke_temp_error_log(bool is_assert, uint8_t sensor_id);
46void plat_asic_thermtrip_error_log(bool is_assert);
49#endif
void plat_set_dc_on_log(bool is_assert)
Definition: plat_event.c:398
void plat_set_ac_on_log()
Definition: plat_event.c:391
uint16_t sensor_id
Definition: pldm_monitor.h:0
struct _vr_fault_info vr_fault_info
event_type
Definition: plat_event.h:37
@ ASIC_MODULE_ERROR
Definition: plat_event.h:39
@ VR_POWER_FAULT
Definition: plat_event.h:38
void plat_asic_error_error_log(bool is_assert, plat_asic_error_event event)
Definition: plat_event.c:254
plat_asic_error_event * plat_get_asic_error_event()
Definition: plat_event.c:267
void plat_set_arke_temp_error_log(bool is_assert, uint8_t sensor_id)
Definition: plat_event.c:230
void plat_asic_thermtrip_error_log(bool is_assert)
Definition: plat_event.c:243
plat_asic_error_event
Definition: plat_event.h:35
void process_mtia_vr_power_fault_sel(cpld_info *cpld_info, uint8_t *current_cpld_value)
Definition: plat_event.c:119
struct sel_event_record event
Definition: storage_handler.h:1
Definition: pldm_smbios.h:61
Definition: plat_cpld.h:123
Definition: plat_event.c:76
bool is_pmbus_vr
Definition: plat_event.c:80
uint8_t rail_id
Definition: plat_event.h:27
uint8_t mtia_event_source
Definition: plat_event.c:77
uint8_t cpld_reg_bit
Definition: plat_event.c:79
uint8_t cpld_reg_offset
Definition: plat_event.c:78