blob: c45d1dfd1adeb53d030c8b49764a2f523335ebbb [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk6dd652f2003-06-19 23:40:20 +00002/*
3 * (C) Copyright 2000
4 * Murray Jensen <Murray.Jensen@csiro.au>
wdenk6dd652f2003-06-19 23:40:20 +00005 */
6
wdenk3ba68652000-10-11 22:04:29 +00007#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
13extern speed_t cvtspeed(char *);
14extern int serialopen(char *, speed_t);
15extern int serialreadchar(int, int);
16extern int serialwrite(int, char *, int);
17extern int serialclose(int);