| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Treat INQUIRY data with fewer than SID_SCSI2_HDRLEN bytes as invalid.
Use only INQUIRY data returned by the device.
Get all available INQUIRY data (up to sizeof(struct scsi_inquiry_data))
even when SCSIDEBUG is not set.
Tweak returned INQUIRY data so additional_length field does not point
past end of returned data when available data is greater than
sizeof(struct scsi_inquiry_data).
Missing dmafree() spotted by gnezdo@. ok jmatthew@.
|
|
|
|
|
|
| |
the bus. Use SLIST_FOREACH_SAFE() rather than 'while (!SLIST_EMPTY())'' as there
is a condition which would cause scsi_detach_link() to return without removing
the scsi_link from the SLIST.
|
|
|
|
|
|
| |
make the three variants more similar and easier to understand. Ensures
consistent error checks and eliminates pointless adapter_buswidth checks when
processing the list of scsi_links.
|
|
|
|
|
|
|
| |
it.
Prepares for removal of #include <scsi/scsi_debug.h> from scsiconf.h as soon as
the alpha tester digs out from hurricane to compile last untested files.
|
|
|
|
|
| |
nestled together. Rename scsibusprint() to scsibussubprint() since it is used
with scsibussubmatch().
|
| |
|
|
|
|
| |
leading whitespace. Rename some local functions.
|
|
|
|
| |
scsibus_softc pointers around.
|
|
|
|
|
|
|
| |
fields to struct scsibus_attach_args. Nuke the struct scsi_link *
(saa_sc_link) in scaibus_attach_args.
Explicitly initialize each field in scsibus_attach_args variables.
|
|
|
|
|
|
|
| |
adapter_buswidth, adapter_softc) from struct scsi_link to struct
scsibus_attach_args.
Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
|
|
|
|
|
| |
adapter_softc, adapter_buswidth) via link->bus rather than using
copies currently residing in the link.
|
|
|
|
|
|
| |
initialize the scsi_link's on the bus. After sucking this information
out of the "prototype" link provided by the scsibus_attach_arg, no
need to keep a pointer to that prototype.
|
|
|
|
|
|
|
|
| |
(ahc(4) and qlw(4)) can just compare the values of the "bus" member
directly.
A slightly different path to the same result that matthew@ traversed
in his work culminating in scsiconf.h r1.146.
|
|
|
|
|
| |
points to the inquiry data contained in the struct scsi_link pointed
to by the other member, sa_sc_link.
|
|
|
|
|
|
| |
'minphys()'. Just use & check for NULL instead, since 'minphys()' is
always called on the code path ([cd|sd|st]minphys) that calls
physio().
|
|
|
|
| |
Comment fixes.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
inadvertantly set on devices for which they are irrelevant or
incorrect. Lets these device operate at full speed.
ok sthen@ deraadt@
|
| |
|
|
|
|
| |
more intuitive locations.
|
|
|
|
| |
SCSIDEBUG.
|
|
|
|
| |
openings, flags and quirks.
|
|
|
|
| |
SPC-5. Add/Fix comments.
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
now unneeded version_to_spc() mapping array, a duplicate #define
and a couple of magic numbers. Toss in some comments for future
generations of spelunkers.
Makes it possible to check for specific SPC versions when new
features or eliminated features require such a check.
No intentional functional change.
|
|
|
|
|
|
|
|
| |
Some cd/sd/safte/ses devices will now be correctly identified as
SCSI-3 and gain all the advantages associated with that lofty
status. e.g. READ CAP 16, REPORT LUNS.
ok deraadt@
|
|
|
|
| |
of SCSISPC() when checking the values of the INQUIRY version field.
|
|
|
|
|
|
|
|
|
|
|
|
| |
scsi_probe() and make scsi_probe_bus(), scsi_probe_target() and
scsi_probe_lun() simple wrappers around scsi_probe().
Abstract the determination of which luns to probe into a separate
function. Thus eliminating the need to remove/add lun 0 link while
probing devices modern enough to support REPORTLUNS. Which means the
lun 0 link is no longer in different positions in the scsi_link list
for such devices compared to older devices which are blindly probed
until an invalid LUN is encountered.
|
|
|
|
|
|
|
| |
scsi_detach(), scsi_detach_target() and scsi_detach_lun() become
simple wrappers of scsi_detach() invocations.
No intentional functional change.
|
|
|
|
|
|
|
|
|
|
| |
version_to_spc() to map the formerly reserved value 0x07 in the
INQUIRY version field to 5 (a.k.a. SPC-5), instead of 0 (a.k.a. device
does not claim support for any SPC version).
Tweak comment for 0x03 mapping to note it means compliance to SPC, not
SPC-3. Tweak comment for 0x06 mappoing to specify the ANSI INCITS
513-2005 that documents SPC-4.
|
|
|
|
|
| |
pretended to care. So just make in a void, and explicitly return 0 in
the appropriate case in scsi_probe().
|
| |
|
| |
|
|
|
|
|
|
|
| |
for each target:lun. Just travese the SLIST once taking care of relevant
scsi_link's as they are encountered.
ok jmatthew@
|
|
|
|
|
| |
adapter_link->adapter_buswidth, which supplied the value for
sc_buswidth and is never changed.
|
|
|
|
| |
variable names into a consistant idiom.
|
|
|
|
| |
declarations.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
'sc_link'. 'sc_link' is a field in the various device *_softc
structures, where the sc_ prefix was for 'softc'. Reduces potential
mental confusion. Newer code from down under was already using
'link'.
No functional change.
Prompted by bluhm@'s adventures in scsi. ok dlg@ jmatthew@
|
|
|
|
|
|
|
|
| |
things by renaming the field 'SLIST_HEAD(, scsi_link) sc_link' to
'sc_link_list' in struct scsibus_softc. Use 'sb' as the short name
for scsibus_softc variables.
Impetus from & ok bluhm@
|
| |
|
| |
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
| |
sys/atomic.h for atomic_setbits_int.
|
| |
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|