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_ISR_H
18#define PLAT_ISR_H
19
20#include <stdint.h>
21
22extern uint8_t hw_event_register[13];
23
24#define VR_FAULT_STATUS_LSB_MASK 0x3C
25#define VR_FAULT_STATUS_MSB_MASK 0xE0
26#define VR_IOUT_FAULT_MASK 0x40
27#define VR_TPS_OCW_MASK 0x20
28
29typedef struct _add_vr_sel_info {
30 bool is_init;
31 uint8_t gpio_num;
32 uint8_t vr_addr;
33 uint8_t page_cnt;
34 uint8_t is_asserted;
35 struct k_work_delayable add_sel_work;
37
38typedef struct _add_sel_info {
39 bool is_init;
40 uint8_t gpio_num;
41 uint8_t event_type;
42 uint8_t assert_type;
43 struct k_work_delayable add_sel_work;
45
46void ISR_DC_ON();
48void ISR_BMC_READY();
49void ISR_WF_BIC_READY();
51void reinit_i3c_hub();
52void set_ffwf_eid();
53void ISR_SLP3();
54void ISR_DBP_PRSNT();
55void ISR_MB_THROTTLE();
57void ISR_SYS_THROTTLE();
58void ISR_HSC_OC();
64void ISR_UV_DETECT();
65void IST_PLTRST();
66void ISR_APML_ALERT();
68
70void process_vr_pmalert_ocp_sel(struct k_work *work_item);
71void init_event_work();
72void addsel_work_handler(struct k_work *work_item);
73
74#endif
struct _add_sel_info add_sel_info
void ISR_DC_ON()
Definition: plat_isr.c:101
Definition: plat_isr.h:29
bool is_init
Definition: plat_isr.h:30
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 assert_type
Definition: plat_isr.h:42
Definition: plat_isr.h:29
uint8_t page_cnt
Definition: plat_isr.h:33
struct k_work_delayable add_sel_work
Definition: plat_isr.h:35
uint8_t vr_addr
Definition: plat_isr.h:32
bool is_init
Definition: plat_isr.h:30
uint8_t is_asserted
Definition: plat_isr.h:34
uint8_t gpio_num
Definition: plat_isr.h:31
void ISR_SYS_THROTTLE()
Definition: plat_isr.c:366
void ISR_HSC_OC()
Definition: plat_isr.c:418
void ISR_MB_THROTTLE()
Definition: plat_isr.c:333
void ISR_POST_COMPLETE()
Definition: plat_isr.c:118
void ISR_SOC_THMALTRIP()
Definition: plat_isr.c:338
void ISR_DBP_PRSNT()
Definition: plat_isr.c:270
void ISR_SLP3()
Definition: plat_isr.c:104
void ISR_UV_DETECT()
Definition: plat_isr.c:534
void ISR_PVDDCR_CPU1_OCP()
Definition: plat_isr.c:328
void IST_PLTRST()
Definition: plat_isr.c:363
void ISR_APML_ALERT()
Definition: plat_isr.c:397
void ISR_PVDDCR_CPU0_OCP()
Definition: plat_isr.c:321
void ISR_PVDDCR_CPU0_PMALERT()
Definition: plat_isr.c:771
struct _add_vr_sel_info add_vr_sel_info
void ISR_PVDD11_S3_PMALERT()
Definition: plat_isr.c:648
void process_vr_pmalert_ocp_sel(struct k_work *work_item)
Definition: plat_isr.c:502
void sync_bmc_ready_pin()
Definition: plat_gpio.c:301
void addsel_work_handler(struct k_work *work_item)
Definition: plat_isr.c:161
void ISR_WF_BIC_READY()
Definition: plat_isr.c:324
void init_vr_event_work()
Definition: plat_isr.c:490
void init_event_work()
Definition: plat_isr.c:149
void ISR_CPU_SMERR_BIC()
Definition: plat_isr.c:789
uint8_t hw_event_register[13]
Definition: plat_isr.c:52
void ISR_PVDDCR_CPU1_PMALERT()
Definition: plat_isr.c:780
void reinit_i3c_hub()
Definition: plat_isr.c:191
void ISR_BMC_READY()
Definition: plat_isr.c:319
void set_ffwf_eid()
Definition: plat_isr.c:224