![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | smi_sources_t |
struct | sci_source |
Enumerations | |
enum | smi_mode { SMI_MODE_DISABLE = 0 , SMI_MODE_SMI = 1 , SMI_MODE_NMI = 2 , SMI_MODE_IRQ13 = 3 , SMI_MODE_DISABLE = 0 , SMI_MODE_SMI = 1 , SMI_MODE_NMI = 2 , SMI_MODE_IRQ13 = 3 , SMI_MODE_DISABLE = 0 , SMI_MODE_SMI = 1 , SMI_MODE_NMI = 2 , SMI_MODE_IRQ13 = 3 } |
enum | smi_sci_type { INTERRUPT_NONE , INTERRUPT_SCI , INTERRUPT_SMI , INTERRUPT_BOTH } |
enum | smi_sci_lvl { SMI_SCI_LVL_LOW , SMI_SCI_LVL_HIGH } |
enum | smi_sci_dir { SMI_SCI_EDG , SMI_SCI_LVL } |
Functions | |
void | configure_smi (uint8_t smi_num, uint8_t mode) |
void | configure_gevent_smi (uint8_t gevent, uint8_t mode, uint8_t level) |
Configure generation of interrupts for given GEVENT pin. More... | |
void | configure_scimap (const struct sci_source *sci) |
Configure generation of SCIs. More... | |
void | disable_gevent_smi (uint8_t gevent) |
Disable events from given GEVENT pin. More... | |
void | gpe_configure_sci (const struct sci_source *scis, size_t num_gpes) |
void | clear_all_smi_status (void) |
void | clear_smi_sci_status (void) |
enum smi_mode |
enum smi_sci_dir |
enum smi_sci_lvl |
enum smi_sci_type |
Definition at line 142 of file smi_util.c.
References SMI_EVENT_STATUS, smi_read32(), SMI_REG_SMISTS0, SMI_REG_SMISTS1, SMI_REG_SMISTS2, SMI_REG_SMISTS3, SMI_REG_SMISTS4, SMI_SCI_STATUS, and smi_write32().
Referenced by fch_slp_typ_handler().
Definition at line 153 of file smi_util.c.
References smi_read32(), SMI_SCI_STATUS, and smi_write32().
Referenced by southbridge_smi_handler().
Configure generation of interrupts for given GEVENT pin.
gevent | The GEVENT pin number. Valid values are 0 thru 23 |
mode | The type of event this pin should generate. Note that only SMI_MODE_SMI generates an SMI. SMI_MODE_DISABLE disables events. |
level | SMI__SCI_LVL_LOW or SMI_SCI_LVL_HIGH |
Definition at line 40 of file smi_util.c.
References BIOS_WARNING, configure_smi(), printk, SMI_GEVENTS, smi_read32(), SMI_REG_SMITRIG0, and smi_write32().
Referenced by program_smi().
void configure_scimap | ( | const struct sci_source * | sci | ) |
Configure generation of SCIs.
Definition at line 78 of file smi_util.c.
References BIOS_DEBUG, BIOS_WARNING, sci_source::direction, sci_source::gpe, sci_source::level, printk, SCI_GPES, sci_source::scimap, SCIMAPS, smi_read32(), SMI_SCI_LEVEL, SMI_SCI_MAP, SMI_SCI_TRIG, smi_write32(), and smi_write8().
Referenced by gpe_configure_sci(), and program_sci().
Definition at line 12 of file smi_util.c.
References BIOS_WARNING, NUMBER_SMITYPES, printk, smi_read32(), SMI_REG_CONTROL0, and smi_write32().
Referenced by configure_gevent_smi(), disable_gevent_smi(), fch_init_acpi_ports(), hudson_configure_gevent_smi(), hudson_disable_gevent_smi(), and hudson_enable_acpi_cmd_smi().
Disable events from given GEVENT pin.
Definition at line 125 of file smi_util.c.
References BIOS_WARNING, configure_smi(), printk, and SMI_MODE_DISABLE.
void gpe_configure_sci | ( | const struct sci_source * | scis, |
size_t | num_gpes | ||
) |
Definition at line 116 of file smi_util.c.
References configure_scimap().
Referenced by configure_xhci_sci(), and mainboard_ec_init().