.\" Copyright (c) 1983, 1991 Regents of the University of California.
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" @(#)dr.4 6.3 (Berkeley) 3/27/91
.Cd "device dr0 at vba? csr 0xffff8000 vector drintr"
Each minor device is a different controller.
In addition to reading and writing, the following
.Bl -tag -width DRSETNORSTALL
Wait for an attention interrupt from the associated device.
Write to the pulse register.
Set the ``ac-low'' bit in the next command sent to the
Set the ``cycle'' bit in the next command sent to the
Hold the function bits until the next command is issused.
Reset the attention flag.
Set the function bits in the control status register and,
as a side effect, clear the interrupt enable flag.
Reset the parity error flag.
Set ``no stall'' mode for all subsequent reads.
In no stall mode the driver will abort
read requests that fail to complete before a user
specified timeout expires.
Disable no stall mode for reads.
Return true if in no stall mode for reads.
Set the value of the timeout used in no stall mode for
reads. The time is specified in tenths of seconds.
Return the time until (in tenths of seconds) before a read
is timed out when in no stall mode.
Set ``no stall'' mode for all subsequent writes.
In no stall mode the driver will abort
write requests that fail to complete before a user
specified timeout expires.
Disable no stall mode for writes.
Return true if in no stall mode for writes.
Set the value of the timeout used in no stall mode for
writes. The time is specified in tenths of seconds.
Return the time until (in tenths of seconds) before a write
is timed out when in no stall mode.
Return 1 if the device can accept data, 0 otherwise
Return 1 if the device has data for the host to read,
0 otherwise (this is really the
Return 1 if the device is busy, 0 otherwise.
Return the driver status and the contents of the
eight words returned are, in order, the driver
status flags, the contents of the control status
register, the contents of the status register
at the time of the last interrupt from the device,
the contents of the programmed
a combination of the address modifier used by the
interrupt vector used by the device, the contents
of the range register, the contents of the rahi
register, and the contents of the ralo register.
Perform loopback testing (the loopback cable must
be in place for this to work).
.Bl -tag -width /dev/dr[0-7]xx -compact
Lots of them, none of them meaningful.
This driver needs to be rewritten.