![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/io.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <soc/nvs.h>
#include <southbridge/intel/common/pmutil.h>
#include <ec/acpi/ec.h>
#include "dock.h"
#include "smi.h"
Go to the source code of this file.
Macros | |
#define | GPE_EC_SCI 12 |
#define | LVTMA_BL_MOD_LEVEL 0x7af9 /* ATI Radeon backlight level */ |
Functions | |
static void | mainboard_smi_brightness_down (void) |
static void | mainboard_smi_brightness_up (void) |
int | mainboard_io_trap_handler (int smif) |
static void | mainboard_smi_handle_ec_sci (void) |
void | mainboard_smi_gpi (u32 gpi) |
int | mainboard_smi_apmc (u8 data) |
#define GPE_EC_SCI 12 |
Definition at line 14 of file smihandler.c.
#define LVTMA_BL_MOD_LEVEL 0x7af9 /* ATI Radeon backlight level */ |
Definition at line 16 of file smihandler.c.
int mainboard_io_trap_handler | ( | int | smif | ) |
Definition at line 48 of file smihandler.c.
References dock_connect(), dock_disconnect(), ec_write(), legacy_io_present(), mainboard_smi_brightness_down(), mainboard_smi_brightness_up(), SMI_BRIGHTNESS_DOWN, SMI_BRIGHTNESS_UP, SMI_DOCK_CONNECT, and SMI_DOCK_DISCONNECT.
int mainboard_smi_apmc | ( | u8 | data | ) |
Definition at line 136 of file smihandler.c.
References APM_CNT_ACPI_DISABLE, APM_CNT_ACPI_ENABLE, ec_set_ports(), GPE_EC_SCI, GPI_IS_SCI, GPI_IS_SMI, and gpi_route_interrupt().
Definition at line 18 of file smihandler.c.
References BIOS_DEBUG, LVTMA_BL_MOD_LEVEL, PCI_BASE_ADDRESS_2, PCI_DEV, pci_read_config32(), printk, and smm_points_to_smram().
Referenced by mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 33 of file smihandler.c.
References BIOS_DEBUG, LVTMA_BL_MOD_LEVEL, PCI_BASE_ADDRESS_2, PCI_DEV, pci_read_config32(), printk, and smm_points_to_smram().
Referenced by mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 130 of file smihandler.c.
References GPE_EC_SCI, and mainboard_smi_handle_ec_sci().
Definition at line 93 of file smihandler.c.
References BIOS_DEBUG, ec_query(), EC_SC, EC_SCI_EVT, inb(), mainboard_io_trap_handler(), mainboard_smi_brightness_down(), mainboard_smi_brightness_up(), printk, SMI_DOCK_CONNECT, and SMI_DOCK_DISCONNECT.
Referenced by mainboard_smi_gpi().