Search
lxdream.org :: lxdream/src/asic.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/asic.c
changeset 334:59073f812bd3
prev325:5717ae5d4746
next342:850502f0e8de
author nkeynes
date Sat Jan 27 12:02:54 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add register masks on IDE DMA registers
file annotate diff log raw
1.1 --- a/src/asic.c Thu Jan 25 10:16:32 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:
.