]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r214349:
authornwhitehorn <nwhitehorn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Nov 2010 15:31:37 +0000 (15:31 +0000)
committernwhitehorn <nwhitehorn@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Nov 2010 15:31:37 +0000 (15:31 +0000)
commitaf06bb4404dbae8c7cf902b993ef9efaceacb8eb
tree3f577c80c644ca856773e67c405c0e2d325b5929
parentb28f6d74a9eafea3e2b7f685e6bdc55bafce55e3
MFC r214349:
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.

Requested by: marius

git-svn-id: svn://svn.freebsd.org/base/stable/8@214745 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/pci/pci.c
sys/dev/usb/controller/ehci.c
sys/dev/usb/controller/ehcireg.h