From owner-cvs-src@FreeBSD.ORG Fri Sep 1 16:11:13 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38A6416A4E0; Fri, 1 Sep 2006 16:11:13 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E94EE43D45; Fri, 1 Sep 2006 16:11:12 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k81GBCpb069478; Fri, 1 Sep 2006 16:11:12 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k81GBC9i069477; Fri, 1 Sep 2006 16:11:12 GMT (envelope-from jhb) Message-Id: <200609011611.k81GBC9i069477@repoman.freebsd.org> From: John Baldwin Date: Fri, 1 Sep 2006 16:11:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/em if_em.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 16:11:13 -0000 jhb 2006-09-01 16:11:12 UTC FreeBSD src repository Modified files: sys/dev/em if_em.c Log: - Use pci_enable_busmaster() and pci_enable_io() to update the command register. This really shouldn't be using pci_enable_io() directly as bus_alloc_resource() does it already, but the cached copy of the command word needs to be correct so the enable/disable mwi functions work properly. - Use pci bus accessors to read revision ID and subvendor IDs. Reviewed by: jvogel Revision Changes Path 1.137 +5 -11 src/sys/dev/em/if_em.c