coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_oem.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SB_GPIO_REG02   2
 
#define SB_GPIO_REG09   9
 
#define SB_GPIO_REG10   10
 
#define SB_GPIO_REG15   15
 
#define SB_GPIO_REG17   17
 
#define SB_GPIO_REG21   21
 
#define SB_GPIO_REG25   25
 
#define SB_GPIO_REG28   28
 
#define FCH_IOMUX(gpio_nr)   (*(u8*)((uintptr_t)ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))
 
#define FCH_PMIO(reg_nr)   (*(u8*)((uintptr_t)ACPI_MMIO_BASE+PMIO_BASE+(reg_nr)))
 
#define FCH_GPIO(gpio_nr)   (*(volatile u8*)((uintptr_t)ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))
 

Functions

static u8 fch_gpio_state (unsigned int gpio_nr)
 

Macro Definition Documentation

◆ FCH_GPIO

#define FCH_GPIO (   gpio_nr)    (*(volatile u8*)((uintptr_t)ACPI_MMIO_BASE+GPIO_BASE+(gpio_nr)))

Definition at line 18 of file gpio_oem.h.

◆ FCH_IOMUX

#define FCH_IOMUX (   gpio_nr)    (*(u8*)((uintptr_t)ACPI_MMIO_BASE+IOMUX_BASE+(gpio_nr)))

Definition at line 16 of file gpio_oem.h.

◆ FCH_PMIO

#define FCH_PMIO (   reg_nr)    (*(u8*)((uintptr_t)ACPI_MMIO_BASE+PMIO_BASE+(reg_nr)))

Definition at line 17 of file gpio_oem.h.

◆ SB_GPIO_REG02

#define SB_GPIO_REG02   2

Definition at line 6 of file gpio_oem.h.

◆ SB_GPIO_REG09

#define SB_GPIO_REG09   9

Definition at line 7 of file gpio_oem.h.

◆ SB_GPIO_REG10

#define SB_GPIO_REG10   10

Definition at line 8 of file gpio_oem.h.

◆ SB_GPIO_REG15

#define SB_GPIO_REG15   15

Definition at line 9 of file gpio_oem.h.

◆ SB_GPIO_REG17

#define SB_GPIO_REG17   17

Definition at line 10 of file gpio_oem.h.

◆ SB_GPIO_REG21

#define SB_GPIO_REG21   21

Definition at line 11 of file gpio_oem.h.

◆ SB_GPIO_REG25

#define SB_GPIO_REG25   25

Definition at line 12 of file gpio_oem.h.

◆ SB_GPIO_REG28

#define SB_GPIO_REG28   28

Definition at line 13 of file gpio_oem.h.

Function Documentation

◆ fch_gpio_state()

static u8 fch_gpio_state ( unsigned int  gpio_nr)
inlinestatic

Definition at line 20 of file gpio_oem.h.

References FCH_GPIO.

Referenced by init().

Here is the caller graph for this function: