coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
system76_ec.h
Go to the documentation of this file.
1 #ifndef CONSOLE_SYSTEM76_EC_H
2 #define CONSOLE_SYSTEM76_EC_H 1
3 
4 #include <stddef.h>
5 #include <stdint.h>
6 
7 void system76_ec_init(void);
8 void system76_ec_flush(void);
9 void system76_ec_print(uint8_t byte);
10 
11 #define __CONSOLE_SYSTEM76_EC_ENABLE__ (CONFIG(CONSOLE_SYSTEM76_EC) && \
12  (ENV_BOOTBLOCK || ENV_ROMSTAGE || ENV_RAMSTAGE \
13  || ENV_SEPARATE_VERSTAGE || ENV_POSTCAR \
14  || (ENV_SMM && CONFIG(DEBUG_SMI))))
15 
16 #if __CONSOLE_SYSTEM76_EC_ENABLE__
17 static inline void __system76_ec_init(void)
18 {
20 }
21 static inline void __system76_ec_tx_flush(void)
22 {
24 }
25 static inline void __system76_ec_tx_byte(unsigned char byte)
26 {
27  system76_ec_print(byte);
28 }
29 #else
30 static inline void __system76_ec_init(void) {}
31 static inline void __system76_ec_tx_flush(void) {}
32 static inline void __system76_ec_tx_byte(unsigned char byte) {}
33 #endif
34 
35 #endif
unsigned char uint8_t
Definition: stdint.h:8
static void __system76_ec_init(void)
Definition: system76_ec.h:30
void system76_ec_print(uint8_t byte)
Definition: system76_ec.c:52
static void __system76_ec_tx_flush(void)
Definition: system76_ec.h:31
static void __system76_ec_tx_byte(unsigned char byte)
Definition: system76_ec.h:32
void system76_ec_init(void)
Definition: system76_ec.c:34
void system76_ec_flush(void)
Definition: system76_ec.c:41