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

GPIO configuration structure used for pin programming. More...

#include <gpio_dnv.h>

Collaboration diagram for GPIO_CONFIG:
Collaboration graph

Data Fields

uint32_t PadMode: 4
 Pad Mode Pad can be set as GPIO or one of its native functions. More...
 
uint32_t HostSoftPadOwn: 2
 Host Software Pad Ownership Set pad to ACPI mode or GPIO Driver Mode. More...
 
uint32_t Direction: 5
 GPIO Direction Can choose between In, In with inversion Out, both In and Out, both In with inversion and out or disabling both. More...
 
uint32_t OutputState: 2
 Output State Set Pad output value. More...
 
uint32_t InterruptConfig: 8
 GPIO Interrupt Configuration Set Pad to cause one of interrupts (IOxAPIC/SCI/SMI/NMI). More...
 
uint32_t PowerConfig: 4
 GPIO Power Configuration. More...
 
uint32_t ElectricalConfig: 7
 GPIO Electrical Configuration This setting controls pads termination and voltage tolerance. More...
 
uint32_t LockConfig: 3
 GPIO Lock Configuration This setting controls pads lock. More...
 
uint32_t OtherSettings: 2
 Additional GPIO configuration Refer to definition of GPIO_OTHER_CONFIG for supported settings. More...
 
uint32_t RsvdBits: 27
 Reserved bits for future extension. More...
 

Detailed Description

GPIO configuration structure used for pin programming.

Structure contains fields that can be used to configure pad.

Definition at line 72 of file gpio_dnv.h.

Field Documentation

◆ Direction

uint32_t GPIO_CONFIG::Direction

GPIO Direction Can choose between In, In with inversion Out, both In and Out, both In with inversion and out or disabling both.

Refer to definition of GPIO_DIRECTION for supported settings.

Definition at line 94 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ ElectricalConfig

uint32_t GPIO_CONFIG::ElectricalConfig

GPIO Electrical Configuration This setting controls pads termination and voltage tolerance.

Refer to definition of GPIO_ELECTRICAL_CONFIG for supported settings.

Definition at line 122 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ HostSoftPadOwn

uint32_t GPIO_CONFIG::HostSoftPadOwn

Host Software Pad Ownership Set pad to ACPI mode or GPIO Driver Mode.

Refer to definition of GPIO_HOSTSW_OWN.

Definition at line 87 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ InterruptConfig

uint32_t GPIO_CONFIG::InterruptConfig

GPIO Interrupt Configuration Set Pad to cause one of interrupts (IOxAPIC/SCI/SMI/NMI).

This setting is applicable only if GPIO is in input mode. If GPIO is set to cause an SCI then also Gpe is enabled for this pad. Refer to definition of GPIO_INT_CONFIG for supported settings.

Definition at line 109 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ LockConfig

uint32_t GPIO_CONFIG::LockConfig

GPIO Lock Configuration This setting controls pads lock.

Refer to definition of GPIO_LOCK_CONFIG for supported settings.

Definition at line 129 of file gpio_dnv.h.

◆ OtherSettings

uint32_t GPIO_CONFIG::OtherSettings

Additional GPIO configuration Refer to definition of GPIO_OTHER_CONFIG for supported settings.

Definition at line 134 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ OutputState

uint32_t GPIO_CONFIG::OutputState

Output State Set Pad output value.

Refer to definition of GPIO_OUTPUT_STATE for supported settings. This setting takes place when output is enabled.

Definition at line 101 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ PadMode

uint32_t GPIO_CONFIG::PadMode

Pad Mode Pad can be set as GPIO or one of its native functions.

When in native mode setting Direction (except Inversion), OutputState, InterruptConfig and Host Software Pad Ownership are unnecessary. Refer to definition of GPIO_PAD_MODE. Refer to EDS for each native mode according to the pad.

Definition at line 81 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ PowerConfig

uint32_t GPIO_CONFIG::PowerConfig

GPIO Power Configuration.

This setting controls Pad Reset Configuration. Refer to definition of GPIO_RESET_CONFIG for supported settings.

Definition at line 115 of file gpio_dnv.h.

Referenced by gpio_configure_dnv_pads().

◆ RsvdBits

uint32_t GPIO_CONFIG::RsvdBits

Reserved bits for future extension.

Definition at line 135 of file gpio_dnv.h.


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