Search
lxdream.org :: lxdream/src/gdrom/ide.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.h
changeset 142:2f631c3a3946
prev138:afabd7e6d26d
next149:d88dd2e9a190
author nkeynes
date Tue May 02 14:09:11 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add packet.h
Implement read toc, request sense, test ready commands.
Fix failure to clear error status on new command
file annotate diff log raw
1.1 --- a/src/gdrom/ide.h Sun Apr 30 01:51:08 2006 +0000
1.2 +++ b/src/gdrom/ide.h Tue May 02 14:09:11 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.h,v 1.5 2006-04-30 01:51:08 nkeynes Exp $
1.6 + * $Id: ide.h,v 1.6 2006-05-02 14:09:11 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 @@ -46,6 +46,7 @@
1.11 */
1.12 unsigned char *data;
1.13 uint16_t *readptr, *writeptr;
1.14 + uint16_t gdrom_error; /* Lo-byte = error code, Hi-byte = subcode */
1.15 int datalen;
1.16 int blocksize; /* Used to determine the transfer unit size */
1.17 int blockleft; /* Bytes remaining in the current block */
1.18 @@ -72,14 +73,6 @@
1.19 #define IDE_XFER_MULTI_DMA 0x20
1.20 #define IDE_XFER_ULTRA_DMA 0x40
1.21
1.22 -
1.23 -
1.24 -#define PKT_CMD_RESET 0x00 /* Wild-ass guess */
1.25 -#define PKT_CMD_IDENTIFY 0x11
1.26 -#define PKT_CMD_SENSE 0x13
1.27 -#define PKT_CMD_READ_TOC 0x14
1.28 -#define PKT_CMD_READ_SECTOR 0x30
1.29 -
1.30 extern struct ide_registers idereg;
1.31
1.32 /* Note: control can be written at any time - all other registers are writable
.