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#include <stdbool.h>
19#include <stdint.h>
20#include "plat_cpld.h"
21
22#define HAMSA_SMB_ERR_EVENT_HEADER 0x60
23
24typedef struct _vr_fault_info {
25 uint8_t mtia_event_source;
26 uint8_t cpld_reg_offset;
27 uint8_t cpld_reg_bit;
28 bool is_pmbus_vr;
29 uint8_t sensor_id;
31
35};
36
37void process_mtia_vr_power_fault_sel(cpld_info *cpld_info, uint8_t *current_cpld_value);
38void plat_set_dc_on_log(bool is_assert);
39void plat_set_iris_temp_error_log(bool is_assert, uint8_t sensor_id);
40#endif
void plat_set_dc_on_log(bool is_assert)
Definition: plat_event.c:398
uint16_t sensor_id
Definition: pldm_monitor.h:0
void plat_set_iris_temp_error_log(bool is_assert, uint8_t sensor_id)
Definition: plat_event.c:224
struct _vr_fault_info vr_fault_info
event_type
Definition: plat_event.h:32
@ ASIC_MODULE_ERROR
Definition: plat_event.h:34
@ VR_POWER_FAULT
Definition: plat_event.h:33
void process_mtia_vr_power_fault_sel(cpld_info *cpld_info, uint8_t *current_cpld_value)
Definition: plat_event.c:113
Definition: plat_cpld.h:67
Definition: plat_event.c:76
bool is_pmbus_vr
Definition: plat_event.c:80
uint8_t mtia_event_source
Definition: plat_event.c:77
uint8_t cpld_reg_bit
Definition: plat_event.c:79
uint8_t sensor_id
Definition: plat_event.c:81
uint8_t cpld_reg_offset
Definition: plat_event.c:78