18 #define D_OPEN (1 << 6)
19 #define D_CLS (1 << 5)
20 #define D_LCK (1 << 4)
21 #define G_SMRAME (1 << 3)
22 #define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0))
74 if (
CONFIG(DEBUG_PERIODIC_SMI))
static int acpi_is_wakeup_s3(void)
void * memcpy(void *dest, const void *src, size_t n)
void restore_default_smm_area(void *smm_save_area)
void * backup_default_smm_area(void)
#define printk(level,...)
void outl(u32 val, u16 port)
void outw(u16 val, u16 port)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
unsigned char _binary_smm_start[]
unsigned char _binary_smm_end[]
static __always_inline u16 pci_read_config16(const struct device *dev, u16 reg)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_SPEW
BIOS_SPEW - Excessively verbose output.
static u16 reset_alt_gp_smi_status(void)
read and clear ALT_GP_SMI_STS
static void dump_gpe0_status(u32 gpe0_sts)
uint8_t smm_relocation_end
static u16 reset_pm1_status(void)
read and clear PM1_STS
static u32 reset_smi_status(void)
read and clear SMI_STS
static void dump_alt_gp_smi_status(u16 alt_gp_smi_sts)
static void dump_tco_status(u32 tco_sts)
static u32 reset_tco_status(void)
read and clear TCOx_STS
static void smi_set_eos(void)
Set the EOS bit.
static u32 reset_gpe0_status(void)
read and clear GPE0_STS
static void dump_smi_status(u32 smi_sts)
void smm_init_completion(void)
static void dump_pm1_status(u16 pm1_sts)
uint8_t smm_relocation_start
static void * default_smm_area
static int smm_handler_copied
static void aseg_smm_relocate(void)
static void aseg_smm_install(void)