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

Go to the source code of this file.

Functions

struct soc_gpio_configmainboard_get_gpios (void)
 

Variables

static const struct soc_gpio_map gpse_gpio_map []
 
static const struct soc_gpio_map gpsw_gpio_map []
 
static const struct soc_gpio_map gpn_gpio_map []
 
static const struct soc_gpio_map gpe_gpio_map []
 
static struct soc_gpio_config gpio_config
 

Function Documentation

◆ mainboard_get_gpios()

struct soc_gpio_config* mainboard_get_gpios ( void  )

Definition at line 235 of file gpio.c.

References gpio_config.

Variable Documentation

◆ gpe_gpio_map

const struct soc_gpio_map gpe_gpio_map[]
static
Initial value:
= {
}
@ NA
Definition: azalia_device.h:96
#define GPIO_END
Definition: gpio.h:302
#define GPIO_INPUT_PU_20K
Definition: gpio.h:151
#define GPIO_NC
Definition: gpio.h:310
@ M1
Definition: gpio.h:383
@ P_1K_H
Definition: gpio.h:378
#define NATIVE_FUNC(mode, term, inv_rx_tx)
Definition: gpio.h:233
#define Native_M1
Definition: gpio.h:315

Definition at line 1 of file gpio.c.

◆ gpio_config

Initial value:
= {
.north = gpn_gpio_map,
.southeast = gpse_gpio_map,
.southwest = gpsw_gpio_map,
.east = gpe_gpio_map
}
static const struct soc_gpio_map gpsw_gpio_map[]
Definition: gpio.c:66
static const struct soc_gpio_map gpse_gpio_map[]
Definition: gpio.c:6
static const struct soc_gpio_map gpe_gpio_map[]
Definition: gpio.c:199
static const struct soc_gpio_map gpn_gpio_map[]
Definition: gpio.c:127

Definition at line 1 of file gpio.c.

Referenced by mainboard_get_gpios().

◆ gpn_gpio_map

const struct soc_gpio_map gpn_gpio_map[]
static

Definition at line 1 of file gpio.c.

◆ gpse_gpio_map

const struct soc_gpio_map gpse_gpio_map[]
static

Definition at line 1 of file gpio.c.

◆ gpsw_gpio_map

const struct soc_gpio_map gpsw_gpio_map[]
static

Definition at line 1 of file gpio.c.