Technical data

stc(7D) Devices SunOS 5.5
The possible values for flags, defined in /usr/include/sys/stcio.h, are:
PP_PAPER_OUT honor PAPER OUT from port; returned HIGH means PAPER
OUT.
PP_ERROR honor ERROR from port; returned HIGH means ERROR.
PP_BUSY honor BUSY from port; returned HIGH means BUSY.
PP_SELECT honor SELECT from port; returned HIGH means OFFLINE.
PP_MSG print console message on every error scan.
PP_SIGNAL send a PP_SIGTYPE(SIGURG) to the process if printer error.
The state field contains the current status of the printer interface. It is analogous
to the bit order of flags, but contains the status the driver maintains, masked by
the flags that are set. The result of shifting state PP_SHIFT bits to the left is the
actual state of the hardware.
The STC_SPPC and STC_GPPC ioctl calls are understood only by the parallel
port.
STC_GSTATS( struct stc_stats_t )
get or reset driver performance statistics on serial ports
struct stc_stats_t {
u_int cmd; /command /
u_int qpunt; /punting in stc_drainsilo() /
u_int drain_timer; /posted a timer in stc_drainsilo() /
u_int no_canput; /canput() failed in stc_drainsilo() /
u_int no_rcv_drain; /can’t call stc_drainsilo() in stc_rcv() /
u_int stc_drain; /STC_DRAIN flag set on this line /
u_int stc_break; /BREAK requested on XMIT via stc_ioctl() /
u_int stc_sbreak; /start BREAK requested via stc_ioctl() /
u_int stc_ebreak; /end BREAK requested via stc_ioctl() /
u_int set_modem; /set modem control lines in stc_ioctl() /
u_int get_modem; /get modem control lines in stc_ioctl() /
u_int ioc_error; /bad ioctl() /
u_int set_params; /call to stc_param() /
u_int no_start; /can’t run in stc_start(); already there /
u_int xmit_int; /transmit interrupts /
u_int rcv_int; /receive interrupts /
u_int rcvex_int; /receive exception interrupts /
u_int modem_int; /modem change interrupts /
u_int xmit_cc; /characters transmitted /
u_int rcv_cc; /characters received /
u_int break_cnt; /BREAKs received /
u_int bufcall; /times we couldn’t get STREAMS buffer /
u_int canwait; /stc_drainsilo() called w/pending timer /
u_int reserved; /this field is meaningless /
};
7D-316 modified 2 Aug 1993