dillon
1b46557c21
probe function changed from returning char * to const char *.
1998-12-14 06:37:37 +00:00
mjacob
ad9bd899c9
oops on last
1998-12-05 01:46:40 +00:00
mjacob
6b499c42bc
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
mjacob
ee4de20504
make a real "done" func; clarify some LUN widths
1998-12-05 01:31:21 +00:00
mjacob
993b50af59
compilation fixes from Eklund
1998-12-05 01:30:52 +00:00
mjacob
ba9a0c9f21
compilation fixes from Eklund && move XS_CMD_DONE to be a real function
1998-12-05 01:30:27 +00:00
mjacob
2dd2c8d11c
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
mjacob
8500a9a7a3
roll core version minor and wire a non-i386 default Loop ID to 113
1998-12-05 01:28:38 +00:00
mjacob
9a7bd192e5
offset was wrong for HARDLOOPID in NVRAM
1998-12-05 01:07:52 +00:00
mjacob
5847a18836
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
mjacob
6e55d5d8b1
roll to 1.31 level
1998-12-05 00:38:31 +00:00
mjacob
0ff3e17e01
trivial header fix
1998-12-05 00:07:04 +00:00
archie
982e80577d
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
gibbs
8111be0235
-Wunused cleanup.
...
Submitted by: Poul-Henning Kamp <phk@freebsd.org>
1998-10-15 23:46:33 +00:00
gibbs
f3dbbe3c84
Honor CAM_TAG_ACTION_NONE.
1998-10-15 23:17:58 +00:00
mjacob
79798ff9eb
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
dfr
36a8222236
Add hooks so that the alpha can detect which disk has the root partition.
1998-09-26 14:37:49 +00:00
mjacob
2426c8b34c
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
mjacob
4cc465448d
(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
mjacob
00163848c1
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
mjacob
cbc05032bc
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
mjacob
2b203e82ec
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
mjacob
45723eb957
Clean up a comment. Make the default debugging level contingent upon CAMDEBUG.
1998-09-17 21:06:38 +00:00
mjacob
1f41f720c7
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
mjacob
4d3cd8e51f
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
mjacob
9dad24d2f6
Roll revision, clean up a comment.
1998-09-17 21:02:18 +00:00
mjacob
5b2097bd6c
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
mjacob
d85d94f4f7
Alpha port related fixes from Doug Rabson.
...
Submitted by: dfr
1998-09-16 16:43:17 +00:00
mjacob
c773a864d9
alpha port fixes from Doug.
...
Reviewed by: dfr
1998-09-16 16:42:40 +00:00
mjacob
ee0c7c1d4f
fix reported compile error flying blind- I do not have the new compiler yet
1998-09-15 22:44:51 +00:00
gibbs
ec8a52546b
Convert ISP pci front end to CAM/bus space/dma.
...
Convert ncr driver to CAM.
1998-09-15 10:06:23 +00:00
gibbs
331be1099c
Contents were duplicated.
1998-09-15 09:59:37 +00:00
gibbs
dbf36c8a08
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
bde
d09c7eccb2
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
mjacob
a3b54b46a3
minphys means something different in FreeBSD than in NetBSD- not needed here and in the way
1998-07-25 04:48:25 +00:00
bde
925110cd23
Fixed printf format errors (only 1 left in GENERIC now).
1998-07-13 09:53:11 +00:00
bde
566ee5c323
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
bde
f557c431ce
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
mjacob
7d48e85bb7
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
mjacob
8cd3efb7df
Add support for the Qlogic ISP SCSI && FC/AL Adapters
1998-04-22 18:12:29 +00:00
mjacob
a9113b6f9b
Add support for the Qlogic ISP SCSI && FC/AL Adapters
1998-04-22 17:54:58 +00:00