Commit Graph

1238 Commits

Author SHA1 Message Date
rocky
1e45b03013 cdio.c: missing string for discmode enumeration.
_cdio_osx.c: fix a couple of bus faults. Detects DVD-RW properly now.
  Better error message for failing to read TOC.
2004-08-29 03:45:34 +00:00
rocky
61374f1161 CD-ROM media type does not indicate whether a CD is CD-DA or CD-DATA 2004-08-29 03:05:53 +00:00
rocky
01f832bdc1 Better error reporting when TOC reading fails. Well at least we try to
do better.
env -> p_env some places.
2004-08-29 02:31:34 +00:00
rocky
1db61171af Some cleanups, possibly bug fixes. Hack in optimistic guess for drive properties. 2004-08-28 16:06:25 +00:00
rocky
1949a54ec9 _cdio_osx.c: add getting hw info. Get some read/write capabilities and
disc info.

*generic*: split off CD discmode classification so it can be used by
OSX

cdio: env -> p_env
2004-08-28 09:15:41 +00:00
rocky
19991ded7b add psz_ to hwinfo type.
_cdio_linux.c: go back to using SCSI MMC drive cap routine.
2004-08-27 11:53:38 +00:00
rocky
945338288f Add constant variable to indicate which OS driver we've got in build. 2004-08-27 11:23:40 +00:00
rocky
7454e4375e Add a couple of routines to pass back the driver used in getting a
drive.  Speeds up a little the task of opening the drive. Is now used
in cd-drive and cd-info.
2004-08-27 04:17:08 +00:00
rocky
8b61fa9ea5 Use generic SCSI MMC code for getting drive capabilities. 2004-08-27 04:12:29 +00:00
rocky
34d045e2be Wrong access for setting drive capabilites to unknown. 2004-08-27 02:59:25 +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
fb3d481d96 scsi_mmc.c: more aggressive about getting drive capabilites. Try to
get length first. Also try CAPABILITIES_PAGEs as well as ALL_PAGEs.
2004-08-27 01:24:40 +00:00
rocky
66b7f9c003 Devices list fixed, compilation error and give up on drive capabilities for now 2004-08-27 00:03:05 +00:00
rocky
df2eb98bad Small variable name changes 2004-08-26 10:44:38 +00:00
rocky
86903bbb75 Small formatting changes 2004-08-26 10:43:36 +00:00
rocky
7161a0da11 Save more IOkit information in private structure and separate this
from reading TOC.

Many small changes that I hope will eventually get us closer to
getting more drive and CD information although for now it doesn't help
all that much.
2004-08-22 00:43:07 +00:00
rocky
eacbfd3f9d Partial OSX improvements -- more work is needed. 2004-08-19 04:01:34 +00:00
rocky
df540d7da5 Make sure pp_scsiTaskDeviceInterface is initialized. The code should
probably be reorganized better for this. For now this probably works.
2004-08-18 11:31:58 +00:00
rocky
3d6d01ddbd Set toc_init even on image drivers. Never know when the could will
start needing this, but may as well do now.
2004-08-16 02:04:08 +00:00
rocky
8ddd3bf19f Initialize gen.toc_init 2004-08-16 01:47:49 +00:00
rocky
499f3f1dbe Forgot to init CD-Text variables. 2004-08-16 01:04:26 +00:00
rocky
c8000d60e9 _cdio_osx.c: first attempt at issuing general SCSI-MMC passthrough command.
others: small changes.
2004-08-16 00:52:53 +00:00
rocky
ff65f7133f First attempt at getting drive capabilities. 2004-08-15 16:15:40 +00:00
rocky
887a3254c5 Compilation fix. 2004-08-15 13:53:03 +00:00
rocky
cf7b5e9bf4 Merge common cdtext code into image drivers. 2004-08-13 13:04:37 +00:00
rocky
7bba78007e Compilaton fixes. 2004-08-13 11:54:15 +00:00
rocky
b9da06c3b5 Now that all of the generic cdtext code is in place, it is trivial to add CD-Text support to FreeBSD. 2004-08-10 12:14:45 +00:00
rocky
d1ea5b8e5e typo. 2004-08-10 12:09:20 +00:00
rocky
6725196b0f lib/*.c: create and use get_cdtext_generic.
lib/generic.h: prototypes for _cdio_generic.c (move out of _cdio_private.h)

example/sample10.c, src/util.c: small print format improvement
2004-08-10 11:58:14 +00:00
rocky
f989d329a7 Compilation fixes for Win32 and cd-text breakage. 2004-08-10 03:44:55 +00:00
rocky
72409ca899 Compilation fixes from cd-text breakage. Also make style more like
the others.
2004-08-10 03:37:16 +00:00
rocky
2da73da448 compilation fix 2004-08-10 03:10:46 +00:00
rocky
e39890f7c8 1st attempt to reduce duplicate CD-Text code. (It works on GNU/Linux)... 2004-08-10 03:03:27 +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
ac7276d325 Pedantic alphabetization. 2004-08-08 14:55:35 +00:00
rocky
08e99d720d Compilation fixes. 2004-08-08 00:20:21 +00:00
rocky
2ed97633f7 Make like the others. 2004-08-07 23:17:36 +00:00
rocky
87f0c9334f Add b_cdtext_init and b_cdtext_error to generic structure. If we
can't read cdtext once, mark as an error and don't try to read again.
2004-08-07 22:58:51 +00:00
rocky
2526491232 Attempt getting disc mode. 2004-08-07 10:20:40 +00:00
rocky
c10819c3e6 FreeBSD and gcc < 3.0 fixes
Some variable name changes to match style.
2004-08-07 09:42:34 +00:00
rocky
cecb0b1292 Compilation bug: need the conversion assignment. 2004-08-07 09:25:49 +00:00
rocky
331c244177 small changes. 2004-08-06 22:13:14 +00:00
rocky
db5ed09ce8 win32.c: initialize capabilities before setting them.
util.c: typo was using read parameter for determining CD-RW writing.
2004-08-06 14:27:33 +00:00
rocky
476e01137a Don't need to call initialization of TOC here. Was done to mask a bug
somewhere else that has since (I think) been fixed.
2004-08-05 04:01:35 +00:00
rocky
ef9b5810fd As with Win32 was passing the wrong pointer (p_cdio instead of
p_env).  CD-TEXT now sometimes works on GNU/Linux!
2004-08-05 03:58:46 +00:00
rocky
0ef9d59d3c Up the timeout. Seems to work a little better. Probably also need
either to retry or try a timeout of 0.
2004-08-05 03:49:37 +00:00
rocky
f9fe21cb6a Was passing in the wrong pointer (p_cdio instead of p_env) 2004-08-05 02:58:46 +00:00
rocky
62d49b41f5 Initialization bugs. 2004-08-03 12:45:40 +00:00
imacintosh
3485f85eba Now uses DKIOCGMEDIAINFO to get discmode and handles Soalris media 2004-08-03 11:30:42 +00:00
rocky
37e8226f21 Compilation fix. 2004-08-01 11:51:20 +00:00