From owner-cvs-src-old@FreeBSD.ORG Mon Oct 25 15:51:55 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 2D8241065675 for ; Mon, 25 Oct 2010 15:51:55 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 19F388FC1C for ; Mon, 25 Oct 2010 15:51:55 +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 o9PFps7x075907 for ; Mon, 25 Oct 2010 15:51:55 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9PFpsHH075906 for cvs-src-old@freebsd.org; Mon, 25 Oct 2010 15:51:54 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Message-Id: <201010251551.o9PFpsHH075906@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to nwhitehorn@repoman.freebsd.org using -f From: Nathan Whitehorn Date: Mon, 25 Oct 2010 15:51:43 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/pci pci.c src/sys/dev/usb/controller ehci.c ehcireg.h 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: Mon, 25 Oct 2010 15:51:55 -0000 nwhitehorn 2010-10-25 15:51:43 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c sys/dev/usb/controller ehci.c ehcireg.h Log: SVN rev 214349 on 2010-10-25 15:51:43Z by nwhitehorn The EHCI_CAPLENGTH and EHCI_HCIVERSION registers are actually sub-registers within the first 4 bytes of the EHCI memory space. For controllers that use big-endian MMIO, reading them with 1- and 2-byte reads would then return the wrong values. Instead, read the combined register with a 4-byte read and mask out the interesting quantities. Revision Changes Path 1.410 +1 -1 src/sys/dev/pci/pci.c 1.45 +2 -2 src/sys/dev/usb/controller/ehci.c 1.4 +7 -3 src/sys/dev/usb/controller/ehcireg.h