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 <
acpi/acpi.h
>
4
#include <
cpu/intel/haswell/haswell.h
>
5
#include <
cpu/x86/smm.h
>
6
#include <
northbridge/intel/haswell/haswell.h
>
7
#include <
southbridge/intel/lynxpoint/me.h
>
8
#include <soc/nvs.h>
9
#include <
southbridge/intel/lynxpoint/pch.h
>
10
#include <
superio/ite/it8772f/it8772f.h
>
11
12
#include "
onboard.h
"
13
14
void
mainboard_smi_sleep
(
u8
slp_typ)
15
{
16
switch
(slp_typ) {
17
case
ACPI_S3
:
18
set_power_led
(
LED_BLINK
);
19
break
;
20
case
ACPI_S4
:
21
case
ACPI_S5
:
22
set_power_led
(
LED_OFF
);
23
break
;
24
default
:
25
break
;
26
}
27
return
;
28
}
haswell.h
mainboard_smi_sleep
void __weak mainboard_smi_sleep(u8 slp_typ)
Definition:
smihandler.c:210
LED_BLINK
@ LED_BLINK
Definition:
onboard.h:39
LED_OFF
@ LED_OFF
Definition:
onboard.h:37
set_power_led
void set_power_led(int state)
Definition:
led.c:6
acpi.h
ACPI_S5
@ ACPI_S5
Definition:
acpi.h:1385
ACPI_S4
@ ACPI_S4
Definition:
acpi.h:1384
ACPI_S3
@ ACPI_S3
Definition:
acpi.h:1383
smm.h
it8772f.h
haswell.h
onboard.h
me.h
pch.h
u8
uint8_t u8
Definition:
stdint.h:45
src
mainboard
google
beltino
smihandler.c
Generated by
1.9.1