Search
lxdream.org :: lxdream/src/asic.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/asic.c
changeset 549:828d103ad115
prev430:467519b050f4
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Thu Dec 06 10:40:27 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix testregs so it passes now
file annotate diff log raw
1.1 --- a/src/asic.c Mon Oct 08 12:09:06 2007 +0000
1.2 +++ b/src/asic.c Thu Dec 06 10:40:27 2007 +0000
1.3 @@ -374,6 +374,7 @@
1.4 pvr_dma_transfer();
1.5 }
1.6 break;
1.7 +
1.8 case MAPLE_DMA:
1.9 MMIO_WRITE( ASIC, reg, val );
1.10 break;
1.11 @@ -463,6 +464,9 @@
1.12 case IDEDMASIZ:
1.13 MMIO_WRITE( EXTDMA, reg, val & 0x01FFFFFE );
1.14 break;
1.15 + case IDEDMADIR:
1.16 + MMIO_WRITE( EXTDMA, reg, val & 1 );
1.17 + break;
1.18 case IDEDMACTL1:
1.19 case IDEDMACTL2:
1.20 MMIO_WRITE( EXTDMA, reg, val & 0x01 );
1.21 @@ -478,34 +482,50 @@
1.22 idereg.interface_enabled = FALSE;
1.23 }
1.24 break;
1.25 + case G2DMA0EXT: case G2DMA0SH4: case G2DMA0SIZ:
1.26 + case G2DMA1EXT: case G2DMA1SH4: case G2DMA1SIZ:
1.27 + case G2DMA2EXT: case G2DMA2SH4: case G2DMA2SIZ:
1.28 + case G2DMA3EXT: case G2DMA3SH4: case G2DMA3SIZ:
1.29 + MMIO_WRITE( EXTDMA, reg, val & 0x9FFFFFE0 );
1.30 + break;
1.31 + case G2DMA0MOD: case G2DMA1MOD: case G2DMA2MOD: case G2DMA3MOD:
1.32 + MMIO_WRITE( EXTDMA, reg, val & 0x07 );
1.33 + break;
1.34 + case G2DMA0DIR: case G2DMA1DIR: case G2DMA2DIR: case G2DMA3DIR:
1.35 + MMIO_WRITE( EXTDMA, reg, val & 0x01 );
1.36 + break;
1.37 case G2DMA0CTL1:
1.38 case G2DMA0CTL2:
1.39 - MMIO_WRITE( EXTDMA, reg, val );
1.40 + MMIO_WRITE( EXTDMA, reg, val & 1);
1.41 g2_dma_transfer( 0 );
1.42 break;
1.43 case G2DMA0STOP:
1.44 + MMIO_WRITE( EXTDMA, reg, val & 0x37 );
1.45 break;
1.46 case G2DMA1CTL1:
1.47 case G2DMA1CTL2:
1.48 - MMIO_WRITE( EXTDMA, reg, val );
1.49 + MMIO_WRITE( EXTDMA, reg, val & 1);
1.50 g2_dma_transfer( 1 );
1.51 break;
1.52
1.53 case G2DMA1STOP:
1.54 + MMIO_WRITE( EXTDMA, reg, val & 0x37 );
1.55 break;
1.56 case G2DMA2CTL1:
1.57 case G2DMA2CTL2:
1.58 - MMIO_WRITE( EXTDMA, reg, val );
1.59 + MMIO_WRITE( EXTDMA, reg, val &1 );
1.60 g2_dma_transfer( 2 );
1.61 break;
1.62 case G2DMA2STOP:
1.63 + MMIO_WRITE( EXTDMA, reg, val & 0x37 );
1.64 break;
1.65 case G2DMA3CTL1:
1.66 case G2DMA3CTL2:
1.67 - MMIO_WRITE( EXTDMA, reg, val );
1.68 + MMIO_WRITE( EXTDMA, reg, val &1 );
1.69 g2_dma_transfer( 3 );
1.70 break;
1.71 case G2DMA3STOP:
1.72 + MMIO_WRITE( EXTDMA, reg, val & 0x37 );
1.73 break;
1.74 case PVRDMA2CTL1:
1.75 case PVRDMA2CTL2:
.