From owner-cvs-src-old@FreeBSD.ORG Sat Dec 18 14:21:49 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63E60106566C for ; Sat, 18 Dec 2010 14:21:49 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6C08FC14 for ; Sat, 18 Dec 2010 14:21:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBIELnqB098759 for ; Sat, 18 Dec 2010 14:21:49 GMT (envelope-from tijl@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBIELnlN098758 for cvs-src-old@freebsd.org; Sat, 18 Dec 2010 14:21:49 GMT (envelope-from tijl@repoman.freebsd.org) Message-Id: <201012181421.oBIELnlN098758@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to tijl@repoman.freebsd.org using -f From: Tijl Coosemans Date: Sat, 18 Dec 2010 14:21:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/if_ndis if_ndis_pci.c src/sys/dev/le if_le_pci.c src/sys/dev/malo if_malo_pci.c src/sys/dev/sound/pci atiixp.c ich.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 14:21:49 -0000 tijl 2010-12-18 14:21:28 UTC FreeBSD src repository Modified files: sys/dev/if_ndis if_ndis_pci.c sys/dev/le if_le_pci.c sys/dev/malo if_malo_pci.c sys/dev/sound/pci atiixp.c ich.c Log: SVN rev 216518 on 2010-12-18 14:21:28Z by tijl Use convenience functions where possible instead of accessing the PCI configuration registers directly. Remove pci_enable_io calls where they are redundant. The PCI bus driver will set the right bits when the corresponding bus resource is activated. Remove redundant pci_* function calls from suspend/resume methods. The bus driver already saves and restores the PCI configuration. Reviewed by: jhb Approved by: kib (mentor) Revision Changes Path 1.25 +4 -9 src/sys/dev/if_ndis/if_ndis_pci.c 1.10 +0 -1 src/sys/dev/le/if_le_pci.c 1.7 +1 -23 src/sys/dev/malo/if_malo_pci.c 1.23 +0 -6 src/sys/dev/sound/pci/atiixp.c 1.82 +0 -6 src/sys/dev/sound/pci/ich.c