Date: Wed, 5 Feb 2014 19:53:04 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 1190661 for review Message-ID: <201402051953.s15Jr4Sw057539@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1190661?ac=10 Change 1190661 by jhb@jhb_ralph on 2014/02/05 19:52:21 Tidy. Affected files ... .. //depot/projects/pci/sys/dev/pci/pci_pci.c#48 edit Differences ... ==== //depot/projects/pci/sys/dev/pci/pci_pci.c#48 (text+ko) ==== @@ -105,9 +105,9 @@ #ifdef NEW_PCIB SYSCTL_DECL(_hw_pci); -static int pcib_clear; -TUNABLE_INT("hw.pci.pcib_clear", &pcib_clear); -SYSCTL_INT(_hw_pci, OID_AUTO, pcib_clear, CTLFLAG_RDTUN, &pcib_clear, 0, +static int pci_clear_pcib; +TUNABLE_INT("hw.pci.clear_pcib", &pci_clear_pcib); +SYSCTL_INT(_hw_pci, OID_AUTO, clear_pcib, CTLFLAG_RDTUN, &pci_clear_pcib, 0, "Clear firmware-assigned resources for PCI-PCI bridge I/O windows."); /* @@ -426,8 +426,7 @@ dev = sc->dev; - /* XXX: Gross hack, disable all windows for testing. */ - if (pcib_clear) { + if (pci_clear_pcib) { pci_write_config(dev, PCIR_IOBASEL_1, 0xff, 1); pci_write_config(dev, PCIR_IOBASEH_1, 0xffff, 2); pci_write_config(dev, PCIR_IOLIMITL_1, 0, 1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402051953.s15Jr4Sw057539>