xref: /haiku/src/system/boot/platform/u-boot/serial.h (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
1 /*
2  * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef SERIAL_H
6 #define SERIAL_H
7 
8 
9 #include <SupportDefs.h>
10 
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 extern void serial_init(const void *fdt);
17 extern void serial_cleanup(void);
18 
19 extern void serial_puts(const char *string, size_t size);
20 extern int serial_getc(bool wait);
21 
22 extern void serial_disable(void);
23 extern void serial_enable(void);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif	/* SERIAL_H */
30