From owner-svn-src-all@FreeBSD.ORG Fri Dec 10 15:05:49 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4CFE106564A; Fri, 10 Dec 2010 15:05:49 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C48328FC0A; Fri, 10 Dec 2010 15:05:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBAF5nYQ077456; Fri, 10 Dec 2010 15:05:49 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBAF5n9X077454; Fri, 10 Dec 2010 15:05:49 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201012101505.oBAF5n9X077454@svn.freebsd.org> From: Tijl Coosemans Date: Fri, 10 Dec 2010 15:05:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216358 - head/sys/dev/le X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 10 Dec 2010 15:05:49 -0000 Author: tijl Date: Fri Dec 10 15:05:49 2010 New Revision: 216358 URL: http://svn.freebsd.org/changeset/base/216358 Log: Use SYS_RES_IOPORT instead of PCIM_CMD_PORTEN when calling pci_enable_io. Approved by: kib (mentor) Modified: head/sys/dev/le/if_le_pci.c Modified: head/sys/dev/le/if_le_pci.c ============================================================================== --- head/sys/dev/le/if_le_pci.c Fri Dec 10 14:07:08 2010 (r216357) +++ head/sys/dev/le/if_le_pci.c Fri Dec 10 15:05:49 2010 (r216358) @@ -312,7 +312,7 @@ le_pci_attach(device_t dev) LE_LOCK_INIT(sc, device_get_nameunit(dev)); pci_enable_busmaster(dev); - pci_enable_io(dev, PCIM_CMD_PORTEN); + pci_enable_io(dev, SYS_RES_IOPORT); i = PCIR_BAR(0); lesc->sc_rres = bus_alloc_resource_any(dev, SYS_RES_IOPORT,