mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
Don't claim IDE channels if they are already claimed
svn path=/trunk/; revision=21236
This commit is contained in:
parent
23644dfc06
commit
e8d6081de4
1 changed files with 18 additions and 8 deletions
|
@ -178,16 +178,26 @@ GetCurrentResources(
|
||||||
switch (DeviceExtension->Channel)
|
switch (DeviceExtension->Channel)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
*CommandPortBase = 0x1F0;
|
if (IoGetConfigurationInformation()->AtDiskPrimaryAddressClaimed)
|
||||||
*ControlPortBase = 0x3F6;
|
ret = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
*InterruptVector = 14;
|
else
|
||||||
ret = STATUS_SUCCESS;
|
{
|
||||||
|
*CommandPortBase = 0x1F0;
|
||||||
|
*ControlPortBase = 0x3F6;
|
||||||
|
*InterruptVector = 14;
|
||||||
|
ret = STATUS_SUCCESS;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
*CommandPortBase = 0x170;
|
if (IoGetConfigurationInformation()->AtDiskSecondaryAddressClaimed)
|
||||||
*ControlPortBase = 0x376;
|
ret = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
*InterruptVector = 15;
|
else
|
||||||
ret = STATUS_SUCCESS;
|
{
|
||||||
|
*CommandPortBase = 0x170;
|
||||||
|
*ControlPortBase = 0x376;
|
||||||
|
*InterruptVector = 15;
|
||||||
|
ret = STATUS_SUCCESS;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue