Search
lxdream.org :: lxdream/test/ide.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/ide.h
changeset 185:6755a04c447f
next251:3c5953d944e0
author nkeynes
date Sat Aug 05 00:18:21 2006 +0000 (16 years ago)
permissions -rw-r--r--
last change Add error lines to tests with incomplete polys
Split clip tests to separate data file
Add tests for cmd bit 23 ("use list size field")
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/ide.h Sat Aug 05 00:18:21 2006 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +
1.5 +struct gdrom_session {
1.6 + int track;
1.7 + unsigned int lba;
1.8 +};
1.9 +
1.10 +struct gdrom_track {
1.11 + int mode;
1.12 + unsigned int lba;
1.13 +};
1.14 +
1.15 +struct gdrom_toc {
1.16 + struct gdrom_track track[99];
1.17 + unsigned int first_lba;
1.18 + unsigned int last_lba;
1.19 + unsigned int leadout_lba;
1.20 +};
1.21 +
1.22 +int ide_init();
1.23 +
1.24 +int ide_test_ready();
1.25 +
1.26 +int ide_sense_error( char *buf );
1.27 +
1.28 +/**
1.29 + * Retrieve session information. If session == 0, returns the
1.30 + * end-of-disc information instead.
1.31 + */
1.32 +int ide_get_session( int session, struct gdrom_session *session_data );
1.33 +
1.34 +/**
1.35 + * Read 1 or more sectors in PIO mode
1.36 + */
1.37 +int ide_read_sector_pio( unsigned int sector, unsigned int count, int mode,
1.38 + char *buf, int length );
1.39 +int ide_read_sector_dma( unsigned int sector, unsigned int count, int mode,
1.40 + char *buf, int length );
.