coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.h File Reference
#include <types.h>
#include <gpio.h>
Include dependency graph for gpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef u32 gpio_t
 

Functions

gpio_t gpio_pin_count (void)
 
void gpio_invert (gpio_t gpio, int value)
 
int gpio_strap_value (gpio_t gpio)
 
void gpio_init (void)
 

Typedef Documentation

◆ gpio_t

typedef u32 gpio_t

Definition at line 8 of file gpio.h.

Function Documentation

◆ gpio_init()

void gpio_init ( void  )

Definition at line 165 of file gpio.c.

References BIOS_DEBUG, gpio_get_baseaddr(), gpio_pin_count(), and printk.

Here is the call graph for this function:

◆ gpio_invert()

void gpio_invert ( gpio_t  gpio,
int  value 
)

Definition at line 119 of file gpio.c.

References BIOS_SPEW, gpio_get_baseaddr(), gpio_pin_count(), printk, read64(), bit_cfg::s, bit_cfg::u, value, write64(), and bit_cfg::xor.

Here is the call graph for this function:

◆ gpio_pin_count()

gpio_t gpio_pin_count ( void  )

Definition at line 53 of file gpio.c.

References gpio_get_baseaddr(), gpio_const::gpios, read64(), gpio_const::s, and gpio_const::u.

Referenced by gpio_get(), gpio_init(), gpio_input(), gpio_invert(), gpio_output(), gpio_set(), and gpio_strap_value().

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

◆ gpio_strap_value()

int gpio_strap_value ( gpio_t  gpio)

Definition at line 150 of file gpio.c.

References BIOS_SPEW, gpio_get_baseaddr(), gpio_pin_count(), printk, and read64().

Referenced by mainboard_print_info().

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