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
{
18
flashconsole_tx_byte
(data);
19
}
20
static
inline
void
__flashconsole_tx_flush
(
void
)
21
{
22
flashconsole_tx_flush
();
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 */
__flashconsole_tx_flush
static void __flashconsole_tx_flush(void)
Definition:
flash.h:27
flashconsole_init
void flashconsole_init(void)
Definition:
flashconsole.c:19
__flashconsole_init
static void __flashconsole_init(void)
Definition:
flash.h:25
flashconsole_tx_byte
void flashconsole_tx_byte(unsigned char c)
Definition:
flashconsole.c:70
flashconsole_tx_flush
void flashconsole_tx_flush(void)
Definition:
flashconsole.c:86
__flashconsole_tx_byte
static void __flashconsole_tx_byte(u8 data)
Definition:
flash.h:26
stdint.h
u8
uint8_t u8
Definition:
stdint.h:45
c
#define c(value, pmcreg, dst_bits)
src
include
console
flash.h
Generated by
1.9.1