Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2000 |
| 4 | * Murray Jensen <Murray.Jensen@csiro.au> |
wdenk | 6dd652f | 2003-06-19 23:40:20 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
wdenk | 3ba6865 | 2000-10-11 22:04:29 +0000 | [diff] [blame] | 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); |