2
* BRLTTY - A background process providing access to the console screen (when in
3
* text mode) for a blind person using a refreshable braille display.
5
* Copyright (C) 1995-2012 by The BRLTTY Developers.
7
* BRLTTY comes with ABSOLUTELY NO WARRANTY.
9
* This is free software, placed under the terms of the
10
* GNU General Public License, as published by the Free Software
11
* Foundation; either version 2 of the License, or (at your option) any
12
* later version. Please see the file LICENSE-GPL for details.
14
* Web Page: http://mielke.cc/brltty/
16
* This software is maintained by Dave Mielke <dave@mielke.cc>.
19
#ifndef BRLTTY_INCLUDED_SERIAL_TERMIOS
20
#define BRLTTY_INCLUDED_SERIAL_TERMIOS
23
#include <sys/ioctl.h>
25
#ifdef HAVE_SYS_MODEM_H
26
#include <sys/modem.h>
27
#endif /* HAVE_SYS_MODEM_H */
31
#endif /* __cplusplus */
33
typedef speed_t SerialSpeed;
34
typedef struct termios SerialAttributes;
36
typedef int SerialLines;
37
#define SERIAL_LINE_RTS TIOCM_RTS
38
#define SERIAL_LINE_DTR TIOCM_DTR
39
#define SERIAL_LINE_CTS TIOCM_CTS
40
#define SERIAL_LINE_DSR TIOCM_DSR
41
#define SERIAL_LINE_RNG TIOCM_RNG
42
#define SERIAL_LINE_CAR TIOCM_CAR
46
} SerialPackageFields;
50
#endif /* __cplusplus */
52
#endif /* BRLTTY_INCLUDED_SERIAL_TERMIOS */