Change the usage of 'used' to 'touched'. Change some messages to be
CFGPRINTF instead of PRINTF. Clean up f/w download. If we're a 2100
less than rev 5, turn off loop fairness. Fix some random botches.
Use the isp_getrqentry inline to get the next request queue entry.
- Fix mouse ioctl. This corresponds to scmouse.c of the following
revision in -CURRENT.
----------------------------
revision 1.6
date: 1999/11/09 12:35:36; author: yokota; state: Exp; lines: +23 -24
Correctly record the mouse position in the current VTY.
----------------------------
This is the difference between a working machine and one that
panics whenever /dev/ums0 is closed (that is, when you reboot
a machine running with the mouse daemon).
Approved by: jkh
MFC:Roll core version number. Do some stylistic changes. Ensure that
the result queue length is never less than 64. Move (ick) temp port
database used for post-LIP merging off the kernel stack and put it
into the softc. Remove some target mode stuff which will come back
later in a different file. Change how the list of outstanding commands
are stored (now allocated at mailbox setup time to be just enough for
the max for a specific HBA which can vary). Keep a rotating seed of
the last index for this in the softc. Increase the count of active
commands from 10 to 16 bits.
MFC:Roll platform major && minor (major now tracks FreeBSD major release).
Add in null SWIZZLE definitions. Add in CFGPRINTF define. Change default
debug level to refer to an external isp_debug variable. Remove inline
functions as they're now in isp_inline.h and include that file.
MFC:Add in isp_debug variable. It defaults to zero unless CAMDEBUG is defined
where it defaults to one. Change simq width allocation to the max number
of commands supported by the HBA after f/w fires up- not the constant
MAXISPREQUEST value. Do some stylistic changes.
MFC:Remove some target mode stuff. It will get re-introduced in a different
file later. Do some pencil-sharpening types of minor changes. Change
how active commands are remembered (using new inline functions to get
handles, etc..). Now do a GET FIRMWARE STATUS after firing up the f/w as
outgoing mailbox 2 will tell you the f/w's notion of the max commands
that can be supported. Attempt to retrieve loop topology. Add in the
appropriate SWIZZLE/UNSWIZZLE macros calls (this is a no-op on Little
Endian machines but is needed for sparc (on other platforms)). Move
the temp port database we use to find out where things have moved to
after a LIP to the softc and off the kernel stack. Follow Qlogic's
hint and don't bother setting a tag for commands that don't have
this enabled (presumably the f/w will do it's own selection then).
Use an INT_PENDING macro to check for an interrupt. The call to
ISP_DMAFREE now just takes the handle- not the 'handle-1' which was
a layering violation. Use CFGPRINTF in a couple of places to make
things less chatty if not booting verbose, or CAMDEBUG compiles, etc..
Fix another instance of vinum_scandisk giving a request to the daemon
and then doing it itself, resulting in a panic downed drives.
Sleuth-work-by: Christopher Masto <[email protected]>
vinum_scandisk: Check that a drive is up before reading from it. This
is probably excessive paranoia.
Sync with the latest driver from -current.
The bktr Bt848/Bt878 driver has been moved to /sys/dev/bktr
and has also been broken down into smaller files
for tuner,audio,card detection,video capture and OS specific parts.
open_drive: Don't call set_drive_state to take a drive down, do it
ourselves. This breaks a vicious circle which caused
vinum to dereference a null vp if device nodes were
missing.
Reported-by: Brad Chisholm <[email protected]>
Alec Wolman <[email protected]>
check_drive: Don't take a drive down if it's only referenced.
I fixed this in -current a month ago but forgot to MFC them. I don't
know how the old code ever worked... 8-)
There is also two fixes for detaching devices in here. One is for
disconnecting a device with bus-dma resources (busdma_machdep.c) and
the other is for cam queue resources. These two fixes have been in
-current for over a month (Nick Himba found them using USB devices).
And finally, there is a fix for a compile warning in the advansys
driver.
Approved by: jkh