From owner-svn-src-all@freebsd.org Thu Mar 3 01:07:18 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2283AC10D1; Thu, 3 Mar 2016 01:07:18 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3FD71C0C; Thu, 3 Mar 2016 01:07:18 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2317HB2026507; Thu, 3 Mar 2016 01:07:17 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2317HJU026506; Thu, 3 Mar 2016 01:07:17 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201603030107.u2317HJU026506@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Thu, 3 Mar 2016 01:07:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r296329 - head/sys/dev/sbni X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 01:07:18 -0000 Author: jhibbits Date: Thu Mar 3 01:07:17 2016 New Revision: 296329 URL: https://svnweb.freebsd.org/changeset/base/296329 Log: Allocate the PCI BAR resource with bus_alloc_resource_any() We don't support allocating any other range with PCI BARs. Modified: head/sys/dev/sbni/if_sbni_pci.c Modified: head/sys/dev/sbni/if_sbni_pci.c ============================================================================== --- head/sys/dev/sbni/if_sbni_pci.c Wed Mar 2 23:53:08 2016 (r296328) +++ head/sys/dev/sbni/if_sbni_pci.c Thu Mar 3 01:07:17 2016 (r296329) @@ -95,8 +95,8 @@ sbni_pci_probe(device_t dev) device_set_desc(dev, "Granch SBNI12/PCI adapter"); sc->io_rid = PCIR_BAR(0); - sc->io_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->io_rid, - 0ul, ~0ul, ports, RF_ACTIVE); + sc->io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, + &sc->io_rid, RF_ACTIVE); if (!sc->io_res) { device_printf(dev, "cannot allocate io ports!\n"); if (sc->slave_sc)