coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EC_SCI_GPI   7 /* GPIO7 is EC_SCI# */
 
#define EC_SMI_GPI   8 /* GPIO8 is EC_SMI# */
 
#define EC_LID_GPI   15 /* GPIO15 is EC_LID_OUT# */
 
#define EC_NO_EVENT   0x80
 
#define EC_LID_CLOSE   0xA6
 
#define EC_BATTERY_CRITICAL   0xB2
 

Functions

void parrot_ec_init (void)
 
u8 parrot_rev (void)
 

Macro Definition Documentation

◆ EC_BATTERY_CRITICAL

#define EC_BATTERY_CRITICAL   0xB2

Definition at line 28 of file ec.h.

◆ EC_LID_CLOSE

#define EC_LID_CLOSE   0xA6

Definition at line 21 of file ec.h.

◆ EC_LID_GPI

#define EC_LID_GPI   15 /* GPIO15 is EC_LID_OUT# */

Definition at line 8 of file ec.h.

◆ EC_NO_EVENT

#define EC_NO_EVENT   0x80

Definition at line 13 of file ec.h.

◆ EC_SCI_GPI

#define EC_SCI_GPI   7 /* GPIO7 is EC_SCI# */

Definition at line 6 of file ec.h.

◆ EC_SMI_GPI

#define EC_SMI_GPI   8 /* GPIO8 is EC_SMI# */

Definition at line 7 of file ec.h.

Function Documentation

◆ parrot_ec_init()

void parrot_ec_init ( void  )

Definition at line 9 of file ec.c.

References BIOS_DEBUG, ec_kbc_read_ob(), ec_kbc_write_cmd(), ec_kbc_write_ib(), kbc_cleanup_buffers(), parrot_rev(), and printk.

Referenced by mainboard_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parrot_rev()

u8 parrot_rev ( void  )

Definition at line 55 of file ec.c.

References ec_kbc_read_ob(), ec_kbc_write_cmd(), and ec_kbc_write_ib().

Referenced by mainboard_fill_gnvs(), parrot_ec_init(), and parrot_onboard_smbios_data().

Here is the call graph for this function:
Here is the caller graph for this function: