Fixed some bugs, which have prevented the using of isa dma channels.

svn path=/trunk/; revision=14492
This commit is contained in:
Hartmut Birr 2005-04-04 23:09:15 +00:00
parent e0dfaf1c5b
commit 1844746db4

View file

@ -121,8 +121,8 @@ HalGetAdapter (PDEVICE_DESCRIPTION DeviceDescription,
DWORD ChannelSelect; DWORD ChannelSelect;
DWORD Controller; DWORD Controller;
ULONG MaximumLength; ULONG MaximumLength;
BOOLEAN ChannelSetup = FALSE; BOOLEAN ChannelSetup = TRUE;
DMA_MODE DmaMode; DMA_MODE DmaMode = {0};
DPRINT("Entered Function\n"); DPRINT("Entered Function\n");
@ -174,6 +174,7 @@ HalGetAdapter (PDEVICE_DESCRIPTION DeviceDescription,
/* Set the Channel Selection */ /* Set the Channel Selection */
ChannelSelect = DeviceDescription->DmaChannel & 0x03; ChannelSelect = DeviceDescription->DmaChannel & 0x03;
DmaMode.Channel = ChannelSelect;
/* Get the Controller Setup */ /* Get the Controller Setup */
Controller = (DeviceDescription->DmaChannel & 0x04) ? 2 : 1; Controller = (DeviceDescription->DmaChannel & 0x04) ? 2 : 1;