Matt Jacob
e205b454ac
Remove the Target mode functions until they're in better shape. Implement some
...
suggested compilation cleanups from Eklund. Wire down a hard loop id if we are
not on a platform that has the ability to get to a PCI BIOS (it still will
float to the ID it gets after a LIP but at least we can try). Clarify that the
expanded lun is based upon SCCLUN defines (in f/w).
1998-12-05 01:33:57 +00:00
Matt Jacob
d3a9eb2ebe
make a real "done" func; clarify some LUN widths
1998-12-05 01:31:21 +00:00
Matt Jacob
e9c2652818
compilation fixes from Eklund
1998-12-05 01:30:52 +00:00
Matt Jacob
828dbae745
compilation fixes from Eklund && move XS_CMD_DONE to be a real function
1998-12-05 01:30:27 +00:00
Matt Jacob
ff717ff328
do a bit of cleanup on some target mode structures and clarify a couple other minro things
1998-12-05 01:29:43 +00:00
Matt Jacob
9f8afea40b
roll core version minor and wire a non-i386 default Loop ID to 113
1998-12-05 01:28:38 +00:00
Matt Jacob
f1535c024e
offset was wrong for HARDLOOPID in NVRAM
1998-12-05 01:07:52 +00:00
Matt Jacob
fef255f9d9
Roll to 1.15 f/w level for Qlogic 2100. Leave all flavors in, but control which
...
one gets compiled in by default. The default is private loop, non-expanded lun.
1998-12-05 00:47:25 +00:00
Matt Jacob
6fa014b216
roll to 1.31 level
1998-12-05 00:38:31 +00:00
Matt Jacob
2fa86a2b83
trivial header fix
1998-12-05 00:07:04 +00:00
Archie Cobbs
2127f26023
Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
...
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.
These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.
Reviewed by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by: Mike Spengler <mks@networkcs.com>
1998-12-04 22:54:57 +00:00
Justin T. Gibbs
4663e36736
-Wunused cleanup.
...
Submitted by: Poul-Henning Kamp <phk@freebsd.org>
1998-10-15 23:46:33 +00:00
Justin T. Gibbs
0a42741c4a
Honor CAM_TAG_ACTION_NONE.
1998-10-15 23:17:58 +00:00
Matt Jacob
9eefce67dc
Andrew Gallatin reported some internal queue overflows with MAXISPREQUEST
...
at 256. So- to be safe, let's roll back to 64 while we do some more
investigating.
1998-10-14 16:55:00 +00:00
Doug Rabson
e37c045536
Add hooks so that the alpha can detect which disk has the root partition.
1998-09-26 14:37:49 +00:00
Matt Jacob
090040e092
Bump request queue size up to full amount (now that we have
...
a contiguous CCB memory allocation).
1998-09-18 18:58:07 +00:00
Matt Jacob
3dd37e4387
(requested by gibbs) Remove the SCSI_CAM option (and rework the isp driver
...
that had depended on it for compilation within or without CAM to use
__FreeBSD_version instead).
1998-09-18 00:46:42 +00:00
Matt Jacob
a70ac9fd83
per bde (who is right about this) that an inlined fucntion with const
...
char * strings being returned defined in a header file included several
places but only used in one module, is, uh, silly.
1998-09-17 23:20:29 +00:00
Matt Jacob
7ac6b5a314
Cleanliness. Don't leave defined a const char array that's only used
...
if target mode is defined (which it isn't, yet).
1998-09-17 22:53:35 +00:00
Matt Jacob
4873663cf8
A major amount of cleaning up:
...
+ Change some messages about CCB memory allocation
+ Turn a failure to DMA map all of a transaction due to lack of
ISP queue entries into a requeue operation (instead of the
case where it had been treated the same as a DMA too big
operation).
+ put back splsoftvm around bus_dmamap_load calls.
+ cleanup (and fix a glaring bug) in the and of the dma setup
routine. Also, the dma setup routines either return CMD_QUEUED
(for success) or CMD_COMPLETE (for failure) or CMD_EAGAIN
(for requeuing for resource shortage reasons).
1998-09-17 21:11:21 +00:00
Matt Jacob
0c1b701510
Clean up a comment. Make the default debugging level contingent upon CAMDEBUG.
1998-09-17 21:06:38 +00:00
Matt Jacob
c6904df981
Remove commented out and no longer pertinent EAGAIN message. Redo CMD_COMPLETE
...
logic for returns from inner layer (just make sure that a CAM_REQ_INPROG
doesn't get xpt_done'd).
1998-09-17 21:05:40 +00:00
Matt Jacob
42b7427595
ISP_DMASETUP now returns a value to be possibly punted to outer layers.
...
Turn request queue overflow messages into debug messages. Ensure on
isp_restarts that we nullify the xflist array.
1998-09-17 21:03:45 +00:00
Matt Jacob
4d65e73e67
Roll revision, clean up a comment.
1998-09-17 21:02:18 +00:00
Matt Jacob
00f50ce889
Fix the (unported) resource shortage case- I'd done a xpt_freeze_simq
...
but had never done a CAM_RELEASE_SIMQ to restart the queues.
1998-09-16 19:52:22 +00:00
Matt Jacob
a185f9b1c3
Alpha port related fixes from Doug Rabson.
...
Submitted by: dfr
1998-09-16 16:43:17 +00:00
Matt Jacob
aad446c06c
alpha port fixes from Doug.
...
Reviewed by: dfr
1998-09-16 16:42:40 +00:00
Matt Jacob
050ea0d6f2
fix reported compile error flying blind- I do not have the new compiler yet
1998-09-15 22:44:51 +00:00
Justin T. Gibbs
d720e6d5de
Convert ISP pci front end to CAM/bus space/dma.
...
Convert ncr driver to CAM.
1998-09-15 10:06:23 +00:00
Justin T. Gibbs
830a89fb0b
Contents were duplicated.
1998-09-15 09:59:37 +00:00
Justin T. Gibbs
478f8a9685
Update QLogic ISP support for CAM. Add preliminary target mode support.
...
Submitted by: Matthew Jacob <mjacob@feral.com>
1998-09-15 08:42:56 +00:00
Bruce Evans
b97fc94873
Use [u]intptr_t instead of [unsigned] long to convert and/or represent
...
pointers.
This finishes fixing conversions between pointers and integers of
possibly different sizes in GENERIC.
1998-08-10 17:21:49 +00:00
Matt Jacob
d8bb36bb8a
minphys means something different in FreeBSD than in NetBSD- not needed here and in the way
1998-07-25 04:48:25 +00:00
Bruce Evans
9bffbcd4f5
Fixed printf format errors (only 1 left in GENERIC now).
1998-07-13 09:53:11 +00:00
Bruce Evans
a09bee1aa8
Fixed pedantic semantics errors (bitfields not of type int, signed int
...
or unsigned int (this doesn't change the struct layout, size or
alignment in any of the files changed in this commit, at least for
gcc on i386's. Using bitfields of type u_char may affect size and
alignment but not packing)).
1998-06-08 09:47:47 +00:00
Bruce Evans
5a4c8619d8
Support compiling with `gcc -ansi'. Just use __inline instead of inline.
...
[__]inline is only used to bloat the code here. It gives a separate copy
of all the strings for each time this header is included...
Fixed misuse of __P(()).
1998-05-01 18:10:50 +00:00
Matt Jacob
f05ebe7324
Oops- osreldate.h is not around like I thought it would be... hmmm.. quick fix to get around this
1998-04-24 18:23:20 +00:00
Matt Jacob
65adb54cf1
Add support for the Qlogic ISP SCSI && FC/AL Adapters
1998-04-22 18:12:29 +00:00
Matt Jacob
6054c3f6f2
Add support for the Qlogic ISP SCSI && FC/AL Adapters
1998-04-22 17:54:58 +00:00