![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
GPIO configuration structure used for pin programming. More...
#include <gpio_dnv.h>
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... | |
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.
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().
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().
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().
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().
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.
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().
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().
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().
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().
uint32_t GPIO_CONFIG::RsvdBits |
Reserved bits for future extension.
Definition at line 135 of file gpio_dnv.h.