coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
flash.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef CONSOLE_FLASH_H
4 #define CONSOLE_FLASH_H 1
5 
6 #include <stdint.h>
7 
8 void flashconsole_init(void);
9 void flashconsole_tx_byte(unsigned char c);
10 void flashconsole_tx_flush(void);
11 
12 #define __CONSOLE_FLASH_ENABLE__ CONFIG(CONSOLE_SPI_FLASH)
13 
14 #if __CONSOLE_FLASH_ENABLE__
15 static inline void __flashconsole_init(void) { flashconsole_init(); }
16 static inline void __flashconsole_tx_byte(u8 data)
17 {
19 }
20 static inline void __flashconsole_tx_flush(void)
21 {
23 }
24 #else
25 static inline void __flashconsole_init(void) {}
26 static inline void __flashconsole_tx_byte(u8 data) {}
27 static inline void __flashconsole_tx_flush(void) {}
28 #endif /* __CONSOLE_FLASH_ENABLE__ */
29 
30 #endif /* CONSOLE_FLASH_H */
static void __flashconsole_tx_flush(void)
Definition: flash.h:27
void flashconsole_init(void)
Definition: flashconsole.c:19
static void __flashconsole_init(void)
Definition: flash.h:25
void flashconsole_tx_byte(unsigned char c)
Definition: flashconsole.c:70
void flashconsole_tx_flush(void)
Definition: flashconsole.c:86
static void __flashconsole_tx_byte(u8 data)
Definition: flash.h:26
uint8_t u8
Definition: stdint.h:45
#define c(value, pmcreg, dst_bits)