Search
lxdream.org :: lxdream/src/gdrom/ide.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.c
changeset 240:9ae4bd697292
prev166:8aa70cf503a2
next245:a1d0655a88d3
author nkeynes
date Fri Dec 15 10:18:39 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Initial implementation of the NOP (00h) command
file annotate diff log raw
1.1 --- a/src/gdrom/ide.c Sun Jun 18 12:01:53 2006 +0000
1.2 +++ b/src/gdrom/ide.c Fri Dec 15 10:18:39 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.c,v 1.16 2006-06-18 12:01:53 nkeynes Exp $
1.6 + * $Id: ide.c,v 1.17 2006-12-15 10:18:39 nkeynes Exp $
1.7 *
1.8 * IDE interface implementation
1.9 *
1.10 @@ -337,6 +337,13 @@
1.11 ide_clear_interrupt();
1.12 idereg.command = val;
1.13 switch( val ) {
1.14 + case IDE_CMD_NOP: /* Effectively an "abort" */
1.15 + idereg.state = IDE_STATE_IDLE;
1.16 + idereg.status = 0x51;
1.17 + idereg.error = 0x04;
1.18 + idereg.data_offset = -1;
1.19 + ide_raise_interrupt();
1.20 + return;
1.21 case IDE_CMD_RESET_DEVICE:
1.22 ide_reset();
1.23 break;
.