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