Search
lxdream.org :: lxdream :: r833:1ea87e0221f8
lxdream 0.9.1
released Jun 29
Download Now
changeset833:1ea87e0221f8
parent832:40e5bb525c4e
child834:7682ceeb9309
authornkeynes
dateWed Aug 27 09:42:16 2008 +0000 (12 years ago)
Raise IDE DMA event on end-of-dma, not end-of-transfer (*sigh*)
(actually not 100% correct yet, but closer)
src/asic.c
src/gdrom/ide.c
1.1 --- a/src/asic.c Wed Aug 27 06:23:19 2008 +0000
1.2 +++ b/src/asic.c Wed Aug 27 09:42:16 2008 +0000
1.3 @@ -325,6 +325,7 @@
1.4 uint32_t xfer = ide_read_data_dma( addr, length );
1.5 MMIO_WRITE( EXTDMA, IDEDMATXSIZ, xfer );
1.6 MMIO_WRITE( EXTDMA, IDEDMACTL2, 0 );
1.7 + asic_event( EVENT_IDE_DMA );
1.8 } else { /* 0 */
1.9 MMIO_WRITE( EXTDMA, IDEDMACTL2, 0 );
1.10 }
2.1 --- a/src/gdrom/ide.c Wed Aug 27 06:23:19 2008 +0000
2.2 +++ b/src/gdrom/ide.c Wed Aug 27 09:42:16 2008 +0000
2.3 @@ -345,7 +345,6 @@
2.4 idereg.status = 0x50;
2.5 idereg.count = 0x03;
2.6 ide_raise_interrupt();
2.7 - asic_event( EVENT_IDE_DMA );
2.8 break;
2.9 }
2.10 }
.