Search
lxdream.org :: lxdream/test/ide.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/ide.h
changeset 251:3c5953d944e0
prev185:6755a04c447f
author nkeynes
date Sat Dec 27 02:59:35 2008 +0000 (15 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Replace fpscr_mask/fpscr flags in xlat_cache_block with a single xlat_sh4_mode,
which tracks the field of the same name in sh4r - actually a little faster this way.
Now depends on SR.MD, FPSCR.PR and FPSCR.SZ (although it doesn't benefit from the SR
flag yet).

Also fixed the failure to check the flags in the common case (code address returned
by previous block) which took away the performance benefits, but oh well.
view annotate diff log raw
     2 struct gdrom_session {
     3     int track;
     4     unsigned int lba;
     5 };
     7 struct gdrom_track {
     8     int mode;
     9     unsigned int lba;
    10 };
    12 struct gdrom_toc {
    13     struct gdrom_track track[99];
    14     unsigned int first_lba;
    15     unsigned int last_lba;
    16     unsigned int leadout_lba;
    17 };
    19 int ide_init();
    21 int ide_test_ready();
    23 int ide_sense_error( char *buf );
    25 int ide_get_sense_code();
    27 /**
    28  * Retrieve session information. If session == 0, returns the
    29  * end-of-disc information instead.
    30  */
    31 int ide_get_session( int session, struct gdrom_session *session_data );
    33 /**
    34  * Read 1 or more sectors in PIO mode
    35  */
    36 int ide_read_sector_pio( unsigned int sector, unsigned int count, int mode,
    37 			 char *buf, int length );
    38 int ide_read_sector_dma( unsigned int sector, unsigned int count, int mode,
    39 			 char *buf, int length );
.