summaryrefslogtreecommitdiffstats
path: root/sys/scsi/cd.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add defines for changer mode page codes. Move AUDIO_PAGE define tokrw2019-11-291-2/+2
| | | | nestle amoung its friends.
* 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
|
* nothing needs to see cd_softc except the driver, so move it into cd.cdlg2009-12-161-28/+1
| | | | ok marco@ guenther@
* remove #ifdef CDDA bits cos nothing in cd.c uses it and nothing i can finddlg2009-12-131-7/+1
| | | | defines it.
* prefix all softc members with sc_, not just most of them.dlg2009-12-131-5/+5
|
* move cd(4) from using scsi_scsi_cmd over to scsi_xs_exec for doing io.dlg2009-12-121-1/+5
| | | | | | | | | this brings it in line with the new midlayer changes. mostly borrowed from sd(4) changes. tested by krw@ and me ok krw@
* Revert bufq's. this is inline with the major midlayer reverts thatthib2009-06-171-1/+2
| | | | | | have been going on. this appears to bring us back to stable state. lots of testing by oga and ariane and my self.
* add a flexible buffer queue (bufq) api, based on the never usedthib2009-06-031-2/+1
| | | | | | | | | one by tedu@. It doesn't do anything smart yet, it just uses plain old disksort. we also keep the old method of queueing bufs since some miods have crazy MD drivers that need some love. ok beck@, art@ tested by many on many archs.
* zap some extra spaces and tabs.fgsch2008-07-281-4/+4
|
* fgsch@ points out my last commit changed the retry limit for CD capacitykrw2008-06-211-3/+1
| | | | | | commands. Bump limit back to the standard 4, and at the same time eliminate SDRETRIES and CDRETRIES (both defined to 4) in favour of a new define, SCSI_RETRIES, also defined to 4.
* Eliminate cd_size() and use scsi_size() + tweaked cd_get_params()krw2008-06-211-3/+3
| | | | | | | | | | | | | instead. We do not make use of the PMI and RELADDR bits in the READ CAPACITY command, and thus there is no difference between cd and sd capacity handling. Brings cd and sd more into line, shrinks code and makes things easier to understand. Make types for blocksize and disksize consistant and MI. Make cdopen() as silent as sdopen(). ok marco@
* Nuke unnecessary re-definition of READ_CAPACITY, scsi_read_capacity, andkrw2008-06-171-15/+1
| | | | | | scsi_read_cap_data as READ_CD_CAPACITY, scsi_read_cd_capacity and scsi_read_cd_cap_data respectively. No functional change as all were identical to their counterparts.
* add more struct/define stuff for use in cdiomjc2007-05-271-1/+13
| | | | ok krw@
* Give the SCSI layer the ability to requeue i/o's rejected by a driverkrw2006-12-121-1/+2
| | | | | | | using the new NO_CCB result. Currently a no-op since no driver produces that result. ok dlg@ marco@ deraadt@
* Add cd_powerhook(). Use it to lock CD drives having open partitionskrw2006-07-191-1/+2
| | | | | | | | | when PWR_RESUME occurs. The drives may have forgotten they were locked. Noted and original diff by Alexey Vatchenko. "I agree with the intent." miod@ "Looks acceptable." deraadt@
* add structs and macros for a few MMC commandsmjc2006-06-021-1/+47
| | | | ok krw@
* Zap trailing whitespace.krw2006-05-111-2/+2
|
* Remove NetBSDism NRND. Pointed out by Mickey.krw2006-03-051-5/+1
| | | | ok miod@ marco@
* Move a couple of 2048+4 byte structures from the stack to the heap.krw2005-08-031-1/+18
| | | | | | | Create structures to eliminate 2048+4 magic number everywhere. Mostly adapted from NetBSD. tested by sturm@, beck@. ok beck@
* Remove unused cd_softc.name field. Use the saved INQUIRY data inkrw2005-07-021-2/+1
| | | | | scsi_link to determine device type, rather than keeping a copy in sd_softc.type. Remove unused sd_softc.type field.
* Zap unused member of cd_softc: sc_ops.krw2005-06-271-2/+1
|
* fix include for userland (tsk, tsk, krw).espie2005-06-081-1/+4
| | | | okay pval, nits miod.
* Move definitions of struct cd_softc{} and CDRETRIES from cdvar.h intokrw2005-06-031-1/+33
| | | | | | cd.h. Remove include of cdvar.h from cd.c. cdvar.h becomes expendable. No functional change.
* Kill extra semi-colon. Amazing what lint can find ...krw2005-05-281-2/+1
|
* Convert cd code to new mode sense framework. Merge cd_scsi andkrw2005-05-271-9/+17
| | | | | | cd_atapi into cd since code is now almost identical, and only affects volume adjusting ioctl's. Minor side effect of allowing cd_load_unload() attempts to scsi cd's as NetBSD does.
* Nuke another unused structure.krw2005-04-161-9/+1
|
* Make acd redundant.csapuntz1999-07-201-0/+213
Mostly based on NetBSD-current