summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_disk.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spellingjsg2021-03-121-2/+2
|
* Rename [READ|WRITE]_BIG to [READ|WRITE]_10. Rename struct scsi_rw_big tokrw2020-09-011-4/+4
| | | | | | struct scsi_rw_10. ok gnezdo@ jmatthew@ (who also did sparc64 compile test)
* Check for expected mode sense page code as well as expected mode page length whenkrw2019-12-031-2/+1
| | | | | | constructing the pointer to the page data. Remove now unneeded DISK_PGCODE(). Usual misc whitespace/modernization tweaks to functions being modified.
* Move struct scsi_read_cap_data and struct scsi_read_cap_data_16 tokrw2019-11-251-30/+1
| | | | | | | | | | | | | | | 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.
* Use consistent idiom/naming convention for the the #includekrw2019-09-271-2/+2
| | | | guards. Spelunkers using grep are easily confused.
* Add/tweak #endif comments to make spelunking via grep more rewarding.krw2019-09-271-2/+2
|
* Add new (a.k.a SBC-4) flags/fields to struct scsi_read_cap_16. Adoptkrw2019-09-191-4/+17
| | | | | | more concise nameing convention roughly adopted from FreeBSD as tweaked by SBC-4. Keep older names when they are currently in use elsewhere.
* More damned eye searing whitespace.krw2015-06-071-2/+2
|
* 1 << 31 cleanup. Eitan Adler pointed out that there has been aderaadt2013-11-261-2/+2
| | | | | resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
* typo: thing -> thin provisioningtedu2013-05-301-2/+2
|
* sbc3 defines a thin provisioning vpd pagedlg2011-07-081-1/+17
|
* white space fixesdlg2011-07-081-8/+9
|
* add the UGAVALID flag to the block limits vpd pagedlg2011-07-081-1/+2
|
* descripe a few bits of the write same commands.dlg2010-09-231-1/+6
|
* opcodes, cdbs, and payloads for WRITE SAME 10/16 and UNMAP commands.dlg2010-09-211-1/+45
| | | | ok deraadt@ krw@ matthew@
* i got the order of the bits in the cache page back to front. howdlg2010-09-131-9/+9
| | | | | | embarrsssment. discovered by okan@
* map the ATA data set management stuff (ie, trim) to the SCSI thindlg2010-05-051-1/+3
| | | | provisioning bits in read cap 16
* add support for emulating the disk characteristics and disk limits vpddlg2010-04-031-1/+47
| | | | | | 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.
* disk cache mode pagedlg2010-01-031-1/+24
|
* We only really need to #define SYNCHRONIZE_CACHE 0x35 once.krw2009-06-061-2/+1
|
* Implement disk sizes > 2^32-1. Code modelled on NetBSD.krw2007-06-231-1/+2
| | | | Tested, tweaked and ok otto@
* The beginnings of support for 16-byte cdb's in the scsi code. This isweingart2007-04-121-6/+47
| | | | | | | so we will be able to address devices larger than the 10-byte cdb's allow us to do. ok krw@, dlg@
* Don't fake MODE SENSE page 4 info inside raid drivers, just let sdkrw2005-09-151-9/+1
| | | | | | | 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.
* Some devices go berserk when asked for mode sense pages they don'tkrw2005-08-211-3/+3
| | | | | | | | | | | | 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@
* Use defines for disk mode page codes. Check returned mode pages tokrw2005-08-171-2/+7
| | | | | | | ensure they are the ones requested. No functional change unless garbage was being returned. ok marco@
* Move disk mode page structure declarations out of scsi_disk_pageskrw2005-08-121-72/+81
| | | | | | | | union declaration to allow pointers to individual page types. Simplify sd.c code by using individual page type pointers. No functional change. ok tdeval@
* Add missing reserved byte to page_disk_format struct inkrw2005-07-031-1/+2
| | | | scsi_disk_pages union. From FreeBSD and SCSI spec.
* Introduce safer, more general mode sense capability. Transparently usekrw2005-05-251-7/+1
| | | | | | | | | | | | 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@
* try to devise drive's rpm and default to 3600 should we fail miserably.mickey2003-06-241-3/+2
| | | | | derived from pr2815 from Marco Peereboom krw@ deraadt@ ok
* Fix/Cleanup some SCSI #defines.krw2002-12-151-12/+2
| | | | | | | | | 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@
* Add support for RBC (simplified direct) devices.tdeval2002-09-041-1/+15
| | | | ok costa@, krw@
* KNFderaadt2001-06-221-11/+11
|
* Prepend SCSI_ to some of the SCSI opcodes to aid in sharing code w/NetBSDcsapuntz2001-01-291-1/+7
|
* spellingtodd2001-01-251-2/+2
|
* Added type field to scsi_addr to reflect bus/device type (ATAPI or SCSI).csapuntz1999-08-241-1/+7
| | | | | | Updated ioctls to match Minor patches in anticipation of wd->sd translation layer
* Merge sd stuff from NetBSD-current. Helps with LS-120, ZIPcsapuntz1999-07-251-7/+115
| | | | | | More SCSI logic from NetBSD-current Some tape fixes. ATAPI tapes do not work yet for most operations.
* Merge in various pieces of current NetBSD scsi code, including but not limiteddownsj1997-04-141-37/+30
| | | | | | | | | | | | 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.
* $OpenBSD RCSIDs + comment fix in sd.cniklas1996-10-311-0/+1
|
* NetBSD PR#2535: add mode sense 5 and floppy support in our framework.downsj1996-06-161-0/+37
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-102/+64
|
* from netbsd; flesh out the mode pagesderaadt1995-12-141-1/+10
|
* initial import of NetBSD treederaadt1995-10-181-0/+208