OpenBIC
OpenSource Bridge-IC
plat_isr.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 PLAT_FUNC_H
18#define PLAT_FUNC_H
19
20#include <stdint.h>
21#include "ipmi.h"
22
23#define PRESS_FIO_BUTTON_DELAY_MS 4000
24
27};
28
29typedef struct _add_sel_info {
30 bool is_init;
32 uint8_t gpio_num;
33 uint8_t device_type;
34 uint8_t board_info;
35 uint8_t event_type;
36 struct k_work_delayable add_sel_work;
38
39typedef struct _accl_power_fault_info {
40 uint8_t check_bit;
43
44void ISR_FIO_BUTTON();
63
64#endif
void ISR_P12V_ACCL8_ALERT()
void ISR_P12V_ACCL1_ALERT()
void ISR_P12V_ACCL10_ALERT()
void vr_alert_work_handler()
void ISR_P1V25_ALERT()
void ISR_P12V_ACCL12_ALERT()
void ISR_POWER_STATUS_CHANGE()
Definition: plat_isr.c:465
struct _accl_power_fault_info accl_power_fault_info
void ISR_P12V_ACCL2_ALERT()
void fio_power_button_work_handler()
Definition: plat_isr.c:182
BUTTON_OPTIONAL
Definition: plat_isr.h:25
@ OPTIONAL_AC_OFF
Definition: plat_isr.h:26
void ISR_P12V_ACCL3_ALERT()
void ISR_P12V_ACCL4_ALERT()
void ISR_P12V_ACCL11_ALERT()
void ISR_P12V_ACCL5_ALERT()
void ISR_P12V_ACCL7_ALERT()
void ISR_FIO_BUTTON()
Definition: plat_isr.c:459
struct _add_sel_info add_sel_info
void ISR_PMBUS_ALERT()
void ISR_P12V_ACCL9_ALERT()
void ISR_VR_ALERT()
void ISR_P12V_ACCL6_ALERT()
Definition: plat_isr.h:39
uint8_t check_bit
Definition: plat_isr.h:40
uint8_t power_fault_state
Definition: plat_isr.h:41
Definition: plat_isr.h:29
bool is_init
Definition: plat_isr.h:30
int delay_ms
Definition: plat_isr.h:31
uint8_t gpio_num
Definition: plat_isr.h:32
struct k_work_delayable add_sel_work
Definition: plat_isr.h:36
uint8_t event_type
Definition: plat_isr.h:35
uint8_t device_type
Definition: plat_isr.h:33
uint8_t board_info
Definition: plat_isr.h:34