Search
lxdream.org :: lxdream :: r334:59073f812bd3
lxdream 0.9.1
released Jun 29
Download Now
changeset334:59073f812bd3
parent333:e29561c998f5
child335:fb890e1814c0
authornkeynes
dateSat Jan 27 12:02:54 2007 +0000 (12 years ago)
Add register masks on IDE DMA registers
src/asic.c
1.1 --- a/src/asic.c Sat Jan 27 06:21:35 2007 +0000
1.2 +++ b/src/asic.c Sat Jan 27 12:02:54 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: asic.c,v 1.26 2007-01-25 10:16:32 nkeynes Exp $
1.6 + * $Id: asic.c,v 1.27 2007-01-27 12:02:54 nkeynes Exp $
1.7 *
1.8 * Support for the miscellaneous ASIC functions (Primarily event multiplexing,
1.9 * and DMA).
1.10 @@ -455,9 +455,15 @@
1.11 ide_write_command( (uint8_t)val );
1.12 }
1.13 break;
1.14 + case IDEDMASH4:
1.15 + MMIO_WRITE( EXTDMA, reg, val & 0x1FFFFFE0 );
1.16 + break;
1.17 + case IDEDMASIZ:
1.18 + MMIO_WRITE( EXTDMA, reg, val & 0x01FFFFFE );
1.19 + break;
1.20 case IDEDMACTL1:
1.21 case IDEDMACTL2:
1.22 - MMIO_WRITE( EXTDMA, reg, val );
1.23 + MMIO_WRITE( EXTDMA, reg, val & 0x01 );
1.24 asic_ide_dma_transfer( );
1.25 break;
1.26 case IDEACTIVATE:
.