2001-05-02 01:08:09 +00:00
|
|
|
.\" $FreeBSD$
|
2001-06-20 14:52:20 +00:00
|
|
|
.Dd June 20, 2001
|
2001-05-02 01:08:09 +00:00
|
|
|
.Dt DIGICTL 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm digictl
|
2001-05-16 10:29:51 +00:00
|
|
|
.Nd control
|
|
|
|
.Tn Digiboard
|
|
|
|
devices
|
2001-05-02 01:08:09 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2001-06-20 14:52:20 +00:00
|
|
|
.Fl a
|
2001-07-05 07:04:33 +00:00
|
|
|
.Cm disable | enable | query
|
2001-06-20 14:52:20 +00:00
|
|
|
.Ar device ...
|
|
|
|
.Nm
|
2001-05-02 01:08:09 +00:00
|
|
|
.Op Fl d Ar debug
|
|
|
|
.Op Fl ir
|
2001-06-20 14:52:20 +00:00
|
|
|
.Ar ctrl-device ...
|
2001-05-02 01:08:09 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility provides control of the
|
2001-05-16 10:29:51 +00:00
|
|
|
.Tn Digiboard
|
2001-06-20 14:52:20 +00:00
|
|
|
installed with the given
|
|
|
|
.Ar ctrl-device
|
|
|
|
name and provides control of individual digiboard
|
2001-07-05 07:04:33 +00:00
|
|
|
.Ar devices .
|
2001-06-20 14:52:20 +00:00
|
|
|
A digiboard
|
|
|
|
.Ar ctrl-device
|
|
|
|
is usually of the form
|
2001-07-05 07:04:33 +00:00
|
|
|
.Sm off
|
|
|
|
.Pa /dev/digi Ar N Pa .ctl
|
|
|
|
.Sm on
|
2001-06-20 14:52:20 +00:00
|
|
|
where
|
2001-07-05 07:04:33 +00:00
|
|
|
.Ar N
|
2001-06-20 14:52:20 +00:00
|
|
|
is the card number and starts at
|
|
|
|
.Dq 0
|
|
|
|
for the first attached card.
|
|
|
|
A digiboard
|
2001-05-02 01:08:09 +00:00
|
|
|
.Ar device
|
|
|
|
is usually of the form
|
2001-07-05 07:04:33 +00:00
|
|
|
.Sm off
|
|
|
|
.Pa /dev/cua Oo Pa il Oc Pa D Ar N Pa \&. Ar P
|
|
|
|
.Sm on
|
2001-06-20 14:52:20 +00:00
|
|
|
or
|
2001-07-05 07:04:33 +00:00
|
|
|
.Sm off
|
|
|
|
.Pa /dev/tty Oo Pa il Oc Pa D Ar N Pa \&. Ar P
|
|
|
|
.Sm on
|
2001-05-02 01:08:09 +00:00
|
|
|
where
|
2001-07-05 07:04:33 +00:00
|
|
|
.Ar N
|
2001-06-20 14:52:20 +00:00
|
|
|
is the card number and
|
2001-07-05 07:04:33 +00:00
|
|
|
.Ar P
|
2001-06-20 14:52:20 +00:00
|
|
|
is the port number.
|
2001-05-02 01:08:09 +00:00
|
|
|
.Pp
|
2001-05-16 10:29:51 +00:00
|
|
|
The following flags are recognized:
|
2001-06-20 14:52:20 +00:00
|
|
|
.Bl -tag
|
2001-07-05 07:04:33 +00:00
|
|
|
.It Fl a Cm disable | enable | query
|
2001-06-20 14:52:20 +00:00
|
|
|
Disable, enable or query the
|
|
|
|
.Em ALTPIN
|
|
|
|
settings for the given port(s).
|
|
|
|
.Pp
|
|
|
|
When ALTPIN is enabled, the CD and DSR lines are logically reversed.
|
|
|
|
This is useful when wiring serial ports to an 8 way RJ45 cable (full
|
|
|
|
10 way RJ45 cables are quite rare).
|
|
|
|
.Pp
|
|
|
|
A single ALTPIN setting applies to both of the callout and callin devices.
|
2001-05-02 01:08:09 +00:00
|
|
|
.It Fl d Ar debug
|
|
|
|
If the driver has been compiled with
|
|
|
|
.Dv DEBUG
|
|
|
|
defined, the following bits from the
|
|
|
|
.Ar debug
|
|
|
|
variable are used to enable diagnostics in the digiboard driver:
|
2001-07-13 09:09:52 +00:00
|
|
|
.Bl -tag -width ".No 1024 ( Em MODEM )"
|
2001-05-02 01:08:09 +00:00
|
|
|
.It 1 ( Em INIT )
|
2001-05-16 10:29:51 +00:00
|
|
|
Diagnostics during card attach, detach and initialization.
|
2001-05-02 01:08:09 +00:00
|
|
|
.It 2 ( Em OPEN )
|
|
|
|
Diagnostics when opening a port.
|
|
|
|
.It 4 ( Em CLOSE )
|
|
|
|
Diagnostics when closing a port.
|
|
|
|
.It 8 ( Em SET )
|
|
|
|
Diagnostics when setting tty device flags.
|
|
|
|
.It 16 ( Em INT )
|
|
|
|
Diagnostics when processing card events.
|
|
|
|
.It 32 ( Em READ )
|
|
|
|
Reports return values from port reads.
|
|
|
|
.It 64 ( Em WRITE )
|
|
|
|
Reports return values from port writes.
|
|
|
|
.It 128 ( Em RX )
|
|
|
|
Reports receive queue flow control.
|
|
|
|
.It 256 ( Em TX )
|
|
|
|
Reports transmit queue flow control.
|
|
|
|
.It 512 ( Em IRQ )
|
|
|
|
Diagnostics during interrupts (enable these with care).
|
|
|
|
.It 1024 ( Em MODEM )
|
|
|
|
Diagnostics when setting modem status flags.
|
|
|
|
.It 2048 ( Em RI )
|
|
|
|
Reports when a RING is received.
|
|
|
|
.El
|
|
|
|
.It Fl i
|
2001-05-16 10:29:51 +00:00
|
|
|
Display the card identification string and type ID.
|
2001-05-02 01:08:09 +00:00
|
|
|
.It Fl r
|
2001-05-16 10:29:51 +00:00
|
|
|
Reinitialize the card.
|
2001-05-02 01:08:09 +00:00
|
|
|
For boards with external port modules, it is possible to add or remove
|
|
|
|
modules and dynamically reprobe the number of ports using this switch.
|
2001-05-16 10:29:51 +00:00
|
|
|
All ports on the card must be closed in order to reinitialize the card.
|
2001-05-02 01:08:09 +00:00
|
|
|
.Pp
|
2001-05-16 10:29:51 +00:00
|
|
|
It is preferable to reinitialize the card rather than reload the entire
|
|
|
|
digi module as reinitialization only affects the specified board rather
|
2001-05-02 01:08:09 +00:00
|
|
|
than affecting all attached boards.
|
|
|
|
.El
|
|
|
|
.Sh BUGS
|
2001-05-16 10:29:51 +00:00
|
|
|
It should be possible to reinitialize a board without closing all of the
|
2001-05-02 01:08:09 +00:00
|
|
|
existing ports.
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility first appeared in
|
2001-05-02 01:08:09 +00:00
|
|
|
.Fx 5.0 .
|