summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/tools/gdb/serial.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/roms/u-boot/tools/gdb/serial.h')
-rw-r--r--qemu/roms/u-boot/tools/gdb/serial.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/tools/gdb/serial.h b/qemu/roms/u-boot/tools/gdb/serial.h
new file mode 100644
index 000000000..dc9d6b7e5
--- /dev/null
+++ b/qemu/roms/u-boot/tools/gdb/serial.h
@@ -0,0 +1,18 @@
+/*
+ * (C) Copyright 2000
+ * Murray Jensen <Murray.Jensen@csiro.au>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <termios.h>
+
+#define SERIAL_ERROR -1 /* General error, see errno for details */
+#define SERIAL_TIMEOUT -2
+#define SERIAL_EOF -3
+
+extern speed_t cvtspeed(char *);
+extern int serialopen(char *, speed_t);
+extern int serialreadchar(int, int);
+extern int serialwrite(int, char *, int);
+extern int serialclose(int);