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

Go to the source code of this file.

Enumerations

enum  { MAX_GPIO_NUMBER = 134 }
 

Functions

static void pos_bit_calc (gpio_t gpio, u32 *pos, u32 *bit)
 
void gpio_set_pull (gpio_t gpio, enum pull_enable enable, enum pull_select select)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_GPIO_NUMBER 

Definition at line 7 of file gpio.c.

Function Documentation

◆ gpio_set_pull()

void gpio_set_pull ( gpio_t  gpio,
enum pull_enable  enable,
enum pull_select  select 
)

Definition at line 17 of file gpio.c.

Referenced by gpio_input(), gpio_input_irq(), gpio_input_pulldown(), gpio_input_pullup(), gpio_output(), and gpio_read_mvl3().

Here is the caller graph for this function:

◆ pos_bit_calc()

static void pos_bit_calc ( gpio_t  gpio,
u32 pos,
u32 bit 
)
static

Definition at line 11 of file gpio.c.

References MAX_GPIO_REG_BITS.

Referenced by gpio_set_pull().

Here is the caller graph for this function: