Commit Graph

44 Commits

Author SHA1 Message Date
rocky
71a71d7f56 Start to implement ability to a detect media change.
scsi_mmc -> mmc. Warning: some breakage may occur.
2005-02-06 11:13:37 +00:00
rocky
81e6bf4c95 Move discmode things out of sector and over to disc.h and disc.c. 2005-02-05 14:42:28 +00:00
rocky
8ad5e4cbb0 Doxygen changes. 2005-01-29 20:54:20 +00:00
rocky
798929000d stat_size -> get_disc_last_lsn. Now returns lsn_t and CDIO_INVALID_LSN
on error.

Add MMC version of get_disc_last_lsn.

More regularization of driver_return_code_t and get_disc_last_lsn

There's probably some small driver breakage which will be fixed soon.
2005-01-24 00:06:31 +00:00
rocky
1b48133934 Turn a bunch of defines into an enumeration. Makes debugging a bit
nicer.
2005-01-20 04:46:25 +00:00
rocky
93d29803c0 Attempt SCSI-MMC speed setting (e.g. for M$). 2005-01-18 05:41:58 +00:00
rocky
e5bdc956e9 Add interface for setting speed and blocksize. Reinstated it in
cd-paranoia libraries and command.

Some more variable convention regularizations.
2005-01-18 00:57:19 +00:00
rocky
7a2a44a814 The first all libcdio cdda_interface. There are some gaps could be
filled.

cdda_inteface.h renamed to cdda.h

cdio_destroy moved from cdio.h to device.h
2005-01-05 04:16:11 +00:00
rocky
6c14d28918 BIG REORGANIZATION.
Reorganize directory structure for inclusion of cd-paranoia. Works for
GNU/Linux. Other OS's may be broken. Regression test output needs to
be adjusted too.

Move:
lib/driver (split off of lib)
lib/iso9660 (split off of lib)

Add from paranoia:
lib/cdda_interface
lib/paranoia
src/paranoia

Also made some small changes to capability indentification to show
more reading capabilties and show that.

cd-info now shows the total disc size.
2004-12-18 17:29:32 +00:00
rocky
d0ec7d55fd Small typo. 2004-12-04 12:01:48 +00:00
rocky
2334c3c7cc Move scsi mmc discmode determination to scsi-mmc.
Add discmode for CD-i.
2004-12-04 11:50:40 +00:00
rocky
d9c63df6ce Changes to make doxygen doc better. 2004-09-04 23:49:47 +00:00
rocky
758f954e1f Expose hwinfo call as a cdio command. It was SCSI-MMC. This may help
on OSX.
2004-08-27 02:50:13 +00:00
rocky
993ec7356f Add a couple of "features".
freebsd_ioctl.c: hopefully less-erroneous MCN extraction.
2004-08-10 02:29:46 +00:00
rocky
1fb9bce71d Add more feature codes. 2004-08-07 03:25:25 +00:00
rocky
18411a8764 util.*, cd-drive: Add feature listing to cd-drives.
sample10.c: More feature information printed

scsi_mmc.h: more doxygen comments about features.
2004-08-07 01:48:36 +00:00
rocky
331c244177 small changes. 2004-08-06 22:13:14 +00:00
rocky
32a4b63410 Add more feature definitions. 2004-08-06 22:08:07 +00:00
rocky
50da1b5c16 Fill out GET_CONFIGURATION - add some feature info and return types. 2004-08-06 11:55:16 +00:00
rocky
03562c49b2 Add GET_CONFIGURATION. 2004-08-01 11:29:13 +00:00
rocky
b1616ea6d5 Add scsi_mmc_get_hwinfo. 2004-07-31 07:43:26 +00:00
rocky
dc3073165c Add lengths of hardware vendor, model, and revision. 2004-07-29 05:31:27 +00:00
rocky
0d8a3e2a82 Tighten code by putting more generic routines in cdio_generic:
to get first track number and number of tracks
  to get discmode

everybody now has gen.i_tracks and gen.i_first_track.

test/* format of output changed yet again.
2004-07-29 02:16:20 +00:00
rocky
5c26700f3e Make setting read lengths more precise (and correct). 2004-07-28 11:45:21 +00:00
rocky
7716188c38 Make sure milliseconds get converted to seconds if needed.
Some function renaming, and a typo in a DVD book type.
2004-07-28 01:09:59 +00:00
rocky
c0c0077f3d Yet more alternate "_generic" to simplify CD-ROM drivers (like all of them
except Windows) were there is in fact only one MMC passthrough command.
2004-07-27 02:45:16 +00:00
rocky
db337e5665 More consolidation of code by adding routines to scsi_mmc. 2004-07-27 01:06:01 +00:00
rocky
50532e7025 Try to make get_dvd_physical a common routine. (Haven't tested yet.) 2004-07-26 03:58:25 +00:00
rocky
20e8974df8 Big change!
We now are starting to have universal MMC routines. To do this we need
to have function pointers to the OS-specific MMC send/run command.

Expect some breakage. Down the line though this will increase code reuse,
reliabilty, and make the library more user-customizable.
2004-07-26 02:54:37 +00:00
rocky
39ed5a3421 Typo 2004-07-25 16:38:05 +00:00
rocky
f7348fbddc Changes to facilitate DVD detection. 2004-07-25 03:17:47 +00:00
rocky
46afdac583 Formatting and small name change. 2004-07-23 11:29:49 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +00:00
rocky
69da7d3a65 Add more SCSI MMC-3 commands 2004-07-21 11:07:27 +00:00
rocky
02872bfb2f Add get_discmode to return what kind of CD or DVD we've got. This is
no where near finished. In fact I just started it on GNU/Linux.

CD-TEXT on GNU/Linux: turn "warning" into "info". Reduce the chance of
error (although we still don't get the CD-TEXT.)
2004-07-21 10:19:20 +00:00
rocky
8a99889f49 Add READTOC format defines. 2004-07-19 01:13:31 +00:00
rocky
e84c6316b0 Expand getting drive capabilities. We now have 3 masks where we had
only one before.
2004-07-17 22:16:46 +00:00
rocky
4058457e52 Sun drive capabilities improved. Sun and Windows ASPI use common
MODE_SENSE defines defines now.
2004-07-08 06:29:45 +00:00
rocky
65fd7d3b43 Regularize MMC commands more. Add ALLOW_PREVENT_MEDIUM.
Start CDTEXT. _cdio_linux.c: better at reporting errors.
2004-07-08 01:27:57 +00:00
rocky
f313c9f68b Add common SCSI MMC routine for getting drive capabilities. 2004-06-27 22:00:08 +00:00
rocky
6bf47238f6 configure.ac: we're now in 0.70cvs
scsi_mmc.h: add doxygen comment.
2004-06-26 01:08:46 +00:00
rocky
e48c1e051f scsi_mmc.h: add definition for SET_SPEED
types.h: add size of MCN.
2004-05-26 06:29:15 +00:00
rocky
3f6cba2b0a - Redo types of lsn and lba to allow negative values. Should model MMC3
specs. Add max/min values for lsn.
- More complete MMC command set
2004-05-11 02:15:42 +00:00
rocky
aab600b46a Make scsi_mmc.h public. 2004-05-10 03:28:51 +00:00