coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <cpu/x86/smm.h>
4 #include <soc/nvs.h>
6 
7 #define GPE_EC_SCI 12
8 
10 {
11  switch (data) {
13  /* route H8SCI to SCI */
15  break;
17  /* route H8SCI# to SMI */
19  break;
20  default:
21  break;
22  }
23  return 0;
24 }
int __weak mainboard_smi_apmc(u8 data)
Definition: smihandler.c:209
#define APM_CNT_ACPI_DISABLE
Definition: smm.h:21
#define APM_CNT_ACPI_ENABLE
Definition: smm.h:22
#define GPE_EC_SCI
Definition: smihandler.c:7
#define GPI_IS_SMI
Definition: smihandler.c:34
#define GPI_IS_SCI
Definition: smihandler.c:35
void gpi_route_interrupt(u8 gpi, u8 mode)
Definition: smihandler.c:25
uint8_t u8
Definition: stdint.h:45