filename | src/gdrom/ide.h |
changeset | 342:850502f0e8de |
prev | 257:62fa1cabc46c |
next | 493:c8183f888b14 |
author | nkeynes |
date | Sun Oct 28 07:23:46 2007 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Fix CDI with multiple tracks/session Fix file being closed too early |
file | annotate | diff | log | raw |
1.1 --- a/src/gdrom/ide.h Fri Dec 29 00:21:46 2006 +00001.2 +++ b/src/gdrom/ide.h Sun Oct 28 07:23:46 2007 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: ide.h,v 1.12 2006-12-29 00:21:46 nkeynes Exp $1.6 + * $Id: ide.h,v 1.13 2007-01-31 10:58:42 nkeynes Exp $1.7 *1.8 * This file defines the interface and structures of the dreamcast's IDE1.9 * port. Note that the register definitions are in asic.h, as the registers1.10 @@ -55,12 +55,11 @@1.11 int data_offset;1.12 int data_length;1.14 - int block_length; /* Used to determine the transfer unit size */1.15 - int block_left; /* Bytes remaining in the current block */1.16 -1.17 /* Status reporting information */1.18 uint8_t last_read_track;1.19 - uint32_t last_read_lba;1.20 + uint32_t read_lba;1.21 + uint32_t read_mode;1.22 + uint32_t sectors_left; /* sectors left after current read */1.23 };1.25 #define IDE_STATE_IDLE 01.26 @@ -116,6 +115,7 @@1.27 void ide_write_data_pio( uint16_t value );1.28 uint32_t ide_read_data_dma( uint32_t addr, uint32_t length );1.29 uint8_t ide_read_status(void);1.30 +uint8_t ide_get_drive_status(void);1.31 void ide_write_buffer( unsigned char *data, int length );1.33 void ide_write_command( uint8_t command );
.