Search
lxdream.org :: lxdream :: r39:3c35cb97b2ff
lxdream 0.9.1
released Jun 29
Download Now
changeset39:3c35cb97b2ff
parent38:9ccc7ac66a9d
child40:852ee31ace0d
authornkeynes
dateMon Dec 26 10:47:34 2005 +0000 (18 years ago)
Log feature on calls to SET_FEATURE
src/gdrom/ide.c
1.1 --- a/src/gdrom/ide.c Mon Dec 26 10:47:10 2005 +0000
1.2 +++ b/src/gdrom/ide.c Mon Dec 26 10:47:34 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.c,v 1.5 2005-12-26 03:54:55 nkeynes Exp $
1.6 + * $Id: ide.c,v 1.6 2005-12-26 10:47:34 nkeynes Exp $
1.7 *
1.8 * IDE interface implementation
1.9 *
1.10 @@ -20,7 +20,7 @@
1.11
1.12 #include <stdlib.h>
1.13 #include "dream.h"
1.14 -#include "ide.h"
1.15 +#include "gdrom/ide.h"
1.16
1.17 #define MAX_WRITE_BUF 4096;
1.18
1.19 @@ -118,14 +118,20 @@
1.20 void ide_write_command( uint8_t val ) {
1.21 idereg.command = val;
1.22 switch( val ) {
1.23 - case IDE_CMD_RESET_DEVICE:
1.24 - ide_reset();
1.25 - break;
1.26 - case IDE_CMD_PACKET:
1.27 - set_write_buffer(command_buffer,12);
1.28 - break;
1.29 - default:
1.30 - WARN( "IDE: Unimplemented command: %02X", val );
1.31 + case IDE_CMD_RESET_DEVICE:
1.32 + ide_reset();
1.33 + break;
1.34 + case IDE_CMD_PACKET:
1.35 + set_write_buffer(command_buffer,12);
1.36 + break;
1.37 + case IDE_CMD_SET_FEATURE:
1.38 + switch( idereg.feature ) {
1.39 + default:
1.40 + WARN( "IDE: unimplemented feature: %02X", idereg.feature );
1.41 + }
1.42 + break;
1.43 + default:
1.44 + WARN( "IDE: Unimplemented command: %02X", val );
1.45 }
1.46 idereg.status |= IDE_ST_READY | IDE_ST_SERV;
1.47 }
.