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

Go to the source code of this file.

Functions

void block_gpio_enable (struct device *dev)
 

Variables

static struct gpio_operations gpio_ops
 
static struct device_operations block_gpio_ops
 

Function Documentation

◆ block_gpio_enable()

void block_gpio_enable ( struct device dev)

Definition at line 24 of file gpio_dev.c.

References assert, block_gpio_ops, DEVICE_PATH_GPIO, device::ops, device::path, and device_path::type.

Referenced by chip_enable_dev(), enable_dev(), soc_enable(), and soc_enable_dev().

Here is the caller graph for this function:

Variable Documentation

◆ block_gpio_ops

struct device_operations block_gpio_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.ops_gpio = &gpio_ops,
}
static struct gpio_operations gpio_ops
Definition: gpio_dev.c:9
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74

Definition at line 1 of file gpio_dev.c.

Referenced by block_gpio_enable().

◆ gpio_ops

struct gpio_operations gpio_ops
static
Initial value:
= {
.get = gpio_get,
.set = gpio_set,
.input_pulldown = gpio_input_pulldown,
.input_pullup = gpio_input_pullup,
.input = gpio_input,
.output = gpio_output,
}
int gpio_get(gpio_t gpio)
Definition: gpio.c:166
void gpio_input(gpio_t gpio)
Definition: gpio.c:189
void gpio_output(gpio_t gpio, int value)
Definition: gpio.c:194
void gpio_input_pulldown(gpio_t gpio)
Definition: gpio.c:179
void gpio_set(gpio_t gpio, int value)
Definition: gpio.c:174
void gpio_input_pullup(gpio_t gpio)
Definition: gpio.c:184

Definition at line 1 of file gpio_dev.c.

Referenced by bmc_set_post_complete_gpio_callback(), and ipmi_kcs_init().