Bruce Evans [Fri, 15 Jan 1999 10:00:12 +0000 (10:00 +0000)]
Use a fast interrupt handler for the PCI version of the cy driver
if option CY_PCI_FASTINTR is configured and mapping the irq to a
fastintr is possible. Unfortunately, this has to be optional because
pci_map_int_right() doesn't handle the INTR_EXCL flag right --
INTR_EXCL is honoured even if the interrupt needs to be non-exclusive
for other devices to work.
Bruce Evans [Fri, 15 Jan 1999 09:15:27 +0000 (09:15 +0000)]
Fixed corruption of the fd buffer queue. Once upon a time, the active
buffer had to be left on the head of the queue for [bufq]disksort()
to sort against. This isn't right for devices that can support multiple
active i/o's, and only the fd driver did it. "Fixing" this in rev.1.36
of ufs_disksubr.c broke the fd driver in much the same way as rev.1.52
of <sys/buf.h> broke it (see rev.1.119).
Warner Losh [Fri, 15 Jan 1999 05:46:28 +0000 (05:46 +0000)]
Y2K nit:
Make two digit years specified on the command line represent
the century that the computer currently resides. So 99 means
1999 this year, but 2099 next year.
Pointed out by: Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
Mike Smith [Fri, 15 Jan 1999 00:03:39 +0000 (00:03 +0000)]
Add sscanf/vsscanf/strtoq/strtouq to the kernel. Initially these will be used
for parsing kernel environment values, although they have utility elsewhere.
Justin T. Gibbs [Thu, 14 Jan 1999 06:14:15 +0000 (06:14 +0000)]
Add support for routing initiator transactions to disabled luns to the
black hole device. The controller will now only accept selections if
the black hole device is present and some other target/lun is enabled
for target mode.
Handle the IGNORE WIDE RESIDUE message. This support has not been tested.
Checkpoint work on handling ABORT, BUS DEVICE RESET, TERMINATE I/O PROCESS,
and CLEAR QUEUE messages as a target.
Fix a few problems with tagged command handling in target mode.
Wait until the sync offset counter falls to 0 before changing phase
after a data-in transfer completes as the DMA logic seems to indicate
transfer complete as soon as our last REQ is issued.
Simplify some of the target mode message handling code in the sequencer.
Justin T. Gibbs [Thu, 14 Jan 1999 06:03:59 +0000 (06:03 +0000)]
Add support for wildcard device entries in the EDT. The target mode
'Black Hole' device uses this feature to schedule itself against any
target or lun attached to a controller that receives an unwanted request
from an initiator instead of having an instance per potential target/lun
request.
Use the wildcard entries to simplify wildcard async callback storage.
Don't announce devices twice to peripheral drivers. The devices will
be announced as soon as the AC_PATH_REGISTERED event is registered by
the peripheral driver, so no manaul push of this event is required.
Justin T. Gibbs [Thu, 14 Jan 1999 06:00:29 +0000 (06:00 +0000)]
The target mode 'Black Hole' device. This peripheral driver provides inquiry
data and sense information for target mode devices for which no other
peripheral driver is attached. This simplifies the task of dealing with
luns that are not otherwise enabled for target mode if the controller
does not have firmware that automatically deals with this case (e.g.
the aic7xxx driver).
John Polstra [Thu, 14 Jan 1999 05:48:46 +0000 (05:48 +0000)]
Move the linker set definitions into a new header file
<sys/linker_set.h>. <sys/kernel.h> includes the new header, so
functionally everything is still the same.
Kazutaka YOKOTA [Thu, 14 Jan 1999 03:17:32 +0000 (03:17 +0000)]
Fix various breakage after the recent keyboard driver change.
- Don't try to set typematic rate if there is not a keyboard.
- Fix wrong test on error code.
- Don't try to claim the keyboard twice. The second call will fail.
Nick Hibma [Thu, 14 Jan 1999 01:28:15 +0000 (01:28 +0000)]
Corrected the latent fact that the uhub driver was providing a driver for
the usb device class instead of the uhub devclass. Only a problem with more
than one USB host controller.
Joerg Wunsch [Wed, 13 Jan 1999 17:32:37 +0000 (17:32 +0000)]
Add some special hooks for sppp(4) interfaces. In addition to the
normal ifconfig stuff, one might need to pass down authentication
parameters for them.
This is closely tied to Hellmuth's impending rc patches for ISDN, but
sppp can also be used separately (thus it doesn't go directly into the
planned ISDN section of rc.conf).
Bruce Evans [Wed, 13 Jan 1999 04:59:19 +0000 (04:59 +0000)]
Let drivers specify interrupt flags (INTR_EXCL and/or INTR_FAST)
using the new pci_map_int_right() variant of pci_map_int(). Fast
interrupts work for PCI devices if and only if they are exclusive.
(The PCI interrupt mux doesn't support fast interrupts and can't
support a mixture of fast and slow interrupts even in principle.)
Don't assume that intrmask_t == unsigned in pci_map_int().
Brian Somers [Tue, 12 Jan 1999 21:50:20 +0000 (21:50 +0000)]
If we've configured CBCP *and* another not-so-important
CALLBACK protocol and end up agreeing CBCP, DTRT and go
into CBCP phase rather than mistakenly terminating as
if CBCP wasn't agreed.
Problem reported by: Alexander Dubinin <alex@nstl.nnov.ru>
Warner Losh [Tue, 12 Jan 1999 20:11:29 +0000 (20:11 +0000)]
Convert to HTML. Verified to work on Netscape 4.5 and Netscape
3.something. We were getting a lot of URL links in this file and it
seemed like a good idea to convert this file to html so people can
follow them easily.
This does not use the doc tools to generate. I'm doing it all by hand
at the moment.
Eivind Eklund [Tue, 12 Jan 1999 16:26:19 +0000 (16:26 +0000)]
Make dsopen() and dsioctl() use cdstrategy1 instead of cdstrategy.
This silence the warnings and makes it more obvious where the bugs
have to be fixed.