coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef PARROT_EC_H
4 #define PARROT_EC_H
5 
6 #define EC_SCI_GPI 7 /* GPIO7 is EC_SCI# */
7 #define EC_SMI_GPI 8 /* GPIO8 is EC_SMI# */
8 #define EC_LID_GPI 15 /* GPIO15 is EC_LID_OUT# */
9 
10 /* EC SMI sources TODO - make defines
11  * No event 80h
12 */
13 #define EC_NO_EVENT 0x80
14 /*
15  * DTS temperature update A0h
16  * Decrease brightness event A1h
17  * Increase brightness event A2h
18  * Lid open A5h
19  * Lid closed A6h
20  */
21 #define EC_LID_CLOSE 0xA6
22  /* Bluetooth wake up event A9h
23  * Display change (LCD , CRT) ACh
24  * Cpu fast event ADh
25  * Cpu slow event ADh
26  * Battery life in critical low state (LLB) B2h
27  */
28 #define EC_BATTERY_CRITICAL 0xB2
29 /*
30  * Battery life in low power state (LB) B3h
31  * Battery Plug-In B5h
32  * Docked in request BAh
33  * Undock request BBh
34  * Power button pressed C2h
35  * AC power plug-in C7h
36  * AC power plug-out C8h
37  * Modem Ring In CAh
38  * PME signal active CEh
39  * Acer Hotkey Function - Make event D5h
40  * Acer Hotkey Function - Break event D6h
41  */
42 
43 #ifndef __ACPI__
44 extern void parrot_ec_init(void);
45 u8 parrot_rev(void);
46 #endif
47 
48 #endif // PARROT_EC_H
u8 parrot_rev(void)
Definition: ec.c:55
void parrot_ec_init(void)
Definition: ec.c:9
uint8_t u8
Definition: stdint.h:45