2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 #ifndef _CONSOLE_CBMEM_CONSOLE_H_
16 #define _CONSOLE_CBMEM_CONSOLE_H_
21 void cbmemc_init(void);
22 void cbmemc_tx_byte(unsigned char data
);
24 #define __CBMEM_CONSOLE_ENABLE__ CONFIG_CONSOLE_CBMEM && \
25 (ENV_RAMSTAGE || ENV_VERSTAGE || \
26 (IS_ENABLED(CONFIG_EARLY_CBMEM_INIT) && \
27 (ENV_ROMSTAGE || (ENV_BOOTBLOCK && CONFIG_BOOTBLOCK_CONSOLE)))\
30 #if __CBMEM_CONSOLE_ENABLE__
31 static inline void __cbmemc_init(void) { cbmemc_init(); }
32 static inline void __cbmemc_tx_byte(u8 data
) { cbmemc_tx_byte(data
); }
34 static inline void __cbmemc_init(void) {}
35 static inline void __cbmemc_tx_byte(u8 data
) {}
38 void cbmem_dump_console(void);