diff options
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 |