xref: /haiku/src/system/boot/platform/u-boot/serial.h (revision 0c65f35f47abb22783d093bf0ac1453b96689a9e)
120cbef82SFrançois Revol /*
220cbef82SFrançois Revol  * Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
320cbef82SFrançois Revol  * Distributed under the terms of the MIT License.
420cbef82SFrançois Revol  */
520cbef82SFrançois Revol #ifndef SERIAL_H
620cbef82SFrançois Revol #define SERIAL_H
720cbef82SFrançois Revol 
820cbef82SFrançois Revol 
920cbef82SFrançois Revol #include <SupportDefs.h>
1020cbef82SFrançois Revol 
1120cbef82SFrançois Revol 
1220cbef82SFrançois Revol #ifdef __cplusplus
1320cbef82SFrançois Revol extern "C" {
1420cbef82SFrançois Revol #endif
1520cbef82SFrançois Revol 
1674eeabe4SFrançois Revol extern void serial_init(const void *fdt);
1720cbef82SFrançois Revol extern void serial_cleanup(void);
1820cbef82SFrançois Revol 
1920cbef82SFrançois Revol extern void serial_puts(const char *string, size_t size);
20*0c65f35fSPulkoMandy extern int serial_getc(bool wait);
2120cbef82SFrançois Revol 
2220cbef82SFrançois Revol extern void serial_disable(void);
2320cbef82SFrançois Revol extern void serial_enable(void);
2420cbef82SFrançois Revol 
2520cbef82SFrançois Revol #ifdef __cplusplus
2620cbef82SFrançois Revol }
2720cbef82SFrançois Revol #endif
2820cbef82SFrançois Revol 
2920cbef82SFrançois Revol #endif	/* SERIAL_H */
30