coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
system76_ec.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for system76_ec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __CONSOLE_SYSTEM76_EC_ENABLE__
 

Functions

void system76_ec_init (void)
 
void system76_ec_flush (void)
 
void system76_ec_print (uint8_t byte)
 
static void __system76_ec_init (void)
 
static void __system76_ec_tx_flush (void)
 
static void __system76_ec_tx_byte (unsigned char byte)
 

Macro Definition Documentation

◆ __CONSOLE_SYSTEM76_EC_ENABLE__

#define __CONSOLE_SYSTEM76_EC_ENABLE__
Value:
(CONFIG(CONSOLE_SYSTEM76_EC) && \
@ CONFIG
Definition: dsi_common.h:201
#define ENV_BOOTBLOCK
Definition: rules.h:148
#define ENV_SMM
Definition: rules.h:151
#define ENV_RAMSTAGE
Definition: rules.h:150
#define ENV_ROMSTAGE
Definition: rules.h:149
#define ENV_SEPARATE_VERSTAGE
Definition: rules.h:152
#define ENV_POSTCAR
Definition: rules.h:154
#define DEBUG_SMI
Definition: smihandler.c:12

Definition at line 11 of file system76_ec.h.

Function Documentation

◆ __system76_ec_init()

static void __system76_ec_init ( void  )
inlinestatic

Definition at line 30 of file system76_ec.h.

Referenced by console_hw_init().

Here is the caller graph for this function:

◆ __system76_ec_tx_byte()

static void __system76_ec_tx_byte ( unsigned char  byte)
inlinestatic

Definition at line 32 of file system76_ec.h.

Referenced by console_interactive_tx_byte().

Here is the caller graph for this function:

◆ __system76_ec_tx_flush()

static void __system76_ec_tx_flush ( void  )
inlinestatic

Definition at line 31 of file system76_ec.h.

Referenced by console_tx_flush().

Here is the caller graph for this function:

◆ system76_ec_flush()

void system76_ec_flush ( void  )

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().

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

◆ system76_ec_init()

void system76_ec_init ( void  )

Definition at line 34 of file system76_ec.c.

References SYSTEM76_EC_SIZE, and system76_ec_write().

Here is the call graph for this function:

◆ system76_ec_print()

void system76_ec_print ( uint8_t  byte)

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().

Here is the call graph for this function: