OpenBIC
OpenSource Bridge-IC
plat_gpio.h File Reference
#include "hal_gpio.h"
Include dependency graph for plat_gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define name_gpioA
 
#define name_gpioB
 
#define name_gpioC
 
#define name_gpioD
 
#define name_gpioE
 
#define name_gpioF
 
#define name_gpioG
 
#define name_gpioH
 
#define name_gpioI
 
#define name_gpioJ
 
#define name_gpioK
 
#define name_gpioL
 
#define name_gpioM
 
#define name_gpioN
 
#define name_gpioO
 
#define name_gpioP
 
#define name_gpioQ
 
#define name_gpioR
 
#define name_gpioS
 
#define name_gpioT
 
#define name_gpioU
 
#define update_name_gpioD
 
#define update_name_gpioE
 
#define update_name_gpioF
 
#define update_name_gpioG
 
#define update_name_gpioH
 
#define update_name_gpioL
 
#define update_name_gpioM
 
#define update_name_gpioN
 
#define gpio_name_to_num(x)   x,
 

Enumerations

enum  _GPIO_NUMS_ {
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioF , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU , name_gpioU ,
  name_gpioU , name_gpioU , name_gpioU
}
 

Functions

void enable_PRDY_interrupt ()
 
void disable_PRDY_interrupt ()
 
int get_cxl_ioexp_alert_pin (uint8_t cxl_id, uint8_t *alert_pin)
 
void init_board_rev_gpio ()
 

Variables

enum _GPIO_NUMS_ GPIO_NUMS
 
char * gpio_name []
 

Macro Definition Documentation

◆ gpio_name_to_num

#define gpio_name_to_num (   x)    x,

◆ name_gpioA

#define name_gpioA
Value:
gpio_name_to_num(MEB_PEX0_CNFG0_R) \
gpio_name_to_num(MEB_PEX0_CNFG1_R) \
gpio_name_to_num(MEB_PEX0_CNFG2_R) \
gpio_name_to_num(MEB_PEX1_CNFG0_R) \
gpio_name_to_num(MEB_PEX1_CNFG1_R) \
gpio_name_to_num(MEB_PEX1_CNFG2_R) \
gpio_name_to_num(MEB_STRAP0_N_R) \
gpio_name_to_num(MEB_STRAP1_N_R)
#define gpio_name_to_num(x)
Definition: plat_gpio.h:318

◆ name_gpioB

#define name_gpioB
Value:
gpio_name_to_num(SMB_2_MUX1_CH7_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH6_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH5_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH4_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH3_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH2_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH1_ALERT_R_N) \
gpio_name_to_num(SMB_2_MUX1_CH0_ALERT_R_N)

◆ name_gpioC

#define name_gpioC
Value:
gpio_name_to_num(RST_SMB_2_MUX_N) \
gpio_name_to_num(RST_BMC_MEB_MUX1_N) \
gpio_name_to_num(RST_SMB_8_MUX_N) \
gpio_name_to_num(RST_SMB_7_MUX_N) \
gpio_name_to_num(RST_SMB_4_MUX_N) \
gpio_name_to_num(RST_SMB_3_INA233_MUX_N) \
gpio_name_to_num(JTAG_MUX_SEL) \
gpio_name_to_num(RST_BIC_SELF_HW_RST_N_R)

◆ name_gpioD

#define name_gpioD
Value:
gpio_name_to_num(HSC_D_OC_BIC_N) \
gpio_name_to_num(CPLD_INT_N) \
gpio_name_to_num(RST_SMB_NIC0_N) \
gpio_name_to_num(RST_SMB_E1S_N) \
gpio_name_to_num(P12V_AUX_ALERT_R_N) \
gpio_name_to_num(SMB_3_INA233_P12V_AUX_ALERT_N) \
gpio_name_to_num(RST_SMB_NIC1_N) \
gpio_name_to_num(IOEXP_INT_R_N)

◆ name_gpioE

#define name_gpioE
Value:
gpio_name_to_num(FM_PRSNT1_PCIE_CARD9_R1) \
gpio_name_to_num(FM_PRSNT2_PCIE_CARD9_R1) \
gpio_name_to_num(FM_PRSNT3_PCIE_CARD9_R1) \
gpio_name_to_num(FM_PRSNT4_PCIE_CARD9_R1) \
gpio_name_to_num(FM_PRSNT1_PCIE_CARD10_R1) \
gpio_name_to_num(FM_PRSNT2_PCIE_CARD10_R1) \
gpio_name_to_num(FM_PRSNT3_PCIE_CARD10_R1) \
gpio_name_to_num(FM_PRSNT4_PCIE_CARD10_R1)

◆ name_gpioF

#define name_gpioF
Value:
gpio_name_to_num(MEB_STBY_PWRGD_BIC) \
gpio_name_to_num(MEB_NORMAL_PWRGD_BIC) \
gpio_name_to_num(RST_USB_HUB1_N) \
gpio_name_to_num(RST_USB_HUB2_N) \
gpio_name_to_num(RST_USB_HUB3_N) \
gpio_name_to_num(Reserve_GPIOF5) \
gpio_name_to_num(Reserve_GPIOF6) \
gpio_name_to_num(Reserve_GPIOF7)

◆ name_gpioG

#define name_gpioG
Value:
gpio_name_to_num(FM_PRSNT1_PCIE_CARD3_R1) \
gpio_name_to_num(FM_PRSNT2_PCIE_CARD3_R1) \
gpio_name_to_num(FM_PRSNT3_PCIE_CARD3_R1) \
gpio_name_to_num(FM_PRSNT4_PCIE_CARD3_R1) \
gpio_name_to_num(FM_PRSNT1_PCIE_CARD4_R1) \
gpio_name_to_num(FM_PRSNT2_PCIE_CARD4_R1) \
gpio_name_to_num(FM_PRSNT3_PCIE_CARD4_R1) \
gpio_name_to_num(FM_PRSNT4_PCIE_CARD4_R1)

◆ name_gpioH

#define name_gpioH
Value:
gpio_name_to_num(RST_BMC_MEB_MUX0_N) \
gpio_name_to_num(Reserve_GPIOH1) \
gpio_name_to_num(Reserve_GPIOH2) \
gpio_name_to_num(Reserve_GPIOH3) \
gpio_name_to_num(Reserve_GPIOH4) \
gpio_name_to_num(Reserve_GPIOH5) \
gpio_name_to_num(Reserve_GPIOH6) \
gpio_name_to_num(Reserve_GPIOH7)

◆ name_gpioI

#define name_gpioI
Value:
gpio_name_to_num(Reserve_GPIOI0) \
gpio_name_to_num(Reserve_GPIOI1) \
gpio_name_to_num(Reserve_GPIOI2) \
gpio_name_to_num(Reserve_GPIOI3) \
gpio_name_to_num(Reserve_GPIOI4) \
gpio_name_to_num(Reserve_GPIOI5) \
gpio_name_to_num(Reserve_GPIOI6) \
gpio_name_to_num(Reserve_GPIOI7)

◆ name_gpioJ

#define name_gpioJ
Value:
gpio_name_to_num(Reserve_GPIOJ0) \
gpio_name_to_num(Reserve_GPIOJ1) \
gpio_name_to_num(Reserve_GPIOJ2) \
gpio_name_to_num(Reserve_GPIOJ3) \
gpio_name_to_num(Reserve_GPIOJ4) \
gpio_name_to_num(Reserve_GPIOJ5) \
gpio_name_to_num(Reserve_GPIOJ6) \
gpio_name_to_num(Reserve_GPIOJ7)

◆ name_gpioK

#define name_gpioK
Value:
gpio_name_to_num(Reserve_GPIOK0) \
gpio_name_to_num(Reserve_GPIOK1) \
gpio_name_to_num(Reserve_GPIOK2) \
gpio_name_to_num(Reserve_GPIOK3) \
gpio_name_to_num(Reserve_GPIOK4) \
gpio_name_to_num(Reserve_GPIOK5) \
gpio_name_to_num(Reserve_GPIOK6) \
gpio_name_to_num(Reserve_GPIOK7)

◆ name_gpioL

#define name_gpioL
Value:
gpio_name_to_num(Reserve_GPIOL0) \
gpio_name_to_num(Reserve_GPIOL1) \
gpio_name_to_num(Reserve_GPIOL2) \
gpio_name_to_num(Reserve_GPIOL3) \
gpio_name_to_num(Reserve_GPIOL4) \
gpio_name_to_num(Reserve_GPIOL5) \
gpio_name_to_num(Reserve_GPIOL6) \
gpio_name_to_num(Reserve_GPIOL7)

◆ name_gpioM

#define name_gpioM
Value:
gpio_name_to_num(Reserve_GPIOM0) \
gpio_name_to_num(Reserve_GPIOM1) \
gpio_name_to_num(Reserve_GPIOM2) \
gpio_name_to_num(Reserve_GPIOM3) \
gpio_name_to_num(Reserve_GPIOM4) \
gpio_name_to_num(Reserve_GPIOM5) \
gpio_name_to_num(Reserve_GPIOM6) \
gpio_name_to_num(Reserve_GPIOM7)

◆ name_gpioN

#define name_gpioN
Value:
gpio_name_to_num(Reserve_GPION0) \
gpio_name_to_num(Reserve_GPION1) \
gpio_name_to_num(Reserve_GPION2) \
gpio_name_to_num(Reserve_GPION3) \
gpio_name_to_num(BOARD_ID1) \
gpio_name_to_num(BOARD_ID2) \
gpio_name_to_num(BOARD_ID3) \
gpio_name_to_num(BOARD_ID4)

◆ name_gpioO

#define name_gpioO
Value:
gpio_name_to_num(BOARD_ID0) \
gpio_name_to_num(REV_ID0) \
gpio_name_to_num(REV_ID1) \
gpio_name_to_num(REV_ID2) \
gpio_name_to_num(Reserve_GPIOO4) \
gpio_name_to_num(Reserve_GPIOO5) \
gpio_name_to_num(Reserve_GPIOO6) \
gpio_name_to_num(Reserve_GPIOO7)

◆ name_gpioP

#define name_gpioP
Value:
gpio_name_to_num(Reserve_GPIOP0) \
gpio_name_to_num(Reserve_GPIOP1) \
gpio_name_to_num(Reserve_GPIOP2) \
gpio_name_to_num(Reserve_GPIOP3) \
gpio_name_to_num(Reserve_GPIOP4) \
gpio_name_to_num(Reserve_GPIOP5) \
gpio_name_to_num(Reserve_GPIOP6) \
gpio_name_to_num(Reserve_GPIOP7)

◆ name_gpioQ

#define name_gpioQ
Value:
gpio_name_to_num(Reserve_GPIOQ0) \
gpio_name_to_num(Reserve_GPIOQ1) \
gpio_name_to_num(Reserve_GPIOQ3) \
gpio_name_to_num(Reserve_GPIOQ4) \
gpio_name_to_num(Reserve_GPIOQ5) \
gpio_name_to_num(Reserve_GPIOQ6) \
gpio_name_to_num(Reserve_GPIOQ7)

◆ name_gpioR

#define name_gpioR
Value:
gpio_name_to_num(Reserve_GPIOR0) \
gpio_name_to_num(Reserve_GPIOR1) \
gpio_name_to_num(Reserve_GPIOR2) \
gpio_name_to_num(Reserve_GPIOR3) \
gpio_name_to_num(Reserve_GPIOR4) \
gpio_name_to_num(Reserve_GPIOR5) \
gpio_name_to_num(Reserve_GPIOR6) \
gpio_name_to_num(Reserve_GPIOR7)

◆ name_gpioS

#define name_gpioS
Value:
gpio_name_to_num(Reserve_GPIOS0) \
gpio_name_to_num(Reserve_GPIOS1) \
gpio_name_to_num(Reserve_GPIOS2) \
gpio_name_to_num(Reserve_GPIOS3) \
gpio_name_to_num(Reserve_GPIOS4) \
gpio_name_to_num(Reserve_GPIOS5) \
gpio_name_to_num(Reserve_GPIOS6) \
gpio_name_to_num(Reserve_GPIOS7)

◆ name_gpioT

#define name_gpioT
Value:
gpio_name_to_num(Reserve_GPIOT0) \
gpio_name_to_num(Reserve_GPIOT1) \
gpio_name_to_num(Reserve_GPIOT2) \
gpio_name_to_num(Reserve_GPIOT3) \
gpio_name_to_num(Reserve_GPIOT4) \
gpio_name_to_num(Reserve_GPIOT5) \
gpio_name_to_num(Reserve_GPIOT6) \
gpio_name_to_num(Reserve_GPIOT7)

◆ name_gpioU

#define name_gpioU
Value:
gpio_name_to_num(Reserve_GPIOU0) \
gpio_name_to_num(Reserve_GPIOU1) \
gpio_name_to_num(Reserve_GPIOU2) \
gpio_name_to_num(Reserve_GPIOU3) \
gpio_name_to_num(Reserve_GPIOU4) \
gpio_name_to_num(Reserve_GPIOU5) \
gpio_name_to_num(Reserve_GPIOU6) \
gpio_name_to_num(Reserve_GPIOU7)

◆ update_name_gpioD

#define update_name_gpioD
Value:
gpio_name_to_num(HSC_D_OC_BIC_N) \
gpio_name_to_num(CPLD_INT_N) \
gpio_name_to_num(RST_SMB_NIC0_N) \
gpio_name_to_num(RST_SMB_E1S_N) \
gpio_name_to_num(P12V_AUX_ALERT_R_N) \
gpio_name_to_num(SMB_3_INA233_P12V_AUX_CH0_ALERT_N) \
gpio_name_to_num(RST_SMB_NIC1_N) \
gpio_name_to_num(IOEXP_INT_R_N)

◆ update_name_gpioE

#define update_name_gpioE
Value:
gpio_name_to_num(PWRGD_CARD8_0V6_PWR_BIC) \
gpio_name_to_num(PWRGD_CARD7_0V6_PWR_BIC) \
gpio_name_to_num(RST_USB_HUB3_N) \
gpio_name_to_num(RESERVE_GPIOE3) \
gpio_name_to_num(RESERVE_GPIOE4) \
gpio_name_to_num(PWRGD_CARD6_0V6_PWR_BIC) \
gpio_name_to_num(PWRGD_CARD5_0V6_PWR_BIC) \
gpio_name_to_num(PWRGD_CARD3_0V6_PWR_BIC)

◆ update_name_gpioF

#define update_name_gpioF
Value:
gpio_name_to_num(MEB_STBY_PWRGD_BIC) \
gpio_name_to_num(MEB_NORMAL_PWRGD_BIC) \
gpio_name_to_num(RST_USB_HUB1_N) \
gpio_name_to_num(RST_USB_HUB2_N) \
gpio_name_to_num(RESERVE_GPIOF4) \
gpio_name_to_num(Reserve_GPIOF5) \
gpio_name_to_num(Reserve_GPIOF6) \
gpio_name_to_num(Reserve_GPIOF7)

◆ update_name_gpioG

#define update_name_gpioG
Value:
gpio_name_to_num(Reserve_GPIOG0) \
gpio_name_to_num(Reserve_GPIOG1) \
gpio_name_to_num(Reserve_GPIOG2) \
gpio_name_to_num(Reserve_GPIOG3) \
gpio_name_to_num(Reserve_GPIOG4) \
gpio_name_to_num(Reserve_GPIOG5) \
gpio_name_to_num(Reserve_GPIOG6) \
gpio_name_to_num(Reserve_GPIOG7)

◆ update_name_gpioH

#define update_name_gpioH
Value:
gpio_name_to_num(RST_BMC_MEB_MUX0_N) \
gpio_name_to_num(Reserve_GPIOH1) \
gpio_name_to_num(Reserve_GPIOH2) \
gpio_name_to_num(PWRGD_CARD4_0V6_PWR_BIC) \
gpio_name_to_num(Reserve_GPIOH4) \
gpio_name_to_num(Reserve_GPIOH5) \
gpio_name_to_num(Reserve_GPIOH6) \
gpio_name_to_num(Reserve_GPIOH7)

◆ update_name_gpioL

#define update_name_gpioL
Value:
gpio_name_to_num(Reserve_GPIOL0) \
gpio_name_to_num(Reserve_GPIOL1) \
gpio_name_to_num(PWRGD_CARD1_0V6_PWR_BIC) \
gpio_name_to_num(PWRGD_CARD2_0V6_PWR_BIC) \
gpio_name_to_num(RST_MB_PERST_MEB0_R1_N) \
gpio_name_to_num(RST_MB_PERST_MEB1_R1_N) \
gpio_name_to_num(Reserve_GPIOL6) \
gpio_name_to_num(RST_SMB_6_MUX_N)

◆ update_name_gpioM

#define update_name_gpioM
Value:
gpio_name_to_num(Reserve_GPIOM0) \
gpio_name_to_num(RST_I3C_4_MUX_N) \
gpio_name_to_num(Reserve_GPIOM2) \
gpio_name_to_num(SMB_3_INA233_P12V_AUX_CH1_ALERT_N) \
gpio_name_to_num(Reserve_GPIOM4) \
gpio_name_to_num(Reserve_GPIOM5) \
gpio_name_to_num(Reserve_GPIOM6) \
gpio_name_to_num(Reserve_GPIOM7)

◆ update_name_gpioN

#define update_name_gpioN
Value:
gpio_name_to_num(Reserve_GPION0) \
gpio_name_to_num(SMB_3_INA233_P12V_AUX_CH2_ALERT_N) \
gpio_name_to_num(Reserve_GPION2) \
gpio_name_to_num(SMB_3_INA233_P12V_AUX_CH3_ALERT_N) \
gpio_name_to_num(BOARD_ID1) \
gpio_name_to_num(BOARD_ID2) \
gpio_name_to_num(BOARD_ID3) \
gpio_name_to_num(BOARD_ID4)

Enumeration Type Documentation

◆ _GPIO_NUMS_

Enumerator
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioF 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 
name_gpioU 

Function Documentation

◆ disable_PRDY_interrupt()

void disable_PRDY_interrupt ( )

◆ enable_PRDY_interrupt()

void enable_PRDY_interrupt ( )

◆ get_cxl_ioexp_alert_pin()

int get_cxl_ioexp_alert_pin ( uint8_t  cxl_id,
uint8_t *  alert_pin 
)

◆ init_board_rev_gpio()

void init_board_rev_gpio ( )

Variable Documentation

◆ gpio_name

char* gpio_name[]
extern

◆ GPIO_NUMS

enum _GPIO_NUMS_ GPIO_NUMS
extern