summaryrefslogtreecommitdiffstats
path: root/testsuite/termios/test_termios_driver.h
blob: b8cf0b915f6d26c393e61db415e2f3938eae0053 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 */