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 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 ()
 

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(BMC_PWR_LED) \
gpio_name_to_num(FM_BIOS_POST_CMPLT_BIC_N) \
gpio_name_to_num(FM_SLPS3_PLD_N) \
gpio_name_to_num(FM_INTRUDER_BIC_N) \
gpio_name_to_num(FM_SPD_REMOTE_R_EN) \
gpio_name_to_num(FM_DEBUG_PORT_PRSNT_R_N) \
gpio_name_to_num(IRQ_SMI_ACTIVE_BIC_N) \
gpio_name_to_num(FM_SOL_UART_CH_SEL_R1)
#define gpio_name_to_num(x)
Definition: plat_gpio.h:245

◆ name_gpioB

#define name_gpioB
Value:
gpio_name_to_num(FM_SPI_MUX_OE_R_N) \
gpio_name_to_num(FM_PECI_MUX_SEL_N) \
gpio_name_to_num(FM_P3V_BAT_SCALED_EN_R) \
gpio_name_to_num(IRQ_SML0_ALERT_R_N) \
gpio_name_to_num(RST_PDB_HS_EN_R_N) \
gpio_name_to_num(FM_SCM_PRSNT_R_N) \
gpio_name_to_num(FM_SPI_PCH_MASTER_SEL_R) \
gpio_name_to_num(FM_BIOS_DEBUG_EN_R1_N)

◆ name_gpioC

#define name_gpioC
Value:
gpio_name_to_num(RST_BTN_BIC_N) \
gpio_name_to_num(RST_BIC_RSTBTN_OUT_R_N) \
gpio_name_to_num(IRQ_CPU0_VRHOT_N) \
gpio_name_to_num(JTAG_DBP_CPU_PREQ_BIC_N) \
gpio_name_to_num(FM_CPU_THERMTRIP_LATCH_LVT3_N) \
gpio_name_to_num(FM_CPU0_SKTOCC_LVT3_PLD_N) \
gpio_name_to_num(PWR_BTN_BIC_N) \
gpio_name_to_num(PWR_BTN_BIC_OUT_R_N)

◆ name_gpioD

#define name_gpioD
Value:
gpio_name_to_num(H_CPU0_MEMHOT_OUT_LVC3_N) \
gpio_name_to_num(RST_BMC_R_N) \
gpio_name_to_num(JTAG_DBP_BMC_PRDY_N) \
gpio_name_to_num(FM_BMC_READY) \
gpio_name_to_num(FM_BIC_READY) \
gpio_name_to_num(FM_DBP_PRESENT_N) \
gpio_name_to_num(FM_BMC_CPU_FBRK_OUT_R_N) \
gpio_name_to_num(FM_FORCE_ADR_R_N)

◆ name_gpioE

#define name_gpioE
Value:
gpio_name_to_num(PWRGD_CPU_LVC3) \
gpio_name_to_num(FM_PCH_BMC_THERMTRIP_N) \
gpio_name_to_num(FM_THROTTLE_R_N) \
gpio_name_to_num(P12V_HS_D_OC_R_N) \
gpio_name_to_num(SMB_SENSOR_LVC3_ALERT_N) \
gpio_name_to_num(FM_CPU_CATERR_LVT3_N) \
gpio_name_to_num(RST_PLTRST_PLD_N) \
gpio_name_to_num(RST_PLTRST_BIC_N)

◆ name_gpioF

#define name_gpioF
Value:
gpio_name_to_num(LED_POSTCODE_0) \
gpio_name_to_num(LED_POSTCODE_1) \
gpio_name_to_num(LED_POSTCODE_2) \
gpio_name_to_num(LED_POSTCODE_3) \
gpio_name_to_num(LED_POSTCODE_4) \
gpio_name_to_num(LED_POSTCODE_5) \
gpio_name_to_num(LED_POSTCODE_6) \
gpio_name_to_num(LED_POSTCODE_7)

◆ name_gpioG

#define name_gpioG
Value:
gpio_name_to_num(IRQ_BMC_PCH_NMI_R) \
gpio_name_to_num(IRQ_SML1_PMBUS_BMC_ALERT_N) \
gpio_name_to_num(IRQ_PCH_CPU_NMI_EVENT_N) \
gpio_name_to_num(FM_JTAG_TCK_MUX_SEL_R) \
gpio_name_to_num(FM_JTAG_BMC_MUX_SEL) \
gpio_name_to_num(H_CPU_ERR0_LVC3_N) \
gpio_name_to_num(H_CPU_ERR1_LVC3_N) \
gpio_name_to_num(H_CPU_ERR2_LVC3_N)

◆ name_gpioH

#define name_gpioH
Value:
gpio_name_to_num(RST_RSMRST_BMC_N) \
gpio_name_to_num(FM_BMC_DEBUG_ENABLE_N) \
gpio_name_to_num(H_CPU_MEMTRIP_LVC3_N) \
gpio_name_to_num(FM_CPU_BIC_PROCHOT_LVT3_N) \
gpio_name_to_num(SMB_BIC_CPLD_R_SCL) \
gpio_name_to_num(SMB_BIC_CPLD_R_SDA) \
gpio_name_to_num(SMB_SENSOR_3V3AUX_R_SCL) \
gpio_name_to_num(SMB_SENSOR_3V3AUX_R_SDA)

◆ name_gpioI

#define name_gpioI
Value:
gpio_name_to_num(SMB_SML0_3V3AUX_R_SCL) \
gpio_name_to_num(SMB_SML0_3V3AUX_R_SDA) \
gpio_name_to_num(SMB_HOST_3V3AUX_R_SCL) \
gpio_name_to_num(SMB_HOST_3V3AUX_R_SDA) \
gpio_name_to_num(SMB_PMBUS_SML1_3V3AUX_R_SCL) \
gpio_name_to_num(SMB_PMBUS_SML1_3V3AUX_R_SDA) \
gpio_name_to_num(SMB_CPU_PIROM_SCL) \
gpio_name_to_num(SMB_CPU_PIROM_SDA)

◆ name_gpioJ

#define name_gpioJ
Value:
gpio_name_to_num(SMB_BIC_SCM_SELF_SCL_R) \
gpio_name_to_num(SMB_BIC_SCM_SELF_SDA_R) \
gpio_name_to_num(SMB_BIC_IOM_SCL_R) \
gpio_name_to_num(SMB_BIC_IOM_SDA_R) \
gpio_name_to_num(SMB_BIC_SCM_PEER_SCL_R) \
gpio_name_to_num(SMB_BIC_SCM_PEER_SDA_R) \
gpio_name_to_num(SMB_VR_SCL_R) \
gpio_name_to_num(SMB_VR_SDA_R)

◆ 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(IRQ_PVCCD_CPU0_VRHOT_LVC3_N) \
gpio_name_to_num(IRQ_PSYS_CRIT_N) \
gpio_name_to_num(SYS_SKU_ID1) \
gpio_name_to_num(SYS_SKU_ID0)

◆ name_gpioM

#define name_gpioM
Value:
gpio_name_to_num(BIC_SECUREBOOT) \
gpio_name_to_num(SELF_MB_ID) \
gpio_name_to_num(BIC_ESPI_SELECT) \
gpio_name_to_num(FM_REMOTE_DEBUG_DET) \
gpio_name_to_num(RST_SGPIO_RESET_N) \
gpio_name_to_num(IRQ_SGPIO_INTR_N) \
gpio_name_to_num(Reserve_GPIOM6) \
gpio_name_to_num(Reserve_GPIOM7)

◆ name_gpioN

#define name_gpioN
Value:
gpio_name_to_num(SGPIO_BMC_CLK_R) \
gpio_name_to_num(SGPIO_BMC_LD_R_N) \
gpio_name_to_num(SGPIO_BMC_DOUT_R) \
gpio_name_to_num(SGPIO_BMC_DIN) \
gpio_name_to_num(Reserve_GPION4) \
gpio_name_to_num(Reserve_GPION5) \
gpio_name_to_num(Reserve_GPION6) \
gpio_name_to_num(Reserve_GPION7)

◆ name_gpioO

#define name_gpioO
Value:
gpio_name_to_num(Reserve_GPIOO0) \
gpio_name_to_num(Reserve_GPIOO1) \
gpio_name_to_num(Reserve_GPIOO2) \
gpio_name_to_num(Reserve_GPIOO3) \
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_GPIOQ2) \
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(FM_SCB_PRSNT_R_N) \
gpio_name_to_num(FM_CPU_RMCA_LVT3_N) \
gpio_name_to_num(PWRGD_SYS_PWROK) \
gpio_name_to_num(FM_S3M_CPU0_CPLD_CRC_ERROR) \
gpio_name_to_num(FM_SLPS4_PLD_N) \
gpio_name_to_num(FM_PCHHOT_N) \
gpio_name_to_num(FM_ME_BT_DONE)

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 ( )

Variable Documentation

◆ gpio_name

char* gpio_name[]
extern

◆ GPIO_NUMS

enum _GPIO_NUMS_ GPIO_NUMS
extern