Add a note that explains what the current state of the register byte order
macros are.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add placeholder methods for WMI command access (USB, perhaps SDIO later)
which will be needed for AR7010 and AR9287 USB access.

The names differ slightly from Linux and Atheros, for the sake of
consistency.

A lot more work is required in order to convert the 11n HAL support to
fully support USB.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix cut-and-paste comment error

Submitted by:	sbruno


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For Yukon II controllers that implement optional temperature sensor
and voltage sensor, TWSI is used to get sensor data.  msk(4) does
not monitor these sensors and interrupt for TWSI completion is
disabled by default.
However, due to unknown reason, the TWSI completion interrupt fires
and it resulted in interrupt storm.  To fix it, acknowledges the
TWSI completion interrupt if driver see the event.  Given that not
all Yukon II controllers show the issue it could be a silicon bug
which does not honor interrupt masking.

Probably the right way to address the issue is disabling automatic
TWSI cycle initiation against these sensors.  It would be even
better to implement reading voltage/temperature from the NIC but it
requires access to National LM80 through TWSI and documentation to
do that is not available yet(probably will never happen).

Reported by:	jhb
Tested by:	jhb
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix binary compatibility to the official LibUSB 1.0.
This is useful for GNU/kFreeBSD and the libusb2debian port.
Applications using the asynchronous API of LibUSB 1.0 needs
to be recompiled after this update.

Found by: lme @


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
I stopped using my middle name years ago.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump the libusb major version due to the last commit, which
changes the libusb 1.0 API. While at it, correct a manual
page symlink.

Suggested by:	kib @


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Disable MMU before reconfiguring the pagetables in the trampoline code.
  Otherwise we might end up overwriting the PTEs we're currently using
  for some reason.

Reviewed by:	cognet


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct r228114 and use the same implementation for tilde.h as for history.h


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement the D "cpu" variable, which returns curcpu.  I have chosen not
to follow the example of OpenSolaris and its descendants, which implemented
cpu as an inline that took a value out of curthread.  At certain points in
the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in
particukar, just before the thread gets descheduled) so instead I have
implemented this as its own built-in variable.

Sponsored by:	Sandvine Inc.
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add the BT register definitions for AR9285/AR9287 BT coexistence.

Obtained from:	Linux ath9k


git-svn-id: svn+ssh://svn.freebsd.org/base/head@234692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f