Commit Graph

29 Commits

Author SHA1 Message Date
rocky
3466eeb8cd sunos -> solaris. lsn -> i_lsn 2005-03-03 08:43:39 +00:00
rocky
881d4fcf8f mmc.c: fix up read_audio_subchannel_mmc
audio.h: more direct field names
mmc.h: add mmc_subchannel_t;  scsi_mmc -> mmc
cdio-linux.c: remove deprecated from_bcd8
2005-03-01 10:53:15 +00:00
rocky
cd328dac84 Report ability to read MCN.
Add MMC routine to read audio subchannel.
2005-03-01 09:33:52 +00:00
rocky
126777b282 _cdio_sunos.c: add audio routines.
_cdio_linux.c: small formatting changes.
2005-03-01 08:14:09 +00:00
rocky
18392b405f Fix up read_data_sectors by using generic cooked routine. 2005-03-01 01:09:53 +00:00
rocky
039ff7c756 Bug in setting blocksize - wasn't using passed parameter. 2005-02-25 10:22:48 +00:00
rocky
2d41f7dc42 Add read_data_sectors 2005-02-19 00:58:12 +00:00
rocky
e491ba74d6 Use solaris ioctl for blocksize set/get. Prototype corrections. 2005-02-10 11:23:08 +00:00
rocky
2860cea4cb lib/drivermmc.{c,h}: Add mmc_have_interface() to see if we've got SCSI
or ATAPI or whatever.

cdda_interface: Use mmc_have_inteface() we don't have anything for
this except in GNU/Linux. May reduce the unnecessary data_bigendianp()
calls which cause lots of disc reading.

Turn #defines for MMC Profiles into enumeration.
Add enumeration for "core" interface types

#include <cdio/scsi_mmc.h> -> #include <cdio/mmc.h>
2005-02-07 03:36:01 +00:00
rocky
12186bc043 iso9660_fs.c: wrong order of initialization.
correct types on get_media_changed_mmc
Solaris fixes.
2005-02-06 11:32:22 +00:00
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
f1d3b190ba remove cdio_malloc and replace with calloc which does functionally
exactly the same thing (but is standard). In some drivers _data -> p_data.
2005-02-03 07:35:14 +00:00
rocky
d3935f0c87 Wrong return type. 2005-01-24 00:10:46 +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
19856a30da Change read routines so the use the driver_return_code_t enumeration.
It's a little cleaner and may make things clearer in debugging.
2005-01-23 19:16:58 +00:00
rocky
09c1a1d180 Valgrind-caught memory leak. 2005-01-23 04:53:31 +00:00
rocky
51639aaa86 Remove a number of const's since Darwin's run_scsi_mmc doesn't work
that way :-(
2005-01-21 20:54:55 +00:00
rocky
688c30e66a Move some of the "generic" routines using MMC into SCSI-MMC. Think is a
little bit clearer and cleaner.
2005-01-21 02:59:32 +00:00
rocky
d6b930e6cc Add get_blocksize. There may be some breakage as I haven't tested all of the
various drivers yet.
2005-01-20 05:07:00 +00:00
rocky
bd333bc73f Move a set_speed and set_blocksize (via MMC)from driver-specific
places to generic.

Add _t to yet another type.
2005-01-20 01:00:52 +00:00
rocky
f7ebed2287 Add DRIVER_OP_UNINIT and change appropriate DRIVER_OP_ERROR's to
DRIVER_OP_UNINIT.
2005-01-20 00:36:38 +00:00
rocky
9b8586d97f Change to use driver_return_t. 2005-01-19 09:40:50 +00:00
rocky
3a99718830 Add set_speed for Solaris via ioctl and set_blocksize via SCSI-MMC.
Update comments in GNU/Linux driver.
2005-01-18 01:48:42 +00:00
rocky
17c55ea59b add _t to another time. driver_id inside p_cdio wasn't initialized. 2005-01-17 17:20:09 +00:00
rocky
b33726b00e Fix my recent breakage in adding back GNU/Linux endian determination.
Need to seet nsectors if not GNU/Linux. Some lint things for non-GNU/Linux.
2005-01-09 01:50:56 +00:00
rocky
64addbf50c Fix a bad bug where we were requesting potentially a huge number of blocks
(-1 unsigned). Fix both the driver to disallow such a nonsensical thing as well
as just don't make the request.
2005-01-09 00:47:07 +00:00
rocky
6c20c2ee86 Add common routine for setting track flags. 2005-01-01 15:08:48 +00:00
rocky
1022ccd689 Add track flags for solaris. Regression test without vcdinfo corrected. 2004-12-31 08:27:49 +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