coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_bank Struct Reference

#include <gpio.h>

Collaboration diagram for gpio_bank:
Collaboration graph

Data Fields

const int gpio_count
 
const u8gpio_to_pad
 
const int legacy_base
 
const unsigned long pad_base
 
const u8 has_wake_en:1
 
const u8 gpio_f1_range_start
 
const u8 gpio_f1_range_end
 
const u8 has_gpe_en:1
 
u32 config [GPIO_PORTS_PER_BANK]
 
u32 out_enable [GPIO_PORTS_PER_BANK]
 
u32 out_value [GPIO_PORTS_PER_BANK]
 
u32 in_value [GPIO_PORTS_PER_BANK]
 
u32 int_status [GPIO_PORTS_PER_BANK]
 
u32 int_enable [GPIO_PORTS_PER_BANK]
 
u32 int_level [GPIO_PORTS_PER_BANK]
 
u32 int_clear [GPIO_PORTS_PER_BANK]
 
u32 config_mask [GPIO_PORTS_PER_BANK]
 
u32 out_enable_mask [GPIO_PORTS_PER_BANK]
 
u32 out_value_mask [GPIO_PORTS_PER_BANK]
 
u32 in_value_mask [GPIO_PORTS_PER_BANK]
 
u32 int_status_mask [GPIO_PORTS_PER_BANK]
 
u32 int_enable_mask [GPIO_PORTS_PER_BANK]
 
u32 int_level_mask [GPIO_PORTS_PER_BANK]
 
u32 int_clear_mask [GPIO_PORTS_PER_BANK]
 
unsigned int con
 
unsigned int dat
 
unsigned int pull
 
unsigned int drv
 
unsigned int pdn_con
 
unsigned int pdn_pull
 
unsigned char res1 [8]
 

Detailed Description

Definition at line 353 of file gpio.h.

Field Documentation

◆ con

unsigned int gpio_bank::con

Definition at line 11 of file gpio.h.

Referenced by gpio_cfg_pin(), and gpio_get_cfg().

◆ config

u32 gpio_bank::config[GPIO_PORTS_PER_BANK]

Definition at line 74 of file gpio.h.

◆ config_mask

u32 gpio_bank::config_mask[GPIO_PORTS_PER_BANK]

Definition at line 84 of file gpio.h.

◆ dat

unsigned int gpio_bank::dat

Definition at line 12 of file gpio.h.

Referenced by gpio_direction_output(), gpio_get_value(), and gpio_set_value().

◆ drv

unsigned int gpio_bank::drv

Definition at line 14 of file gpio.h.

Referenced by gpio_set_drv(), and gpio_set_rate().

◆ gpio_count

const int gpio_bank::gpio_count

Definition at line 354 of file gpio.h.

Referenced by setup_gpios().

◆ gpio_f1_range_end

const u8 gpio_bank::gpio_f1_range_end

Definition at line 360 of file gpio.h.

◆ gpio_f1_range_start

const u8 gpio_bank::gpio_f1_range_start

Definition at line 359 of file gpio.h.

Referenced by setup_gpios().

◆ gpio_to_pad

const u8 * gpio_bank::gpio_to_pad

Definition at line 355 of file gpio.h.

Referenced by setup_gpios().

◆ has_gpe_en

const u8 gpio_bank::has_gpe_en

Definition at line 367 of file gpio.h.

◆ has_wake_en

const u8 gpio_bank::has_wake_en

Definition at line 358 of file gpio.h.

Referenced by setup_gpios().

◆ in_value

u32 gpio_bank::in_value[GPIO_PORTS_PER_BANK]

Definition at line 77 of file gpio.h.

Referenced by gpio_get().

◆ in_value_mask

u32 gpio_bank::in_value_mask[GPIO_PORTS_PER_BANK]

Definition at line 87 of file gpio.h.

◆ int_clear

u32 gpio_bank::int_clear[GPIO_PORTS_PER_BANK]

Definition at line 81 of file gpio.h.

Referenced by gpio_set_int_clear().

◆ int_clear_mask

u32 gpio_bank::int_clear_mask[GPIO_PORTS_PER_BANK]

Definition at line 91 of file gpio.h.

◆ int_enable

u32 gpio_bank::int_enable[GPIO_PORTS_PER_BANK]

Definition at line 79 of file gpio.h.

Referenced by gpio_get_int_enable(), and gpio_set_int_enable().

◆ int_enable_mask

u32 gpio_bank::int_enable_mask[GPIO_PORTS_PER_BANK]

Definition at line 89 of file gpio.h.

◆ int_level

u32 gpio_bank::int_level[GPIO_PORTS_PER_BANK]

Definition at line 80 of file gpio.h.

Referenced by gpio_get_int_level().

◆ int_level_mask

u32 gpio_bank::int_level_mask[GPIO_PORTS_PER_BANK]

Definition at line 90 of file gpio.h.

◆ int_status

u32 gpio_bank::int_status[GPIO_PORTS_PER_BANK]

Definition at line 78 of file gpio.h.

Referenced by gpio_get_int_status().

◆ int_status_mask

u32 gpio_bank::int_status_mask[GPIO_PORTS_PER_BANK]

Definition at line 88 of file gpio.h.

◆ legacy_base

const int gpio_bank::legacy_base

Definition at line 356 of file gpio.h.

Referenced by setup_gpios().

◆ out_enable

u32 gpio_bank::out_enable[GPIO_PORTS_PER_BANK]

Definition at line 75 of file gpio.h.

Referenced by gpio_get_out_enable(), and gpio_set_out_enable().

◆ out_enable_mask

u32 gpio_bank::out_enable_mask[GPIO_PORTS_PER_BANK]

Definition at line 85 of file gpio.h.

◆ out_value

u32 gpio_bank::out_value[GPIO_PORTS_PER_BANK]

Definition at line 76 of file gpio.h.

Referenced by gpio_get_out_value(), and gpio_set().

◆ out_value_mask

u32 gpio_bank::out_value_mask[GPIO_PORTS_PER_BANK]

Definition at line 86 of file gpio.h.

◆ pad_base

const unsigned long gpio_bank::pad_base

Definition at line 357 of file gpio.h.

Referenced by setup_dirqs(), and setup_gpios().

◆ pdn_con

unsigned int gpio_bank::pdn_con

Definition at line 15 of file gpio.h.

◆ pdn_pull

unsigned int gpio_bank::pdn_pull

Definition at line 16 of file gpio.h.

◆ pull

unsigned int gpio_bank::pull

Definition at line 13 of file gpio.h.

Referenced by gpio_set_pull().

◆ res1

unsigned char gpio_bank::res1

Definition at line 17 of file gpio.h.


The documentation for this struct was generated from the following file: