| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
struct scsi_rw_10.
ok gnezdo@ jmatthew@ (who also did sparc64 compile test)
|
|
|
|
|
|
| |
constructing the pointer to the page data. Remove now unneeded DISK_PGCODE().
Usual misc whitespace/modernization tweaks to functions being modified.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
guards. Spelunkers using grep are easily confused.
|
| |
|
|
|
|
|
|
| |
more concise nameing convention roughly adopted from FreeBSD as
tweaked by SBC-4. Keep older names when they are currently in use
elsewhere.
|
| |
|
|
|
|
|
| |
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
ok deraadt@ krw@ matthew@
|
|
|
|
|
|
| |
embarrsssment.
discovered by okan@
|
|
|
|
| |
provisioning bits in read cap 16
|
|
|
|
|
|
| |
pages. this if the first step in figuring out if disks use a different
physical block size compared to the logical block size they present to the
operating system.
|
| |
|
| |
|
|
|
|
| |
Tested, tweaked and ok otto@
|
|
|
|
|
|
|
| |
so we will be able to address devices larger than the 10-byte cdb's allow
us to do.
ok krw@, dlg@
|
|
|
|
|
|
|
| |
fake a geometry. Page 4 info does not get used for size information.
Eliminate now unused union scsi_disk_pages.
ok marco@ mickey@ pre-lock.
|
|
|
|
|
|
|
|
|
|
|
|
| |
have. Some devices return four bytes less information than requested
for the PAGE_RIGID_GEOMETRY page. Put the two together and older
Conner drives don't work because we rejected the short page and asked
for the PAGE_FLEX_GEOMETY page. Noted by hshoexer@ and kettenis@.
Also should fix the problems with a device miod@ reported that did a
similar short PAGE_FLEX_GEOMETRY.
ok deraadt@
|
|
|
|
|
|
|
| |
ensure they are the ones requested. No functional change unless
garbage was being returned.
ok marco@
|
|
|
|
|
|
|
|
| |
union declaration to allow pointers to individual page types. Simplify
sd.c code by using individual page type pointers. No functional
change.
ok tdeval@
|
|
|
|
| |
scsi_disk_pages union. From FreeBSD and SCSI spec.
|
|
|
|
|
|
|
|
|
|
|
|
| |
both 10 byte and 6 byte MODE SENSE commands and just return error
checked values.
Convert sd_scsi.c to use new mechanism for non-optical drives. USB
umass devices will now display actual mode sense info if it is
available via a 10 byte MODE SENSE. Which may mean 0 heads, etc. is
shown until cosmetics are finalized.
ok marco@ 'that is pretty cool' deraadt@
|
|
|
|
|
| |
derived from pr2815 from Marco Peereboom
krw@ deraadt@ ok
|
|
|
|
|
|
|
|
|
| |
1) Correctly define MODE_SENSE_BIG as 0x5a, not 0x54.
2) Delete duplicate #define's of some opcodes in scsi_disk.h.
3) Delete multiple #define's for same opcode in scsi_disk.h.
4) Replace uses of deleted opcodes in umass.c with remaining ones.
ok millert@ tdeval@
|
|
|
|
| |
ok costa@, krw@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Updated ioctls to match
Minor patches in anticipation of wd->sd translation layer
|
|
|
|
|
|
| |
More SCSI logic from NetBSD-current
Some tape fixes. ATAPI tapes do not work yet for most operations.
|
|
|
|
|
|
|
|
|
|
|
|
| |
to:
* New changer driver.
* Better optical support.
* Different `done' semantics.
* New quirks for SCSI QIC tape driver, SCSI floppy drives.
* Better support for SCSI-I devices.
Everybody needs to test this.
|
| |
|
| |
|
| |
|
| |
|
|
|