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>
5
#include <
southbridge/intel/common/pmutil.h
>
6
7
#define GPE_EC_SCI 12
8
9
int
mainboard_smi_apmc
(
u8
data)
10
{
11
switch
(data) {
12
case
APM_CNT_ACPI_ENABLE
:
13
/* route H8SCI to SCI */
14
gpi_route_interrupt
(
GPE_EC_SCI
,
GPI_IS_SCI
);
15
break
;
16
case
APM_CNT_ACPI_DISABLE
:
17
/* route H8SCI# to SMI */
18
gpi_route_interrupt
(
GPE_EC_SCI
,
GPI_IS_SMI
);
19
break
;
20
default
:
21
break
;
22
}
23
return
0;
24
}
mainboard_smi_apmc
int __weak mainboard_smi_apmc(u8 data)
Definition:
smihandler.c:209
smm.h
APM_CNT_ACPI_DISABLE
#define APM_CNT_ACPI_DISABLE
Definition:
smm.h:21
APM_CNT_ACPI_ENABLE
#define APM_CNT_ACPI_ENABLE
Definition:
smm.h:22
GPE_EC_SCI
#define GPE_EC_SCI
Definition:
smihandler.c:7
GPI_IS_SMI
#define GPI_IS_SMI
Definition:
smihandler.c:34
GPI_IS_SCI
#define GPI_IS_SCI
Definition:
smihandler.c:35
pmutil.h
gpi_route_interrupt
void gpi_route_interrupt(u8 gpi, u8 mode)
Definition:
smihandler.c:25
u8
uint8_t u8
Definition:
stdint.h:45
src
mainboard
apple
macbook21
smihandler.c
Generated by
1.9.1