PERFORCE change 192544 for review
    John Baldwin 
    jhb at FreeBSD.org
       
    Tue May  3 18:53:46 UTC 2011
    
    
  
http://p4web.freebsd.org/@@192544?ac=10
Change 192544 by jhb at jhb_jhbbsd on 2011/05/03 18:53:13
	Allow the host resource stuff to be disabled.
Affected files ...
.. //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#12 edit
Differences ...
==== //depot/projects/pci/sys/dev/acpica/acpi_pcib_acpi.c#12 (text+ko) ====
@@ -305,11 +305,13 @@
      */
     if (pcib_host_res_init(sc->ap_dev, &sc->ap_host_res) != 0)
 	    panic("failed to init hostb resources");
-    status = AcpiWalkResources(sc->ap_handle, "_CRS",
-	acpi_pcib_producer_handler, sc);
-    if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
+    if (!acpi_disabled("hostres")) {
+	status = AcpiWalkResources(sc->ap_handle, "_CRS",
+	    acpi_pcib_producer_handler, sc);
+	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
 	    device_printf(sc->ap_dev, "failed to parse resources: %s\n",
 		AcpiFormatException(status));
+    }
 #endif
 
     /*
    
    
More information about the p4-projects
mailing list