~ubuntu-branches/ubuntu/maverick/libcdio/maverick

« back to all changes in this revision

Viewing changes to lib/driver/FreeBSD/freebsd_cam.c

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Boullis
  • Date: 2007-10-04 00:52:35 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071004005235-4e3gdi4x2q2d14jx
Tags: 0.78.2+dfsg1-1
* Repack the source tarball to remove non-DFSG-free
  documentation. Thanks to Joerg Jaspert for pointing this.
* Also update debian/copyright to reflect the status of the removed
  documentation.
* Add libncurses5-dev | libncurses-dev to the build-dependencies, for
  cdda-player.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    $Id: freebsd_cam.c,v 1.10 2005/07/23 22:24:04 rocky Exp $
 
2
    $Id: freebsd_cam.c,v 1.11 2006/03/03 09:50:30 flameeyes Exp $
3
3
 
4
4
    Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
5
5
 
26
26
# include "config.h"
27
27
#endif
28
28
 
29
 
static const char _rcsid[] = "$Id: freebsd_cam.c,v 1.10 2005/07/23 22:24:04 rocky Exp $";
 
29
static const char _rcsid[] = "$Id: freebsd_cam.c,v 1.11 2006/03/03 09:50:30 flameeyes Exp $";
30
30
 
31
31
#ifdef HAVE_FREEBSD_CDROM
32
32
 
54
54
 */
55
55
int
56
56
run_mmc_cmd_freebsd_cam( const void *p_user_data, unsigned int i_timeout_ms,
57
 
                         unsigned int i_cdb, const scsi_mmc_cdb_t *p_cdb, 
58
 
                         scsi_mmc_direction_t e_direction, 
 
57
                         unsigned int i_cdb, const mmc_cdb_t *p_cdb, 
 
58
                         cdio_mmc_direction_t e_direction, 
59
59
                         unsigned int i_buf, /*in/out*/ void *p_buf )
60
60
{
61
61
  const _img_private_t *p_env = p_user_data;
181
181
read_mode2_sectors_freebsd_cam (_img_private_t *p_env, void *p_buf, 
182
182
                                lsn_t lsn, unsigned int nblocks)
183
183
{
184
 
  scsi_mmc_cdb_t cdb = {{0, }};
 
184
  mmc_cdb_t cdb = {{0, }};
185
185
 
186
186
  bool b_read_10 = false;
187
187
 
229
229
eject_media_freebsd_cam (_img_private_t *p_env) 
230
230
{
231
231
  int i_status;
232
 
  scsi_mmc_cdb_t cdb = {{0, }};
 
232
  mmc_cdb_t cdb = {{0, }};
233
233
  uint8_t buf[1];
234
234
  
235
235
  CDIO_MMC_SET_COMMAND(cdb.field, CDIO_MMC_GPCMD_ALLOW_MEDIUM_REMOVAL);