Fixed some bugs, which have prevented the using of isa dma channels.
Modified: trunk/reactos/hal/halx86/generic/dma.c
_____
Modified: trunk/reactos/hal/halx86/generic/dma.c
--- trunk/reactos/hal/halx86/generic/dma.c 2005-04-04 23:00:52 UTC
(rev 14491)
+++ trunk/reactos/hal/halx86/generic/dma.c 2005-04-04 23:09:15 UTC
(rev 14492)
@@ -121,8 +121,8 @@
DWORD ChannelSelect;
DWORD Controller;
ULONG MaximumLength;
- BOOLEAN ChannelSetup = FALSE;
- DMA_MODE DmaMode;
+ BOOLEAN ChannelSetup = TRUE;
+ DMA_MODE DmaMode = {0};
DPRINT("Entered Function\n");
@@ -174,6 +174,7 @@
/* Set the Channel Selection */
ChannelSelect = DeviceDescription->DmaChannel & 0x03;
+ DmaMode.Channel = ChannelSelect;
/* Get the Controller Setup */
Controller = (DeviceDescription->DmaChannel & 0x04) ? 2 : 1;
Show replies by date