xref: /openbmc/u-boot/tools/gdb/serial.h (revision dd1033e4)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2000
4  * Murray Jensen <Murray.Jensen@csiro.au>
5  */
6 
7 #include <termios.h>
8 
9 #define SERIAL_ERROR	-1	/* General error, see errno for details */
10 #define SERIAL_TIMEOUT	-2
11 #define SERIAL_EOF	-3
12 
13 extern speed_t cvtspeed(char *);
14 extern int serialopen(char *, speed_t);
15 extern int serialreadchar(int, int);
16 extern int serialwrite(int, char *, int);
17 extern int serialclose(int);
18