PERFORCE change 195155 for review

John Baldwin jhb at FreeBSD.org
Wed Jun 22 16:30:53 UTC 2011


http://p4web.freebsd.org/@@195155?ac=10

Change 195155 by jhb at jhb_jhbbsd on 2011/06/22 16:30:51

	This moved elsewhere, too.

Affected files ...

.. //depot/projects/pci/sys/x86/x86/nexus.c#10 edit

Differences ...

==== //depot/projects/pci/sys/x86/x86/nexus.c#10 (text+ko) ====

@@ -58,7 +58,6 @@
 #include <machine/bus.h>
 #include <machine/intr_machdep.h>
 #include <sys/rman.h>
-#include <sys/sysctl.h>
 #include <sys/interrupt.h>
 
 #include <machine/vmparam.h>
@@ -857,37 +856,3 @@
 
 DRIVER_MODULE(sysresource, isa, sysresource_driver, sysresource_devclass, 0, 0);
 #endif /* DEV_ISA */
-
-
-/*
- * Helper routine for x86 Host-PCI bridge driver resource allocation.
- * This is used to adjust the start address of wildcard allocation
- * requests to avoid low addresses that are known to be problematic.
- *
- * If no memory preference is given, use upper 32MB slot most BIOSes
- * use for their memory window.  This is typically only used on older
- * laptops that don't have PCI busses behind a PCI bridge, so assuming
- * > 32MB is likely OK.
- *	
- * However, this can cause problems for other chipsets, so we make
- * this tunable by hw.pci.host_mem_start.
- */
-SYSCTL_DECL(_hw_pci);
-
-static unsigned long host_mem_start = 0x80000000;
-TUNABLE_ULONG("hw.pci.host_mem_start", &host_mem_start);
-SYSCTL_ULONG(_hw_pci, OID_AUTO, host_mem_start, CTLFLAG_RDTUN, &host_mem_start,
-    0, "Limit the host bridge memory to being above this address.");
-
-u_long
-hostb_alloc_start(int type, u_long start, u_long end, u_long count)
-{
-
-	if (start + count - 1 != end) {
-		if (type == SYS_RES_MEMORY && start < host_mem_start)
-			start = host_mem_start;
-		if (type == SYS_RES_IOPORT && start < 0x1000)
-			start = 0x1000;
-	}
-	return (start);
-}


More information about the p4-projects mailing list