Fix a few typos.


git-svn-id: svn://svn.freebsd.org/base/head@246996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fixup r246916 in case gcc is used to build.

Reported by:	attilio, simon


git-svn-id: svn://svn.freebsd.org/base/head@247000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix includes for use in libstand.


git-svn-id: svn://svn.freebsd.org/base/head@247001 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Import change 6d783560e4aad1e680097d11e89755647a5aba87 from upstream
heimdal:

  fix sizeof(uuid)

Found by:	clang ToT
Reviewed by:	stas


git-svn-id: svn://svn.freebsd.org/base/head@247002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Pull in r175360 from upstream llvm trunk:

  MCParser: Reject .balign with non-pow2 alignments.

  GNU as rejects them and there are configure scripts in the wild that
  check if the assembler rejects ".align 3" to determine whether the
  alignment is in bytes or powers of two.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@247003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFcalloutng:
Make dcons input polling adaptive, reducing poll rate to 1Hz after several
minutes of inactivty to reduce global interrupt rate.  Most of users never
used FireWire debugging, so it is not very useful to consume power by it.


git-svn-id: svn://svn.freebsd.org/base/head@247005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
dtc: fix bootstrapping from 8.2-STABLE

MFC after:	1 week
Approved by:	theraven


git-svn-id: svn://svn.freebsd.org/base/head@247006 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFcalloutng:
Make led(4) fire callouts at 10Hz only when there is at least one LED that
is requested to blink.  Do not fire if all LEDs are static (usual case).


git-svn-id: svn://svn.freebsd.org/base/head@247008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Roll back change of frequency for initialization sequence since it
seems to cause more problems then previous behavior: it either breaks
initilization sequence in other places or uncovers problems with
high-speed mode timing for SDHCI 3.0


git-svn-id: svn://svn.freebsd.org/base/head@247009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Spelling fixes

Spotted by:	N. J. Mann


git-svn-id: svn://svn.freebsd.org/base/head@247010 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support to mxge for IPv6 TX csum offload & IPv6 TSO.

Sponsored by: Myricom, Inc.
MFC after: 7 days


git-svn-id: svn://svn.freebsd.org/base/head@247011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add support for AES and PCLMULQDQ instructions to binutils...

Thanks to Mike Belopuhov for the pointer to the OpenBSD patch, though
OpenBSD's gcc is very different that it only helped w/ where to modify,
not how...  Thanks to jhb for some early reviews...

Reviewed by:	imp, kib
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@247012 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Fix a crash with the stackmark code.

If a stack mark is set while the current stack block is empty, the stack
block may move later on (because of realloc()) and the stack mark needs to
be updated. This updating does not happen after popstackmark() has been
called; therefore, call setstackmark() again if the stack mark is still
being used.

For some reason, this only affects a few users. I cannot reproduce it. The
situation seems quite rare as well because an empty stack block would
usually be freed (by popstackmark()) before execution reaches a
setstackmark() call.

PR:		175922
Tested by:	KT Sin


git-svn-id: svn://svn.freebsd.org/base/head@247013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a sample program that shows how a custom comparison function and
qsort(3) can work together to sort an array of integers.

PR:             docs/176197
Submitted by:   Fernando, fapesteguia at opensistemas.com
Approved by:    gjb (mentor)
MFC after:      1 week


git-svn-id: svn://svn.freebsd.org/base/head@247014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
CFG_ERR, DATA_UNDERRUN and DELIM_UNDERRUN are all flags, rather than
part of ts_status. Thus:

* make sure we decode them from ts_flags, rather than ts_status;
* make sure we decode them regardless of whether there's an error or not.

This correctly exposes descriptor configuration errors, TX delimiter
underruns and TX data underruns.


git-svn-id: svn://svn.freebsd.org/base/head@247025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Post interrupts in the ath alq trace.


git-svn-id: svn://svn.freebsd.org/base/head@247026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
oops, tab!


git-svn-id: svn://svn.freebsd.org/base/head@247027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Enable TX FIFO underrun interrupts.  This allows the TX FIFO threshold
adjustment code to now run.

Tested:

* AR5416, STA

TODO:

* Much more thorough testing on the other chips, AR5210 -> AR9287


git-svn-id: svn://svn.freebsd.org/base/head@247028 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
A couple of quick tidyups:

* Delete this debugging print - I used it when debugging the initial
  TX descriptor chaining code.  It now works, so let's toss it.
  It just confuses people if they enable TX descriptor debugging as they
  get two slightly different versions of the same descriptor.

* Indenting.


git-svn-id: svn://svn.freebsd.org/base/head@247029 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
If any of the TX queues have underrun reporting enabled, enable
HAL_INT_TXURN in the interrupt mask register.

This should now allow for TXURN interrupts to be posted.


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