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
//#include "hal_i2c.h"
23
24
#define DETECT_SMI_DELAY_90S 90
25
26
#define VR_PWR_FAULT_DELAY_MS 10
27
#define CPLD_VR_FAULT_REG 0x01
28
// VR Address
29
// Page 0: PVCCIN / Page 1: FIVRA
30
#define PVCCIN_FIVRA_ADDR (0xC0 >> 1)
31
// Page 0: PVCCD
32
#define PVCCD_ADDR (0xC4 >> 1)
33
// Page 0: FAON / Page 1: EHV
34
#define FAON_EHV_ADDR (0xEC >> 1)
35
36
enum
GET_SET_M2_OPTION
{
37
DEVICE_SET_POWER_OFF
= 0x00,
38
DEVICE_SET_POWER_ON
= 0x01,
39
DEVICE_GET_POWER_STATUS
= 0x03,
40
};
41
42
void
send_gpio_interrupt
(uint8_t gpio_num);
43
void
init_vr_pwr_fault_work
();
44
void
ISR_PLTRST
();
45
void
ISR_SLP3
();
46
void
ISR_DC_ON
();
47
void
ISR_BMC_PRDY
();
48
void
ISR_PWRGD_CPU
();
49
void
ISR_CATERR
();
50
void
ISR_DBP_PRSNT
();
51
void
ISR_POST_COMPLETE
();
52
void
ISR_SOC_THMALTRIP
();
53
void
ISR_SYS_THROTTLE
();
54
void
ISR_PCH_THMALTRIP
();
55
void
ISR_HSC_OC
();
56
void
ISR_CPU_MEMHOT
();
57
void
ISR_CPUVR_HOT
();
58
void
ISR_PCH_PWRGD
();
59
void
ISR_MB_THROTTLE
();
60
void
ISR_HSC_THROTTLE
();
61
void
ISR_FM_THROTTLE
();
62
void
ISR_RMCA
();
63
void
ISR_CPU_VPP_INT
();
64
void
ISR_NMI
();
65
void
ISR_RST_PLTRST_PLD
();
66
void
ISR_SMI
();
67
void
ISR_VR_PWR_FAULT
();
68
69
#endif
ISR_DC_ON
void ISR_DC_ON()
Definition:
plat_isr.c:101
ipmi.h
ISR_SYS_THROTTLE
void ISR_SYS_THROTTLE()
Definition:
plat_isr.c:366
ISR_CATERR
void ISR_CATERR()
Definition:
plat_isr.c:251
ISR_CPUVR_HOT
void ISR_CPUVR_HOT()
Definition:
plat_isr.c:463
ISR_HSC_OC
void ISR_HSC_OC()
Definition:
plat_isr.c:418
ISR_MB_THROTTLE
void ISR_MB_THROTTLE()
Definition:
plat_isr.c:333
ISR_PLTRST
void ISR_PLTRST()
Definition:
plat_isr.c:264
ISR_POST_COMPLETE
void ISR_POST_COMPLETE()
Definition:
plat_isr.c:118
ISR_CPU_MEMHOT
void ISR_CPU_MEMHOT()
Definition:
plat_isr.c:440
ISR_PWRGD_CPU
void ISR_PWRGD_CPU()
Definition:
plat_isr.c:200
ISR_FM_THROTTLE
void ISR_FM_THROTTLE()
Definition:
plat_isr.c:276
ISR_SOC_THMALTRIP
void ISR_SOC_THMALTRIP()
Definition:
plat_isr.c:338
ISR_SMI
void ISR_SMI()
Definition:
plat_isr.c:549
ISR_PCH_PWRGD
void ISR_PCH_PWRGD()
Definition:
plat_isr.c:486
ISR_RMCA
void ISR_RMCA()
Definition:
plat_isr.c:505
send_gpio_interrupt
void send_gpio_interrupt(uint8_t gpio_num)
Definition:
plat_isr.c:58
ISR_BMC_PRDY
void ISR_BMC_PRDY()
Definition:
plat_isr.c:170
ISR_HSC_THROTTLE
void ISR_HSC_THROTTLE()
Definition:
plat_isr.c:299
ISR_PCH_THMALTRIP
void ISR_PCH_THMALTRIP()
Definition:
plat_isr.c:389
ISR_DBP_PRSNT
void ISR_DBP_PRSNT()
Definition:
plat_isr.c:270
ISR_SLP3
void ISR_SLP3()
Definition:
plat_isr.c:104
GET_SET_M2_OPTION
GET_SET_M2_OPTION
Definition:
plat_isr.c:36
ISR_NMI
void ISR_NMI()
Definition:
plat_isr.c:495
ISR_CPU_VPP_INT
void ISR_CPU_VPP_INT()
Definition:
plat_isr.c:671
ISR_RST_PLTRST_PLD
void ISR_RST_PLTRST_PLD()
Definition:
plat_isr.c:694
init_vr_pwr_fault_work
void init_vr_pwr_fault_work()
Definition:
plat_isr.c:358
ISR_VR_PWR_FAULT
void ISR_VR_PWR_FAULT()
Definition:
plat_isr.c:363
DEVICE_GET_POWER_STATUS
@ DEVICE_GET_POWER_STATUS
Definition:
plat_isr.h:39
DEVICE_SET_POWER_ON
@ DEVICE_SET_POWER_ON
Definition:
plat_isr.h:38
DEVICE_SET_POWER_OFF
@ DEVICE_SET_POWER_OFF
Definition:
plat_isr.h:37
meta-facebook
yv35-cl
src
platform
plat_isr.h
Generated by
1.9.2