filename | test/ide.h |
changeset | 185:6755a04c447f |
next | 251:3c5953d944e0 |
author | nkeynes |
date | Fri Aug 04 01:38:30 2006 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Add more tile list limit tests Implement tile list limits in the ta core. Rename TA_TILEEND to TA_LISTEND |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/ide.h Fri Aug 04 01:38:30 2006 +00001.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 the1.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 mode1.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 );
.