freebsd_amp_hwpstate/sys
Justin T. Gibbs c6baec432a Don't arbitrarily set SCSI_NOSLEEP. It is now handled correctly by the
higher level scsi code.

Spls should never be conditionalized, so don't do so here.

Restructure the get_scb routine so that we can't get into an infinite
loop if the ccbs are exhausted and we are are called with SCSI_NOSLEEP set.

Other driver maintainer's that based their scb allocation routines on Julian's
code should look at these changes and implement them for their driver.

The aic7xxx driver inspired these changes because early revs of the
aic7770 chips have so few SCBs that you can actually run out.  If you
have a rev C or aic7770 (as is reported by the driver probe) and had more
than 2 drives, you could get into an infinite loop when using up all of
the SCBs.  Since the driver will only allow two SCBs per device and I
only had two devices, I never saw this problem on my Rev C card.

Bzero only 19 bytes of the scb instead of 2k (ack!).  This was a hold
over from when a struct SCB only contained the information downloaded
to the board, but we now store kernel driver data in there as well.  This
greatly lowers the overhead for small transactions (I get ~1MB/sec for
dds with a 512 byte block size).

Submitted by: John Dyson with the aic7xxx specific optimization by me
1995-04-23 22:04:58 +00:00
..
alpha/include
amd64 hmm spotted a difference resulting from a merge I didn't examine close enough 1995-04-23 09:17:24 +00:00
compile
conf Substantially clean up LINT and add `fe'. 1995-04-23 18:30:27 +00:00
ddb
dev Added `fe' device drive r for Fujitsu MB86960A family. 1995-04-23 18:31:50 +00:00
fs
gnu
i386 Don't arbitrarily set SCSI_NOSLEEP. It is now handled correctly by the 1995-04-23 22:04:58 +00:00
isa Move declarations of console functions to cons.h (they should be 1995-04-23 12:41:57 +00:00
isofs/cd9660
kern Declare the console switch functions completely. 1995-04-23 12:55:55 +00:00
libkern
miscfs
modules
msdosfs
net
netccitt
netinet
netiso
netns
nfs
nfsclient
nfsserver
pci
powerpc/include
rpc
scsi
sys Declare the console switch functions completely. 1995-04-23 12:55:55 +00:00
tools
ufs
vm inline -> __inline. 1995-04-23 08:05:49 +00:00
Makefile