Home | History | Annotate | Download | only in scsipi
History log of /src/sys/dev/scsipi/scsipi_cd.h
RevisionDateAuthorComments
 1.21  01-Apr-2009  reinoud Implement MMC_TRACKINFO_DATA and MMC_TRACKINFO_AUDIO detection for cdrom and
dvdrom devices. These two compatibility codes were forgotten when those were
introduced.
 1.20  08-Sep-2008  gmcgarry branches: 1.20.2; 1.20.4; 1.20.8;
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
 1.19  02-May-2008  reinoud branches: 1.19.2; 1.19.6;
Add definitions for the close track/session, reserve track and repair
track SCSI commands.
 1.18  25-Dec-2007  perry branches: 1.18.6; 1.18.8; 1.18.10;
Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h
 1.17  01-Dec-2006  martin branches: 1.17.24; 1.17.30; 1.17.34; 1.17.38;
On Christos' request, reinstantiate the packed->__packed__ part of the
backed out change.
 1.16  01-Dec-2006  martin Back out align(4) for all struct decls - it breaks various things all
over the tree (for example esiop on sparc64 won't boot any more).
 1.15  30-Nov-2006  christos PR/34202: Dave Huang: Accessing cd device on alpha causes kernel trap

From the PR:
Since struct scsipi_read_discinfo_data is an odd number of bytes long
(35 bytes), ti ends up being unaligned. wdc_datain_pio() uses
bus_space_read_multi_4() to read the response from the drive, and
since ti is unaligned, it causes an unaligned access fault.

Add __aligned__(4) to all the structures.
 1.14  20-Dec-2005  reinoud branches: 1.14.20; 1.14.22;
The as `unused' specified field in the readdiscinfo SCSI command is really
application_code to be able to write to -RW media when its in restricted
mode.
 1.13  11-Dec-2005  simonb Remove blank line added to end of file by previous change.
 1.12  11-Dec-2005  reinoud Add SCSI calls for read discinfo and read trackinfo. Also add the various
read toc formats returned.
 1.11  11-Dec-2005  christos merge ktrace-lwp.
 1.10  01-Feb-2005  reinoud branches: 1.10.6;
Backing out changes to clean up scsipi. I was pointed out there were
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.
 1.9  31-Jan-2005  reinoud Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.
 1.8  30-Jan-2005  reinoud The code asumes all programs want to know is TOC response format 0. Support
for TOC response format 1 and 2 are mandatory on CD/DVD too and provide
more information.

Next an IOCTL needs to be implemented that can read all TOC formats in a
generic way. This is pending.
 1.7  07-Sep-2003  mycroft branches: 1.7.8; 1.7.10;
Set PQUIRK_ONLYBIG in the wdc-atapi frontend, obviating the need to ever test
the "bus type" for this.

Merge all the code in the SCSI and ATAPI backends for "cd" devices. All of
the mode page handling and whatnot is general to SCSI MMC devices, and should
never have been separated to begin with. This fixes a variety of problems,
and adds load/unload support for SCSI-attached devices.
 1.6  02-Sep-2001  thorpej branches: 1.6.20;
Centralize the definition of the page code mask and page-savable bit
in the pages returned by MODE SENSE.
 1.5  13-Feb-1998  enami branches: 1.5.26; 1.5.28;
Backout previous change, and rather, remove all protection but the one
actually currently required. Suggested by Charles M. Hannum.
 1.4  13-Feb-1998  enami Fix or add protection for mutiple inclusion.
 1.3  01-Oct-1997  enami Cosmetic changes to keep coding style consistency in this directory;

- Indent with tab of width 8.
- Use four column to indent continuation line.
- Fold long line if possible.
- Use return (xx) instead of return xx.
- Compare pointer against NULL instead of testing like boolean.
- Delete whitespace at the end of line.
- Delete whitespace in front of function call operator.
- Delete whitespace after cast.
- Dereference a pointer to function explicitly.
- Add an empty line after local variable declaration.
- Use NULL instead of (char *)0.
- Dont use block for single statement.
 1.2  27-Aug-1997  bouyer branches: 1.2.2;
Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.
 1.1  01-Jul-1997  bouyer branches: 1.1.2;
file scsipi_cd.h was initially added on branch bouyer-scsipi.
 1.1.2.2  01-Jul-1997  thorpej Purely cosmetic formatting changes: some spaces -> tabs, indenting
consistency in prototypes.
 1.1.2.1  01-Jul-1997  bouyer New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
scsibus at aha
sd at scsibus
cd at scsibus
atapibus at wdc
cd at atapibus
cd has bus-specific config and function front-end in scsicd.c and atapicd.c
The call to theses functions from cd.c is conditionned to
NSCSICD and NATAPICD (all defined in cd.h by config).
 1.2.2.3  14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.2.2.2  27-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.2.2.1  27-Aug-1997  thorpej file scsipi_cd.h was added on branch marc-pcmcia on 1997-08-27 23:33:25 +0000
 1.5.28.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.26.1  21-Sep-2001  nathanw Catch up to -current.
 1.6.20.4  04-Feb-2005  skrll Sync with HEAD.
 1.6.20.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.20.2  18-Sep-2004  skrll Sync with HEAD.
 1.6.20.1  03-Aug-2004  skrll Sync with HEAD
 1.7.10.1  12-Feb-2005  yamt sync with head.
 1.7.8.1  29-Apr-2005  kent sync with -current
 1.10.6.3  21-Jan-2008  yamt sync with head
 1.10.6.2  30-Dec-2006  yamt sync with head.
 1.10.6.1  21-Jun-2006  yamt sync with head.
 1.14.22.1  10-Dec-2006  yamt sync with head.
 1.14.20.1  12-Jan-2007  ad Sync with head.
 1.17.38.1  02-Jan-2008  bouyer Sync with HEAD
 1.17.34.1  26-Dec-2007  ad Sync with head.
 1.17.30.1  18-Feb-2008  mjf Sync with HEAD.
 1.17.24.1  09-Jan-2008  matt sync with HEAD
 1.18.10.2  04-May-2009  yamt sync with head.
 1.18.10.1  16-May-2008  yamt sync with head.
 1.18.8.1  18-May-2008  yamt sync with head.
 1.18.6.2  28-Sep-2008  mjf Sync with HEAD.
 1.18.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.19.6.1  19-Oct-2008  haad Sync with HEAD.
 1.19.2.1  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.20.8.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.4.1  08-Apr-2009  snj Pull up following revision(s) (requested by reinoud in ticket #633):
sys/dev/scsipi/cd.c: revision 1.291
sys/dev/scsipi/scsipi_cd.h: revision 1.21
Implement MMC_TRACKINFO_DATA and MMC_TRACKINFO_AUDIO detection for cdrom and
dvdrom devices. These two compatibility codes were forgotten when those were
introduced.
 1.20.2.1  28-Apr-2009  skrll Sync with HEAD.

RSS XML Feed