
SunOS 5.5 Devices stc(7D)
line for login (using pmadm(1M)) and also used for dial-out (by tip(1) or uucp(1C)) as
/dev/cua/0 when no one is logged in on the line.
The parallel port is giventhe name /dev/stclpn, where n is the SPC/S unit number (see
Minor Numbers, below).
The control port, named /dev/stcn, where n is the SPC/S, is available. And ioctl() is pro-
vided for this special file which allow the collection of statistics maintained on serial port
performance.
Minor Numbers opuu|ulll−these correspond to bits in the minor number
o set if this device is an outgoing serial line
p set if this is a parallel port device
u device unit number
l device line number if this is the parallel port line,’p’ should be 1 and ’lll’
should be all 0’s if this is the control line, both ’p’ and ’lll’ should be set to
all 1’s
IOCTLS The standard set of termio ioctl() calls are supported by the stc driver on both the serial
and parallel ports.
If the CRTSCTS flag in the c_cflag is set and if CTS is high, output will be transmitted; if
CTS is low, output will be frozen. If the CRTSCTS flag is clear, the state of CTS has no
effect. Breaks can be generated by the TCSBRK,TIOCSBRK and TIOCCBRK ioctl( ) calls.
The modem control lines TIOCM_CAR, TIOCM_CTS,TIOCM_RTS, TIOCM_DSR and
TIOCM_DTR are provided for the serial ports, although theTIOCMGET ioctl() call will
not return the state of the TIOCM_RTS or TIOCM_DSR lines, which are output-only sig-
nals.
The serial port input and output line speeds may be set to any of the speeds supported by
termio(7I).
DEVICE-SPECIFIC
IOCTLS
The following additional ioctl()’s are supported by the stc driver.
STC_SPPC( struct ppc_params_t ∗)
set parallel port parameters (valid until changed or close())
STC_GPPC( struct ppc_params_t ∗)
get parallel port parameters (valid until changed or close())
struct ppc_params_t {
u_int flags; /∗ driver status flag ∗/
u_int state; /∗ status of the printer interface ∗/
u_int strobe_w; /∗ strobe width, in microseconds ∗/
u_int data_setup; /∗ data setup time, in microseconds ∗/
u_int ack_timeout; /∗ ACK timeout in secs ∗/
u_int error_timeout; /∗ PAPER OUT, etc... timeout in secs ∗/
u_int busy_timeout; /∗ BUSY timeout in seconds ∗/
};
modified 2 Aug 1993 7D-315
Kommentare zu diesen Handbüchern