mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed some bugs, which have prevented the using of isa dma channels.
svn path=/trunk/; revision=14492
This commit is contained in:
parent
e0dfaf1c5b
commit
1844746db4
1 changed files with 3 additions and 2 deletions
|
@ -121,8 +121,8 @@ HalGetAdapter (PDEVICE_DESCRIPTION DeviceDescription,
|
|||
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 @@ HalGetAdapter (PDEVICE_DESCRIPTION DeviceDescription,
|
|||
|
||||
/* Set the Channel Selection */
|
||||
ChannelSelect = DeviceDescription->DmaChannel & 0x03;
|
||||
DmaMode.Channel = ChannelSelect;
|
||||
|
||||
/* Get the Controller Setup */
|
||||
Controller = (DeviceDescription->DmaChannel & 0x04) ? 2 : 1;
|
||||
|
|
Loading…
Reference in a new issue