Commit Graph

57 Commits

Author SHA1 Message Date
rocky
336970c6e3 We use p_env now. 2004-07-25 16:16:55 +00:00
rocky
98cd2e0e62 Remove duplicate toc_init field and use gen.toc_init like other
drivers use.
2004-07-25 15:40:02 +00:00
rocky
18d135a99b Set initialization of TOC when that's done. Test for TOC
initialization success in routines that depend on that.
2004-07-25 11:15:08 +00:00
rocky
803470bfe1 Add some checks for failed initialization and NULL pointers. Thanks
to Steve Schultz.
2004-07-25 09:39:40 +00:00
rocky
c81ea6b678 FreeBSD compilation fixes. 2004-07-24 11:50:50 +00:00
rocky
04cb45f9ee Allow scsi mmc commands to get invoked from outside (for CAM access). 2004-07-24 06:06:22 +00:00
rocky
3087bc0784 Add get_drive_cap and generic get_mcn routines. 2004-07-24 05:57:20 +00:00
rocky
8ec061202a freebsd: add scsi_mmc_cmd_run and use it.
Others: small changes.
2004-07-24 05:42:09 +00:00
rocky
cc3c3fa4db Typo. 2004-07-23 23:46:53 +00:00
rocky
3fe90481c1 Reinstate MCN guess. 2004-07-23 10:43:21 +00:00
rocky
3263eeefae Work on SCSI MMC layer. Some things may be broken. 2004-07-22 09:52:17 +00:00
rocky
fa0d5bf3d9 Initialize/null out drive capabilities before setting them. 2004-07-19 01:29:04 +00:00
rocky
8a99889f49 Add READTOC format defines. 2004-07-19 01:13:31 +00:00
rocky
f40386d242 Compilation fix from Steven M. Schultz. 2004-07-18 20:40:01 +00:00
rocky
23d5c86c57 Some compilation fixes from Steven M. Schultz. Thanks!
get_drive_cap_freebsd_cam updated to expanded API.
2004-07-18 04:19:48 +00:00
rocky
7e18d89c8a Add common defines for some subchannel commands, and use them. 2004-07-17 15:31:00 +00:00
rocky
29c858060f #define changed name. Fix compilation error. 2004-07-08 05:19:27 +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
79ea450a56 Add type for holding MCN and ISRC. Add type for session
Replace magic constant 100 with CDIO_MAX_TRACK+1 where appropriate.

_cdio_osx: save session number and presumably some tighter coding.
nrg.c: make sure we add zero byte to end of MCN.
2004-06-27 15:29:20 +00:00
rocky
e21255ec1a Reduce cut and paste - add common routine, to _cdio_generic.c:
cdio_read_mode1_sector.
2004-06-26 00:39:00 +00:00
rocky
3ca533663d Don't terminate on error but just return a failure and let the
caller decide to exit or not.
2004-06-25 20:49:56 +00:00
rocky
805ce0d9ee mode1 reading fixed up. Some cdio_error's turned into cdio_warn's as
we really shouldn't abort in the driver if there is an error
discovered but instead just return failure.
2004-06-25 20:45:41 +00:00
rocky
bf964b72fd Add boilerplate Makefiles for convenience 2004-06-20 15:35:31 +00:00
rocky
001bd6360b Put the right suffix on ATAPI devices.
More const's, fewer void *'s.
2004-06-19 16:34:45 +00:00
rocky
03e7cde7fd Add "c" at end of drive specification if not FreeBSD 5.x.
Handle not getting default drive more gracefully.

As always changes based on suggestions from Heiner.
2004-06-19 11:07:55 +00:00
rocky
6ea2ad3b66 Compilation lint 2004-06-12 18:45:54 +00:00
rocky
740fdb0e4a Some of the needed changes for FreeBSD 5.x. More may be needed.
From Heiner - thanks!
2004-06-12 17:40:07 +00:00
rocky
f9da630e9d Change a couple of places to use scsi_mmc.h more. 2004-06-09 10:59:42 +00:00
rocky
0441b2f09d CAM mode2 form1 and form2 reading fixes.
Default device lists default to CAM device name.
Simplify, correct and make more complete CAM support.

With the above we can finally use libcdio for cd-read, vcdimager and
probably vlc and xine.

Many thanks to Heiner.
2004-06-05 02:47:49 +00:00
rocky
5e2642af4b Remove some of the bogus assume 1 is first track.
Renamings: env -> user_data
	   _obj -> env
2004-06-02 00:43:53 +00:00
rocky
6f78156edb Some variable renaming. env is the environment, user_data is what is
passed in.
2004-05-31 14:53:07 +00:00
rocky
22fd14048f Duplicate free bug fix from tracked down by Heiner. 2004-05-31 12:05:12 +00:00
rocky
0ab4b1ada0 Remove the bogus assumption that the first track is always 1. May
help down the line with multi-session CDs.
2004-05-27 12:10:21 +00:00
rocky
484637b207 Make default CAM since that works best. It might help the single
FreeBSD user of libcdio.
2004-05-24 23:31:15 +00:00
rocky
b4090f3ca5 Add cdio_open_am_cd.
Use network order for FreeBSD lsn/lba's and other small FreeBSD patches.
Thanks again to Heiner.
2004-05-19 03:00:03 +00:00
rocky
2a54d504c0 MSWindows/*: get access mode working better. ASPI support is faulty though
freebsd.c: it's "ioctl" not "IOCTL";
cdrdao: it's cdrdao, not "toc"
cd-info: slightly better error message?
2004-05-16 13:33:26 +00:00
rocky
cb7c0e870a Go over FreeBSD code based on output from Heiner.
Hopefully 3 bugs are fixed:
  - we get the leadout track now, no core dumps
  - MSF reporting is corrected
  - track format and mode

_cdio_linux.c: use cdio #define rather than GNU/Linux one.
2004-05-13 04:32:12 +00:00
rocky
cb9db0a7d5 Allow more freedom in specifying access mode.
Image drivers now have an "image" access mode.
2004-05-13 01:50:10 +00:00
rocky
9bf0aa3771 Correct size. Thanks to Heiner. 2004-05-12 20:06:10 +00:00
rocky
aab600b46a Make scsi_mmc.h public. 2004-05-10 03:28:51 +00:00
rocky
01b7eee482 freebsd_ioctl.c: Erroneous data size. Thanks again to Heiner.
toc: better error messages and more tests.
2004-05-08 20:36:01 +00:00
rocky
29111948ad wild guesses at get_drive_mcn and get_drive_cap. 2004-05-08 16:28:44 +00:00
rocky
93dfab09d1 Compilation fix. 2004-05-08 14:47:35 +00:00
rocky
8e23fb507c Don't open gen.fd more than once. Thanks to Heiner for pointing this out. 2004-05-08 14:11:05 +00:00
rocky
416c98ecc2 Test was backwards. Thanks to Heiner for directing my attention to this. 2004-05-07 21:39:43 +00:00
rocky
716d771889 Do the right cam initialization (when it is ultimately handled.) 2004-05-07 02:16:57 +00:00
rocky
36e36cff93 open driver shouldn't return true if we do not have a device but an
disc-image file.
2004-05-06 00:51:33 +00:00
rocky
7f10dab1a1 Small fixes. 2004-05-05 02:47:18 +00:00
rocky
55f4743894 Compilation fixes. 2004-05-05 02:39:16 +00:00