[ros-diffs] [fireball] 31184: - 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.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Dec 12 18:04:51 CET 2007


Author: fireball
Date: Wed Dec 12 20:04:50 2007
New Revision: 31184

URL: http://svn.reactos.org/svn/reactos?rev=31184&view=rev
Log:
- 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.

Modified:
    trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c?rev=31184&r1=31183&r2=31184&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c Wed Dec 12 20:04:50 2007
@@ -1299,11 +1299,6 @@
       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 @@
    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
@@ -2806,11 +2801,6 @@
       {
          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
       {




More information about the Ros-diffs mailing list