Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 142:2f631c3a3946
prev138:afabd7e6d26d
next143:9446fb6df0c5
author nkeynes
date Tue May 02 14:09:11 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add packet.h
Implement read toc, request sense, test ready commands.
Fix failure to clear error status on new command
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Sun Apr 30 01:51:08 2006 +0000
1.2 +++ b/src/gdrom/gdrom.h Tue May 02 14:09:11 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.2 2006-04-30 01:51:08 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.3 2006-05-02 14:09:11 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 @@ -24,7 +24,7 @@
1.11 #include "dream.h"
1.12
1.13 struct gdrom_toc {
1.14 - uint32_t tracks[99];
1.15 + uint32_t track[99];
1.16 uint32_t first, last, leadout;
1.17 };
1.18
1.19 @@ -51,8 +51,14 @@
1.20 #define IDE_DISC_READY 0x01 /* ored with above */
1.21 #define IDE_DISC_IDLE 0x02 /* ie spun-down */
1.22
1.23 +#define TRACK_PRE_EMPHASIS 0x10
1.24 +#define TRACK_COPY_PERMITTED 0x20
1.25 +#define TRACK_DATA 0x40
1.26 +#define TRACK_FOUR_CHANNEL 0x80
1.27 +
1.28 struct gdrom_track {
1.29 gdrom_track_mode_t mode;
1.30 + uint8_t flags; /* Track flags */
1.31 int session; /* session # containing this track */
1.32 uint32_t lba; /* start sector address */
1.33 uint32_t sector_size; /* For convenience, determined by mode */
.