Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ttydisc.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
#define TRE_PARITY 0x02 | #define TRE_PARITY 0x02 | ||||
#define TRE_OVERRUN 0x04 | #define TRE_OVERRUN 0x04 | ||||
#define TRE_BREAK 0x08 | #define TRE_BREAK 0x08 | ||||
static __inline size_t | static __inline size_t | ||||
ttydisc_read_poll(struct tty *tp) | ttydisc_read_poll(struct tty *tp) | ||||
{ | { | ||||
tty_assert_locked(tp); | ttydisc_assert_locked(tp); | ||||
return ttyinq_bytescanonicalized(&tp->t_inq); | return ttyinq_bytescanonicalized(&tp->t_inq); | ||||
} | } | ||||
static __inline size_t | static __inline size_t | ||||
ttydisc_write_poll(struct tty *tp) | ttydisc_write_poll(struct tty *tp) | ||||
{ | { | ||||
tty_assert_locked(tp); | ttydisc_assert_locked(tp); | ||||
return ttyoutq_bytesleft(&tp->t_outq); | return ttyoutq_bytesleft(&tp->t_outq); | ||||
} | } | ||||
#endif /* !_SYS_TTYDISC_H_ */ | #endif /* !_SYS_TTYDISC_H_ */ |