xref: /optee_os/core/include/console.h (revision 817466cb476de705a8e3dabe1ef165fe27a18c2f)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, Linaro Limited
4  */
5 
6 #ifndef CONSOLE_H
7 #define CONSOLE_H
8 
9 #include <compiler.h>
10 
11 void console_init(void);
12 void console_putc(int ch);
13 void console_flush(void);
14 
15 struct serial_chip;
16 void register_serial_console(struct serial_chip *chip);
17 
18 #ifdef CFG_DT
19 void configure_console_from_dt(void);
20 #else
21 static inline void configure_console_from_dt(void)
22 {}
23 #endif /* !CFG_DT */
24 
25 #endif /* CONSOLE_H */
26 
27