Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 18:53:45 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 192544 for review
Message-ID:  <201105031853.p43IrjAk094078@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@192544?ac=10

Change 192544 by jhb@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
 
     /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105031853.p43IrjAk094078>