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_SMI_ENABLE   0x74
 
#define EC_SMI_DISABLE   0x75
 
#define EC_ACPI_ENABLE   0x76 /* Enter ACPI mode */
 
#define EC_ACPI_DISABLE   0x77 /* Exit ACPI mode */
 
#define EC_AUX_PORT_MODE   0x64 /* PS/2 control mode */
 
#define EC_AUX_PORT_MODE_ENABLE   0x00
 
#define EC_AUX_PORT_MODE_DISABLE   0x01
 
#define EC_POWER_BUTTON_MODE   0x63
 
#define EC_POWER_BUTTON_MODE_OS   0x00 /* OS control, 8 second override */
 
#define EC_POWER_BUTTON_MODE_EC   0x00 /* EC control */
 
#define EC_BACKLIGHT_OFF   0x67 /* Turn Backlight Off */
 
#define EC_BACKLIGHT_ON   0x68 /* Turn Backlight On */
 
#define EC_BATTERY_MODE   0x13
 
#define EC_BATTERY_MODE_NORMAL   0x00 /* Normal mode */
 
#define EC_BATTERY_MODE_EXTEND   0x01 /* Battery Life Cycle Extension */
 
#define EC_FAN_SPEED   0xca
 
#define EC_FAN_SPEED_LEVEL_0   0x01 /* Level 0 is fastest */
 
#define EC_FAN_SPEED_LEVEL_1   0x02 /* Level 1 is fast */
 
#define EC_FAN_SPEED_LEVEL_2   0x04 /* Level 2 is slow */
 
#define EC_FAN_SPEED_LEVEL_3   0x08 /* Level 3 is slowest */
 
#define EC_FAN_SPEED_LEVEL_4   0x10 /* Level 4 is off */
 
#define EC_FAN_SPEED_FLAG_OS   0x80 /* OS control of fan speed */
 

Functions

void lumpy_ec_init (void)
 

Macro Definition Documentation

◆ EC_ACPI_DISABLE

#define EC_ACPI_DISABLE   0x77 /* Exit ACPI mode */

Definition at line 10 of file ec.h.

◆ EC_ACPI_ENABLE

#define EC_ACPI_ENABLE   0x76 /* Enter ACPI mode */

Definition at line 9 of file ec.h.

◆ EC_AUX_PORT_MODE

#define EC_AUX_PORT_MODE   0x64 /* PS/2 control mode */

Definition at line 13 of file ec.h.

◆ EC_AUX_PORT_MODE_DISABLE

#define EC_AUX_PORT_MODE_DISABLE   0x01

Definition at line 15 of file ec.h.

◆ EC_AUX_PORT_MODE_ENABLE

#define EC_AUX_PORT_MODE_ENABLE   0x00

Definition at line 14 of file ec.h.

◆ EC_BACKLIGHT_OFF

#define EC_BACKLIGHT_OFF   0x67 /* Turn Backlight Off */

Definition at line 19 of file ec.h.

◆ EC_BACKLIGHT_ON

#define EC_BACKLIGHT_ON   0x68 /* Turn Backlight On */

Definition at line 20 of file ec.h.

◆ EC_BATTERY_MODE

#define EC_BATTERY_MODE   0x13

Definition at line 21 of file ec.h.

◆ EC_BATTERY_MODE_EXTEND

#define EC_BATTERY_MODE_EXTEND   0x01 /* Battery Life Cycle Extension */

Definition at line 23 of file ec.h.

◆ EC_BATTERY_MODE_NORMAL

#define EC_BATTERY_MODE_NORMAL   0x00 /* Normal mode */

Definition at line 22 of file ec.h.

◆ EC_FAN_SPEED

#define EC_FAN_SPEED   0xca

Definition at line 26 of file ec.h.

◆ EC_FAN_SPEED_FLAG_OS

#define EC_FAN_SPEED_FLAG_OS   0x80 /* OS control of fan speed */

Definition at line 32 of file ec.h.

◆ EC_FAN_SPEED_LEVEL_0

#define EC_FAN_SPEED_LEVEL_0   0x01 /* Level 0 is fastest */

Definition at line 27 of file ec.h.

◆ EC_FAN_SPEED_LEVEL_1

#define EC_FAN_SPEED_LEVEL_1   0x02 /* Level 1 is fast */

Definition at line 28 of file ec.h.

◆ EC_FAN_SPEED_LEVEL_2

#define EC_FAN_SPEED_LEVEL_2   0x04 /* Level 2 is slow */

Definition at line 29 of file ec.h.

◆ EC_FAN_SPEED_LEVEL_3

#define EC_FAN_SPEED_LEVEL_3   0x08 /* Level 3 is slowest */

Definition at line 30 of file ec.h.

◆ EC_FAN_SPEED_LEVEL_4

#define EC_FAN_SPEED_LEVEL_4   0x10 /* Level 4 is off */

Definition at line 31 of file ec.h.

◆ EC_POWER_BUTTON_MODE

#define EC_POWER_BUTTON_MODE   0x63

Definition at line 16 of file ec.h.

◆ EC_POWER_BUTTON_MODE_EC

#define EC_POWER_BUTTON_MODE_EC   0x00 /* EC control */

Definition at line 18 of file ec.h.

◆ EC_POWER_BUTTON_MODE_OS

#define EC_POWER_BUTTON_MODE_OS   0x00 /* OS control, 8 second override */

Definition at line 17 of file ec.h.

◆ EC_SMI_DISABLE

#define EC_SMI_DISABLE   0x75

Definition at line 8 of file ec.h.

◆ EC_SMI_ENABLE

#define EC_SMI_ENABLE   0x74

Definition at line 7 of file ec.h.

Function Documentation

◆ lumpy_ec_init()

void lumpy_ec_init ( void  )

Definition at line 8 of file ec.c.