From 4556cc8f16aa3bfe109ae65d20a59bb68b697707 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 12 Dec 2007 17:04:50 +0000 Subject: [PATCH] - Don't ignore empty resource descriptors (they still may have BusNumber info). - Change pci identifier from "PCI BIOS" to "PCI", so that PCI buses reported by the loader are discovered now. svn path=/trunk/; revision=31184 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index e626d51062d..810d77adabd 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -1299,11 +1299,6 @@ IopAssignDeviceResources( for (i = 0; i < DeviceNode->BootResources->Count; i++) { pPartialResourceList = &DeviceNode->BootResources->List[i].PartialResourceList; - if (pPartialResourceList->Version != 1 || pPartialResourceList->Revision != 1) - { - Status = STATUS_REVISION_MISMATCH; - goto ByeBye; - } Size += FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR, PartialResourceList.PartialDescriptors) + pPartialResourceList->Count * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR); for (j = 0; j < pPartialResourceList->Count; j++) @@ -2687,7 +2682,7 @@ IopEnumerateDetectedDevices( ULONG BootResourcesLength; NTSTATUS Status; - const UNICODE_STRING IdentifierPci = RTL_CONSTANT_STRING(L"PCI BIOS"); + const UNICODE_STRING IdentifierPci = RTL_CONSTANT_STRING(L"PCI"); UNICODE_STRING HardwareIdPci = RTL_CONSTANT_STRING(L"*PNP0A03\0"); static ULONG DeviceIndexPci = 0; #ifdef ENABLE_ACPI @@ -2807,11 +2802,6 @@ IopEnumerateDetectedDevices( DPRINT("Wrong registry type: got 0x%lx, expected 0x%lx\n", pValueInformation->Type, REG_FULL_RESOURCE_DESCRIPTOR); goto nextdevice; } - else if (((PCM_FULL_RESOURCE_DESCRIPTOR)pValueInformation->Data)->PartialResourceList.Count == 0) - { - BootResources = ParentBootResources; - BootResourcesLength = ParentBootResourcesLength; - } else { static const ULONG Header = FIELD_OFFSET(CM_FULL_RESOURCE_DESCRIPTOR, PartialResourceList.PartialDescriptors);