From owner-p4-projects@FreeBSD.ORG Wed Jun 22 16:30:53 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6643E1065673; Wed, 22 Jun 2011 16:30:53 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B64106566C for ; Wed, 22 Jun 2011 16:30:53 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id 16FA08FC18 for ; Wed, 22 Jun 2011 16:30:53 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id p5MGUqkH029157 for ; Wed, 22 Jun 2011 16:30:52 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p5MGUq7Y029154 for perforce@freebsd.org; Wed, 22 Jun 2011 16:30:52 GMT (envelope-from jhb@freebsd.org) Date: Wed, 22 Jun 2011 16:30:52 GMT Message-Id: <201106221630.p5MGUq7Y029154@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 195155 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2011 16:30:53 -0000 http://p4web.freebsd.org/@@195155?ac=10 Change 195155 by jhb@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 #include #include -#include #include #include @@ -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); -}