diff options
author | Kevin Kirspel <kevin-kirspel@idexx.com> | 2017-05-04 08:28:00 -0400 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-11 11:15:41 +0200 |
commit | 333bfb618bf21fc3f7cca7411acf0f42fcdc4b57 (patch) | |
tree | ed0321198cee02ab0365c28726297bab8a2862ce /testsuite/termios/test_termios_driver.h | |
parent | Adding RTEMS support for FREEBSD TTY (diff) | |
download | rtems-libbsd-333bfb618bf21fc3f7cca7411acf0f42fcdc4b57.tar.bz2 |
Adding test cases for FREEBSD termios support through tty
Diffstat (limited to 'testsuite/termios/test_termios_driver.h')
-rw-r--r-- | testsuite/termios/test_termios_driver.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testsuite/termios/test_termios_driver.h b/testsuite/termios/test_termios_driver.h new file mode 100644 index 00000000..b8cf0b91 --- /dev/null +++ b/testsuite/termios/test_termios_driver.h @@ -0,0 +1,32 @@ +/* + * COPYRIGHT (c) 1989-2010. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef TEST_TERMIOS_DRIVER_H +#define TEST_TERMIOS_DRIVER_H + +/** + * This macro defines the standard name for the USB serial device + * that is available to applications. + */ +#define TERMIOS_TEST_DRIVER_TTY_PREFIX "T" +#define TERMIOS_TEST_DRIVER_TTY_UNIT "0" +#define TERMIOS_TEST_DRIVER_DEVICE_NAME "/dev/tty" TERMIOS_TEST_DRIVER_TTY_PREFIX TERMIOS_TEST_DRIVER_TTY_UNIT + +struct test_termios_softc { + uint8_t sc_lsr; + uint8_t sc_msr; + uint8_t sc_mcr; + struct tty *tp; +}; + +extern void test_termios_make_dev(void); + +extern struct test_termios_softc tt_softc; + +#endif /* TEST_TERMIOS_DRIVER_H */
\ No newline at end of file |