[ros-diffs] [hbirr] 14492: Fixed some bugs, which have prevented the using of isa dma channels.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Tue Apr 5 01:09:18 CEST 2005


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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050405/9334208a/attachment.html


More information about the Ros-diffs mailing list