Search
lxdream.org :: lxdream/src/gdrom/ide.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.c
changeset 47:da09bcb7ce69
prev39:3c35cb97b2ff
next125:49bf45f8210a
author nkeynes
date Tue Dec 27 12:41:33 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Log transfer mode set
file annotate diff log raw
1.1 --- a/src/gdrom/ide.c Mon Dec 26 10:47:34 2005 +0000
1.2 +++ b/src/gdrom/ide.c Tue Dec 27 12:41:33 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.c,v 1.6 2005-12-26 10:47:34 nkeynes Exp $
1.6 + * $Id: ide.c,v 1.7 2005-12-27 12:41:33 nkeynes Exp $
1.7 *
1.8 * IDE interface implementation
1.9 *
1.10 @@ -126,6 +126,25 @@
1.11 break;
1.12 case IDE_CMD_SET_FEATURE:
1.13 switch( idereg.feature ) {
1.14 + case IDE_FEAT_SET_TRANSFER_MODE:
1.15 + switch( idereg.count & 0xF8 ) {
1.16 + case IDE_XFER_PIO:
1.17 + INFO( "Set PIO default mode: %d", idereg.count&0x07 );
1.18 + break;
1.19 + case IDE_XFER_PIO_FLOW:
1.20 + INFO( "Set PIO Flow-control mode: %d", idereg.count&0x07 );
1.21 + break;
1.22 + case IDE_XFER_MULTI_DMA:
1.23 + INFO( "Set Multiword DMA mode: %d", idereg.count&0x07 );
1.24 + break;
1.25 + case IDE_XFER_ULTRA_DMA:
1.26 + INFO( "Set Ultra DMA mode: %d", idereg.count&0x07 );
1.27 + break;
1.28 + default:
1.29 + INFO( "Setting unknown transfer mode: %02X", idereg.count );
1.30 + break;
1.31 + }
1.32 + break;
1.33 default:
1.34 WARN( "IDE: unimplemented feature: %02X", idereg.feature );
1.35 }
.