Search
lxdream.org :: lxdream/src/gdrom/ide.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.h
changeset 245:a1d0655a88d3
prev240:9ae4bd697292
next254:7c9e34c37670
author nkeynes
date Tue Dec 19 09:52:56 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Work in progress: 0x40,1 (read status)
file annotate diff log raw
1.1 --- a/src/gdrom/ide.h Fri Dec 15 10:18:39 2006 +0000
1.2 +++ b/src/gdrom/ide.h Tue Dec 19 09:52:56 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.h,v 1.9 2006-12-15 10:18:39 nkeynes Exp $
1.6 + * $Id: ide.h,v 1.10 2006-12-19 09:52:56 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 @@ -41,6 +41,7 @@
1.11
1.12 /* Internal IDE state */
1.13 uint8_t intrq_pending; /* Flag to indicate if the INTRQ line is active */
1.14 + gboolean interface_enabled;
1.15 int state;
1.16
1.17 /* Sense response for the last executed packet command */
1.18 @@ -55,6 +56,11 @@
1.19
1.20 int block_length; /* Used to determine the transfer unit size */
1.21 int block_left; /* Bytes remaining in the current block */
1.22 +
1.23 + /* Status reporting information */
1.24 + uint8_t last_read_track;
1.25 + uint32_t last_read_lba;
1.26 + uint32_t last_read_count;
1.27 };
1.28
1.29 #define IDE_STATE_IDLE 0
.