diff options
Diffstat (limited to 'device/tty.h')
-rw-r--r-- | device/tty.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/device/tty.h b/device/tty.h index 9422996..0ffab2c 100644 --- a/device/tty.h +++ b/device/tty.h @@ -104,10 +104,19 @@ extern void ttyinput( unsigned int c, struct tty * tp); +extern void ttyinput_many( + struct tty * tp, + unsigned char * chars, + int count); + extern boolean_t ttymodem( struct tty * tp, boolean_t carrier_up); +extern void tty_cts( + struct tty * tp, + boolean_t cts_up); + extern void tty_queue_completion( queue_t queue); #define tt_open_wakeup(tp) \ @@ -124,6 +133,35 @@ short tthiwat[NSPEEDS], ttlowat[NSPEEDS]; #define TTHIWAT(tp) tthiwat[(tp)->t_ospeed] #define TTLOWAT(tp) ttlowat[(tp)->t_ospeed] +extern io_return_t tty_get_status( + struct tty * tp, + dev_flavor_t flavor, + int * data, + natural_t * count); + +extern io_return_t tty_set_status( + struct tty * tp, + dev_flavor_t flavor, + int * data, + natural_t count); + +extern void tty_flush( + struct tty * tp, + int rw); + +extern void ttrstrt( + struct tty * tp); + +extern void ttstart( + struct tty * tp); + +extern void ttyclose( + struct tty * tp); + +extern boolean_t tty_portdeath( + struct tty * tp, + ipc_port_t port); + /* internal state bits */ #define TS_INIT 0x00000001 /* tty structure initialized */ #define TS_TIMEOUT 0x00000002 /* delay timeout in progress */ @@ -200,4 +238,6 @@ struct ldisc_switch { extern struct ldisc_switch linesw[]; +extern void chario_init(void); + #endif /* _DEVICE_TTY_H_ */ |