| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
'adapter_target' to a value greater than or equal to
'adapater_buswidth' to allow all possible targets to be probed.
Add SDEV_NO_ADAPTER_TARGET (0xffff), a value guaranteed to
be greater than or equal to the u_int16_t 'adapter_buswidth'.
ok dlg@ as part of a larger diff.
|
|
|
|
|
|
|
|
|
| |
than scsi_mode_header[_big] pointers to the same data.
Continues the umtamgling and simplification of the mode sense code.
CID 1491299
CID 1491297
|
|
|
|
|
|
| |
rather than after the only invocation.
No functional change.
|
|
|
|
|
|
| |
always sizeof(struct scsi_mode_sense_buf).
No functional change.
|
|
|
|
|
|
|
|
| |
xs->timeout.
Just set xs->timeout to 20000 and drop the parameter.
No functional change.
|
|
|
|
|
|
| |
detecton of a 0 value.
CID 1488899
|
|
|
|
|
|
|
|
|
|
|
| |
throat of physio().
Allows individual devices to eventually be modified to support larger
physio() (a.k.a. 'raw') i/o's if they prove capable of them.
No immediate functional change.
Tested for many weeks by and ok robert@.
|
|
|
|
| |
the relationships between various scsi structs.
|
|
|
|
| |
check dev_minphys for NULL before calling it.
|
|
|
|
|
|
| |
'minphys()'. Just use & check for NULL instead, since 'minphys()' is
always called on the code path ([cd|sd|st]minphys) that calls
physio().
|
|
|
|
|
|
|
| |
obvious by consistently using the variable names and idiom of
sdminphys.
No functional change.
|
|
|
|
|
|
|
|
| |
inducing. Rename scsi_adapter member 'scsi_minphys' to 'dev_minphys'
to reflect what it is supposed to do. Use consistent naming convention
(<dev>_minphys) for the actual device functions.
No functional change.
|
|
|
|
|
|
| |
Will allow simplification of individual driver *minphys() functions.
ok jmatthew@ as part of larger diff
|
|
|
|
| |
ok tedu@ krw@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
in drivers. Terse one liners, NULLs instead of 0's, explicitly specify
all members, etc.
Nuke #ifdef notyet blocks related to the scsi_adapter in aic.
No intentional functional change.
ok tedu@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we want to sleep for a multiple of seconds we can do that without
involving lbolt.
This may cause some paths to sleep longer than they have on average,
as sleeping on lbolt wakes you up within one second, not after one
second. If this is a problem we will need to shorten the intervals
given to scsi_delay().
With insight from deraadt@.
ok krw@
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
Comment fixes.
|
|
|
|
| |
not attempted.
|
|
|
|
|
|
|
|
|
|
|
| |
pointers returning possible block descriptor values for block size,
block count and density. Most calls were passing "NULL, NULL, NULL"
since they did not care.
Call scsi_parse_blkdesc() directly in those few cases where one or
more of the values is of interest.
No intentional functional change.
|
|
|
|
|
| |
always pass 0. i.e. never disable block descriptors, never accept
long LBA values.
|
|
|
|
|
|
|
| |
scsi_mode_sense_page() and scsi_mode_sense_big_page() into
scsi_base.c.
They are just internal helper functions for scsi_do_mode_sense().
|
|
|
|
| |
ok krw@, jca@
|
|
|
|
|
|
| |
constructing the pointer to the page data. Remove now unneeded DISK_PGCODE().
Usual misc whitespace/modernization tweaks to functions being modified.
|
| |
|
|
|
|
| |
not the number of bytes that were available in the buffer.
|
|
|
|
| |
obtained by scsi_inquire_vpd().
|
|
|
|
| |
field names in sense mode structs.
|
|
|
|
| |
'const' from the only two 'const int' instances.
|
| |
|
|
|
|
| |
do the same check before invoking it.
|
|
|
|
| |
nestle amoung its friends.
|
| |
|
| |
|
|
|
|
| |
Sets up some simplifications.
|
|
|
|
| |
Discovered by and ok tim@
|
|
|
|
|
|
|
|
|
|
| |
scsi_do_mode_sense(). Just update the values when valid data is
available. Initialize the variables passed to scsi_do_mode_sense() in
the one instance where they weren't already set.
Fixes issue with softraid crypto volumes on 4K-sector disks.
Found, fix tested, and ok tim@
|
|
|
|
| |
More careful initialization, better error/debug messages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
scsi_all.h.
Add scsi_read_cap_10() and scsi_read_cap_16() functions to
scsi_base.c, i.e. move logic to do actual READ_CAPACITY commands out
of sd_read_cap() and sd_read_cap_16().
This will allow the READ_CAPACITY code to be reused by cd(4).
Return -1 for errors where the error code is just discarded, reducing
ENOMEM, ENXIO, EIO uses.
No intentional functional change.
|
| |
|
| |
|
| |
|
| |
|