Search
lxdream.org :: lxdream/src/gdrom/ide.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.h
changeset 342:850502f0e8de
prev257:62fa1cabc46c
next493:c8183f888b14
author nkeynes
date Wed Jan 31 10:58:42 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Refactor gdrom module to be more conducive to real device support
file annotate diff log raw
1.1 --- a/src/gdrom/ide.h Fri Dec 29 00:21:46 2006 +0000
1.2 +++ b/src/gdrom/ide.h Wed Jan 31 10:58:42 2007 +0000
1.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 IDE
1.9 * port. Note that the register definitions are in asic.h, as the registers
1.10 @@ -55,12 +55,11 @@
1.11 int data_offset;
1.12 int data_length;
1.13
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.24
1.25 #define IDE_STATE_IDLE 0
1.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.32
1.33 void ide_write_command( uint8_t command );
.