Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 143:9446fb6df0c5
prev142:2f631c3a3946
next149:d88dd2e9a190
author nkeynes
date Wed May 03 12:52:38 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add (track) mode parameter to read sectors call
Fix missing interrupt on end-of-packet read.
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Tue May 02 14:09:11 2006 +0000
1.2 +++ b/src/gdrom/gdrom.h Wed May 03 12:52:38 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.3 2006-05-02 14:09:11 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.4 2006-05-03 12:52:38 nkeynes Exp $
1.7 *
1.8 * This file defines the structures and functions used by the GD-Rom
1.9 * disc driver. (ie, the modules that supply a CD image to be used by the
1.10 @@ -38,7 +38,8 @@
1.11 GDROM_MODE2_XA1,
1.12 GDROM_MODE2_XA2,
1.13 GDROM_CDDA,
1.14 - GDROM_GD
1.15 + GDROM_GD,
1.16 + GDROM_RAW
1.17 } gdrom_track_mode_t;
1.18
1.19 /* The disc register indicates the current contents of the drive. When open
1.20 @@ -76,7 +77,7 @@
1.21 FILE *file; /* Stream, for image files */
1.22 uint32_t (*read_sectors)( struct gdrom_disc *disc,
1.23 uint32_t lba, uint32_t sector_count,
1.24 - char *buf );
1.25 + int mode, char *buf, uint32_t *length );
1.26 void (*close)( struct gdrom_disc *disc );
1.27 } *gdrom_disc_t;
1.28
1.29 @@ -110,6 +111,6 @@
1.30 gboolean gdrom_is_mounted( void );
1.31
1.32 uint32_t gdrom_read_sectors( uint32_t sector, uint32_t sector_count,
1.33 - char *buf );
1.34 + int mode, char *buf, uint32_t *length );
1.35
1.36 #endif
.