1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00
freebsd/sys/dev
Bill Paul 6998849dc4 Do not attempt to load the firmware a second time. If you reboot your
machine but leave your KLSI adapter plugged into your USB port, it
may stay powered on and retain its firmware in memory. Trying to load
the firmware again in this case will wedge the chip. Try to detect this
in the kue_load_fw() routine and bail if the firmware is already
loaded and running.

Also, in the probe/match routine, force the revision code to the
hardware default and force a rescan of the quirk database. This is
necessary because the adapter will return a different revision code
if the firmware has been loaded. Without the firmware, the revision
code is 0x002. With the firmware, the revision code is 0x202. This
confuses the quirk mechanism, which won't match a quirk to a device
unless the revision code agrees with the quirk table entry.

This makes probe/attach of these devices somewhat more reliable.

Also add a few comments about the device's operation.
2000-01-05 17:13:50 +00:00
..
advansys
aha MIN unused, so kill it 1999-10-25 04:28:53 +00:00
ahb
aic Adjust data pointers for untransmitted bytes in fifos when there's phase 1999-12-16 16:11:49 +00:00
aic7xxx Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
amd
amr Fix a printf format problem on the Alpha, where size_t == unsigned long, 1999-12-12 20:53:31 +00:00
ar Add explicit null entries for new entrypoints. 1999-12-01 09:34:14 +00:00
ata Fix link problem on ISA only systems.. 2000-01-03 20:01:18 +00:00
atkbdc Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
bktr Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
buslogic
cardbus Sync to latest cardbusdevs file 1999-11-18 07:22:59 +00:00
ccd Remove unused variable 1999-12-21 08:20:36 +00:00
cs
cy
dc It appears that under certain circumstances that I still can't quite pin 2000-01-03 15:28:47 +00:00
de
dec Ho, ho, ho... this clock chip is not y2k compliant. Motorola 2000-01-04 03:22:04 +00:00
dgb
dpt Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ed Fix pccard ed driver, I think. 1999-12-10 07:22:53 +00:00
eisa Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
en
ep kill debug printf that says detach 1999-12-10 07:24:39 +00:00
ex Fix bus_setup_intr(); I changed exintr() to take a pointer to ex_softc 1999-11-03 15:45:14 +00:00
fb Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
fdc Patch up some of the evilness left over from the early newbus porting. 2000-01-05 16:31:27 +00:00
fe Make release is now falling over in if_fe.c due to Warner's pccard changes: 1999-10-25 17:04:17 +00:00
fxp
hea Incorrect uses of NULL changed to 0 1999-12-21 08:24:35 +00:00
hfa
ic
ida Revamp the devstat priority system. All disks now have the same priority. 1999-12-08 04:45:23 +00:00
ie
iicbus Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
isp oop, use PRINTF not printf in MI code 2000-01-04 05:17:48 +00:00
joy Recognize the CSC0101 ID for the Thinkpad series. 1999-12-30 20:07:20 +00:00
kbd - Fixed warnings. 2000-01-04 04:46:50 +00:00
lnc
mc146818
mca Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
mcd
md Initialize type correctly. 1999-12-01 10:20:21 +00:00
mii Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
mlx Fix the firmware build number output (again). 1999-12-25 01:45:22 +00:00
mse
pccard Connect interrupts and start processing them. We panic on card removal 2000-01-03 06:45:16 +00:00
pcf Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
pci Zap pci_map_dense() and pci_map_bwx() - they were for compatability but 2000-01-05 16:40:10 +00:00
pcic Connect interrupts and start processing them. We panic on card removal 2000-01-03 06:45:16 +00:00
pdq
ppbus Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
ppc
rc
rp
scd
sf Modify the Adaptec "starfire" driver to reset the PHY on the MII bus 1999-12-05 20:02:45 +00:00
si Fix some -Wunused warnings 1999-11-18 08:43:58 +00:00
sio Recognize the GVC0505 (GVC 56k Faxmodem) as a sio device. 1999-12-27 05:02:25 +00:00
sk
smbus Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
sn Two nits and disable isa probe due to its overly agressive claiming of 1999-12-28 01:07:16 +00:00
snp Remove cdevsw_add() - the make_dev() calls are already there. 1999-11-18 06:39:47 +00:00
sound argh, forgot the bus_dma_tag_creates. 2000-01-05 04:01:34 +00:00
speaker Move isfoo() and friends to the newly created sys/ctype.h. 1999-11-03 17:54:26 +00:00
sr Add explicit null entries for new entrypoints. 1999-12-01 09:34:14 +00:00
streams Rename remove_dev() to destroy_dev(). 1999-11-08 07:44:01 +00:00
sym - Add device entry for the next generation of C1010 device 2000-01-01 15:24:44 +00:00
syscons - Remember the keyboard repeat delay and rate. 1999-12-13 09:31:43 +00:00
ti
tx Change incorrect NULLs to 0s 1999-12-21 11:14:12 +00:00
usb Do not attempt to load the firmware a second time. If you reboot your 2000-01-05 17:13:50 +00:00
vinum Explicitly type large scalar parameters to avoid compilation warnings 2000-01-05 06:13:01 +00:00
vn Fix a panic when doing non-multiples of PAGE_SIZE or misaligned transfers 1999-12-28 07:32:34 +00:00
vr
vx
wi Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
wl
xe Disable old PCCARD_MODULE code. 1999-10-29 17:28:09 +00:00