Search
lxdream.org :: lxdream/src/gdrom/gddriver.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gddriver.h
changeset 720:b5594d1ac80a
prev709:18c39a8e504c
next729:4cc913eabd3d
author nkeynes
date Sat Jul 05 11:57:36 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Get OS X cdrom driver to the 'sort of working' stage. Hide most of the IOKit
fun in a separate osx_iokit module.
file annotate diff log raw
1.1 --- a/src/gdrom/gddriver.h Wed Jun 25 10:40:45 2008 +0000
1.2 +++ b/src/gdrom/gddriver.h Sat Jul 05 11:57:36 2008 +0000
1.3 @@ -28,6 +28,9 @@
1.4
1.5 #define MAX_SECTOR_SIZE 2352
1.6
1.7 +#define CD_FRAMES_PER_SECOND 75
1.8 +#define CD_SECONDS_PER_MINUTE 60
1.9 +#define CD_FRAMES_PER_MINUTE (CD_FRAMES_PER_SECOND*CD_SECONDS_PER_MINUTE)
1.10
1.11 struct gdrom_toc {
1.12 uint32_t track[99];
1.13 @@ -167,6 +170,7 @@
1.14 struct gdrom_track track[99];
1.15 gchar mcn[14]; /* Media catalogue number */
1.16 FILE *file; /* Open file stream */
1.17 + void *private; /* image private data */
1.18 } *gdrom_image_t;
1.19
1.20 /**
1.21 @@ -207,4 +211,15 @@
1.22
1.23 void gdrom_device_destroy( gdrom_device_t dev );
1.24
1.25 +/************* Host-native support functions ***************/
1.26 +
1.27 +/**
1.28 + * Parse a format 2 TOC, and write the results into the supplied disc structure.
1.29 + */
1.30 +void mmc_parse_toc2( gdrom_image_t disc, unsigned char *buf );
1.31 +
1.32 +/**
1.33 + * Construct a Read CD command for the given sector + mode
1.34 + */
1.35 +void mmc_make_read_cd_cmd( char *cmd, uint32_t sector, int mode );
1.36 #endif
.