![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | SYSTEM76_EC_BASE 0x0E00 |
#define | SYSTEM76_EC_SIZE 256 |
#define | REG_CMD 0 |
#define | REG_RESULT 1 |
#define | CMD_FINISHED 0 |
#define | CMD_PRINT 4 |
#define | CMD_PRINT_REG_FLAGS 2 |
#define | CMD_PRINT_REG_LEN 3 |
#define | CMD_PRINT_REG_DATA 4 |
Functions | |
static uint8_t | system76_ec_read (uint8_t addr) |
static void | system76_ec_write (uint8_t addr, uint8_t data) |
void | system76_ec_init (void) |
void | system76_ec_flush (void) |
void | system76_ec_print (uint8_t byte) |
#define CMD_FINISHED 0 |
Definition at line 16 of file system76_ec.c.
#define CMD_PRINT 4 |
Definition at line 19 of file system76_ec.c.
#define CMD_PRINT_REG_DATA 4 |
Definition at line 22 of file system76_ec.c.
#define CMD_PRINT_REG_FLAGS 2 |
Definition at line 20 of file system76_ec.c.
#define CMD_PRINT_REG_LEN 3 |
Definition at line 21 of file system76_ec.c.
#define REG_CMD 0 |
Definition at line 12 of file system76_ec.c.
#define REG_RESULT 1 |
Definition at line 13 of file system76_ec.c.
#define SYSTEM76_EC_BASE 0x0E00 |
Definition at line 9 of file system76_ec.c.
#define SYSTEM76_EC_SIZE 256 |
Definition at line 10 of file system76_ec.c.
Definition at line 41 of file system76_ec.c.
References CMD_FINISHED, CMD_PRINT, CMD_PRINT_REG_LEN, REG_CMD, system76_ec_read(), system76_ec_write(), and wait_us.
Referenced by system76_ec_print().
Definition at line 34 of file system76_ec.c.
References SYSTEM76_EC_SIZE, and system76_ec_write().
Definition at line 52 of file system76_ec.c.
References CMD_PRINT_REG_DATA, CMD_PRINT_REG_LEN, system76_ec_flush(), system76_ec_read(), SYSTEM76_EC_SIZE, and system76_ec_write().
Definition at line 24 of file system76_ec.c.
References addr, inb(), and SYSTEM76_EC_BASE.
Referenced by system76_ec_flush(), and system76_ec_print().
Definition at line 29 of file system76_ec.c.
References addr, outb(), and SYSTEM76_EC_BASE.
Referenced by system76_ec_flush(), system76_ec_init(), and system76_ec_print().