Date: Mon, 25 Oct 2010 15:51:43 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/pci pci.c src/sys/dev/usb/controller ehci.c ehcireg.h Message-ID: <201010251551.o9PFpsHH075906@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010251551.o9PFpsHH075906>