coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <acpi/acpigen.h>
#include <console/console.h>
#include <soc/gpio.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

static int acpigen_soc_gpio_op (const char *op, unsigned int gpio_num)
 
static int acpigen_soc_get_gpio_state (const char *op, unsigned int gpio_num)
 
int acpigen_soc_read_rx_gpio (unsigned int gpio_num)
 
int acpigen_soc_get_tx_gpio (unsigned int gpio_num)
 
int acpigen_soc_set_tx_gpio (unsigned int gpio_num)
 
int acpigen_soc_clear_tx_gpio (unsigned int gpio_num)
 

Function Documentation

◆ acpigen_soc_clear_tx_gpio()

int acpigen_soc_clear_tx_gpio ( unsigned int  gpio_num)

Definition at line 61 of file gpio.c.

◆ acpigen_soc_get_gpio_state()

static int acpigen_soc_get_gpio_state ( const char *  op,
unsigned int  gpio_num 
)
static

Definition at line 26 of file gpio.c.

References acpigen_emit_byte(), acpigen_soc_gpio_op(), acpigen_write_store(), AMD_GPIO_FIRST_REMOTE_GPIO_NUMBER, BIOS_WARNING, LOCAL0_OP, printk, and SOC_GPIO_TOTAL_PINS.

Referenced by acpigen_soc_get_tx_gpio(), and acpigen_soc_read_rx_gpio().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpigen_soc_get_tx_gpio()

int acpigen_soc_get_tx_gpio ( unsigned int  gpio_num)

Definition at line 51 of file gpio.c.

◆ acpigen_soc_gpio_op()

static int acpigen_soc_gpio_op ( const char *  op,
unsigned int  gpio_num 
)
static

Definition at line 7 of file gpio.c.

References acpigen_emit_namestring(), acpigen_write_integer(), AMD_GPIO_FIRST_REMOTE_GPIO_NUMBER, BIOS_WARNING, printk, and SOC_GPIO_TOTAL_PINS.

Referenced by acpigen_soc_clear_tx_gpio(), acpigen_soc_get_gpio_state(), and acpigen_soc_set_tx_gpio().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ acpigen_soc_read_rx_gpio()

int acpigen_soc_read_rx_gpio ( unsigned int  gpio_num)

Definition at line 46 of file gpio.c.

◆ acpigen_soc_set_tx_gpio()

int acpigen_soc_set_tx_gpio ( unsigned int  gpio_num)

Definition at line 56 of file gpio.c.