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
22#include "ipmi.h"
23
28};
29
30#define DC_ON_5_SECOND 5
31#define DC_OFF_10_SECOND 10
32#define PROC_FAIL_START_DELAY_SECOND 10
33#define CATERR_START_DELAY_SECOND 2
34#define MB_THROTTLE_DELAY_US 4
35
36#define CPLD_ADDR 0x21 // 7-bit address
37#define CPLD_VR_FAULT_REG 0x01
38#define CPLD_1OU_VPP_POWER_STATUS 0x11
39#define MAX_1OU_M2_COUNT 4
40
41#define VR_PWR_FAULT_DELAY_MS 10
42// VR Address
43// Page 0: PVCCIN / Page 1: EHV
44#define PVCCIN_EHV_ADDR (0xC0 >> 1)
45// Page 0: FIVRA / Page 1: PVCCINF
46#define FIVRA_PVCCINF_ADDR (0xC4 >> 1)
47// Page 0: PVCCD0 / Page 1: PVCCD1
48#define PVCCD0_PVCCD1_ADDR (0xE4 >> 1)
49
50void send_gpio_interrupt(uint8_t gpio_num);
52void ISR_SLP3();
54void ISR_BMC_PRDY();
55void ISR_CATERR();
56void ISR_PLTRST();
57void ISR_DBP_PRSNT();
58void ISR_HSC_THROTTLE();
59void ISR_MB_THROTTLE();
61void ISR_SYS_THROTTLE();
62void ISR_HSC_OC();
63void ISR_CPU_MEMHOT();
64void ISR_CPUVR_HOT();
65void ISR_RMCA();
66void ISR_VR_PWR_FAULT();
67void ISR_POST_COMPLETE(uint8_t gpio_value);
68void ISR_FM_ADR_MODE0(uint8_t gpio_value);
69
70#endif
void ISR_SYS_THROTTLE()
Definition: plat_isr.c:366
void ISR_CATERR()
Definition: plat_isr.c:251
void ISR_CPUVR_HOT()
Definition: plat_isr.c:463
void ISR_HSC_OC()
Definition: plat_isr.c:418
void ISR_MB_THROTTLE()
Definition: plat_isr.c:333
void ISR_PLTRST()
Definition: plat_isr.c:264
void ISR_POST_COMPLETE()
Definition: plat_isr.c:118
void ISR_CPU_MEMHOT()
Definition: plat_isr.c:440
void ISR_SOC_THMALTRIP()
Definition: plat_isr.c:338
void ISR_RMCA()
Definition: plat_isr.c:505
void send_gpio_interrupt(uint8_t gpio_num)
Definition: plat_isr.c:58
void ISR_BMC_PRDY()
Definition: plat_isr.c:170
void ISR_HSC_THROTTLE()
Definition: plat_isr.c:299
void ISR_DBP_PRSNT()
Definition: plat_isr.c:270
void ISR_SLP3()
Definition: plat_isr.c:104
GET_SET_M2_OPTION
Definition: plat_isr.c:36
void init_vr_pwr_fault_work()
Definition: plat_isr.c:358
void ISR_VR_PWR_FAULT()
Definition: plat_isr.c:363
@ DEVICE_GET_POWER_STATUS
Definition: plat_isr.h:39
@ DEVICE_SET_POWER_ON
Definition: plat_isr.h:38
@ DEVICE_SET_POWER_OFF
Definition: plat_isr.h:37
void PWRGD_CPU_ACTIVE_HANDLE()
Definition: plat_isr.c:205
void ISR_FM_ADR_MODE0(uint8_t gpio_value)
Definition: plat_isr.c:612