Download man pages section 7: Device and Network Interfaces
Transcript
stc(7D)
open will wait until the /dev/cua/n line is closed (which drops DTR, after which DCD
will usually drop as well) and carrier is detected again, and a non-blocking open will
return an error. If the /dev/term/n line is opened successfully (usually only when
carrier is recognized on the modem) the corresponding /dev/cua/n line cannot be
opened. This allows a modem to be attached to /dev/term/0, for example, and used
for dial-in, by enabling the line for login (using pmadm(1M)) and also used for dial-out
(by tip(1) or uucp(1C)) as /dev/cua/0 when nobody is logged in on the line.
The control port, named /dev/sad/stcn where n is the SPC/S, is available. An
ioctl() is provided for this special file which allow the collection of statistics
maintained on serial port performance.
Minor Numbers
IOCTLS
The characters o p u u | u l l l correspond to the bits in the minor number. They are
mnemonic indicators of the function of the corresponding bit.
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
The standard set of termio ioctl() calls is 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
the TIOCMGET ioctl() call will not return the state of the TIOCM_RTS or
TIOCM_DSR lines, which are output-only signals.
The serial port input and output line speeds may be set to any of the speeds supported
by termio(7I).
DEVICE-SPECIFIC
IOCTLS
The stc driver supports two additional ioctl()s. STC_SPPC(struct
ppc_params_t *) sets parallel port parameters, and STC_GPPC(struct
ppc_params_t *) gets parallel port parameters. Both are valid until changed or
until a close().
struct ppc_params_t {
uint_t
flags;
uint_t
state;
uint_t
strobe_w;
uint_t
data_setup;
uint_t
ack_timeout;
uint_t
error_timeout;
uint_t
busy_timeout;
578
/*
/*
/*
/*
/*
/*
/*
driver status flag */
status of the printer interface */
strobe width, in microseconds */
data setup time, in microseconds */
ACK timeout in secs */
PAPER OUT, etc... timeout in secs */
BUSY timeout in seconds */
man pages section 7: Device and Network Interfaces • Last Revised 6 Feb 2002
Related documents
man pages section 7: Device and Network Interfaces
PubTeX output 2000.01.12:1056
SunVTS 2.1 Test Reference Manual
SDT-5000 - User Guide - Stratos Global Corporation
man Pages(7): Device Network Interfaces
PCI Storage Device Management System SDMS™ 4.0 USER`S GUIDE
Systemverwaltungshandbuch IP Services
Adaptec AHA-1520A Technical data
Tekelec Signaling Products Hardware Manual
2750-ND001, Intelligent Antenna (DH-485 Multi
Building Mobile L2TP/IPsec Tunnels Chen Xu B.Eng
Sun™ Quad FastEthernet™ PCI Adapter Release Notes