[NTOSKRNL]

- Change the resource type if HalTranslateBusAddress indicates that we got the address type wrong

svn path=/trunk/; revision=52356
This commit is contained in:
Cameron Gutman 2011-06-19 01:42:05 +00:00
parent 722de7fe98
commit eecc2a655e

View file

@ -758,6 +758,13 @@ IopTranslateDeviceResources(
DPRINT1("Failed to translate port resource (Start: 0x%I64x)\n", DescriptorRaw->u.Port.Start.QuadPart);
goto cleanup;
}
if (AddressSpace == 0)
{
/* This is actually a memory resource */
DescriptorRaw->Type = CmResourceTypeMemory;
DescriptorTranslated->Type = CmResourceTypeMemory;
}
break;
}
case CmResourceTypeInterrupt:
@ -793,6 +800,13 @@ IopTranslateDeviceResources(
DPRINT1("Failed to translate memory resource (Start: 0xI64x)\n", DescriptorRaw->u.Memory.Start.QuadPart);
goto cleanup;
}
if (AddressSpace != 0)
{
/* This is actually an I/O port resource */
DescriptorRaw->Type = CmResourceTypePort;
DescriptorTranslated->Type = CmResourceTypePort;
}
}
case CmResourceTypeDma: