coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c File Reference
#include <arch/io.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <southbridge/intel/i82801gx/i82801gx.h>
#include <soc/nvs.h>
#include <southbridge/intel/common/gpio.h>
#include <ec/acpi/ec.h>
#include "ec_oem.c"
Include dependency graph for smihandler.c:

Go to the source code of this file.

Macros

#define MAX_LCD_BRIGHTNESS   0xd8
 

Functions

int mainboard_io_trap_handler (int smif)
 
static void mainboard_smi_hotkey (u8 hotkey)
 
void mainboard_smi_gpi (u32 gpi_sts)
 

Macro Definition Documentation

◆ MAX_LCD_BRIGHTNESS

#define MAX_LCD_BRIGHTNESS   0xd8

Definition at line 12 of file smihandler.c.

Function Documentation

◆ mainboard_io_trap_handler()

int mainboard_io_trap_handler ( int  smif)

Definition at line 14 of file smihandler.c.

References BIOS_DEBUG, global_nvs::brtl, DEFAULT_GPIOBASE, ec_read(), ec_write(), gnvs, GP_LVL, inl(), outl(), printk, and global_nvs::smif.

Here is the call graph for this function:

◆ mainboard_smi_gpi()

void mainboard_smi_gpi ( u32  gpi_sts)

Definition at line 160 of file smihandler.c.

References BIOS_DEBUG, mainboard_smi_hotkey(), printk, recv_ec_oem_data(), and send_ec_oem_command().

Here is the call graph for this function:

◆ mainboard_smi_hotkey()

static void mainboard_smi_hotkey ( u8  hotkey)
static

Definition at line 130 of file smihandler.c.

References BIOS_DEBUG, ec_read(), ec_write(), MAX_LCD_BRIGHTNESS, and printk.

Referenced by mainboard_smi_gpi().

Here is the call graph for this function:
Here is the caller graph for this function: