Fix undefined behaviour in several gpio_pin_setflags() routines (under
sys/arm and sys/mips), squelching the clang 3.3 warnings about this.

Noticed by:	tinderbox and many irate spectators
Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
PR:		kern/177759
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249449 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Create sysctl node 'hw.vmm.vmx' and populate it with oids that expose the VMX
hardware capabilities.

Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@249450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Clean up the ntop / pton code.  Part of a patch which has been submitted
upstream but not yet adopted.


git-svn-id: svn://svn.freebsd.org/base/head@249453 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Include ldns's b{32,64}_{ntop,pton}().


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


git-svn-id: svn://svn.freebsd.org/base/head@249457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve/correct a comment. We now support a lot more cpu types.

PR:	kern/177496
Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@249460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fixing a clang warning indicating uninitialized variable usage.

PR:	kern/177164
Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@249461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct spelling is "Christiaan Huygens".

Submitted by:	James J. Lippard
Obtained from:	OpenBSD


git-svn-id: svn://svn.freebsd.org/base/head@249462 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
LSD first synthesised 16/11/38, not 7/4/43.

Submitted by:	James J. Lippard
Obtained from:	OpenBSD


git-svn-id: svn://svn.freebsd.org/base/head@249463 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo from previous commit.

Submitted by:	Ronald Klop <ronald-freebsd8@klop.yi.org>


git-svn-id: svn://svn.freebsd.org/base/head@249464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFprojects/camlock r248890, r248897, r248898, r248900, r248903, r248905,
r248917, r248918, r248978, r249001, r249014, r249030:

Remove multilevel freezing mechanism, implemented to handle specifics of
the ATA/SATA error recovery, when post-reset recovery commands should be
allocated when queues are already full of payload requests.  Instead of
removing frozen CCBs with specified range of priorities from the queue
to provide free openings, use simple hack, allowing explicit CCBs over-
allocation for requests with priority higher (numerically lower) then
CAM_PRIORITY_OOB threshold.

Simplify CCB allocation logic by removing SIM-level allocation queue.
After that SIM-level queue manages only CCBs execution, while allocation
logic is localized within each single device.

Suggested by:	gibbs


git-svn-id: svn://svn.freebsd.org/base/head@249466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFprojects/camlock r248982:
Stop abusing xpt_periph in random plases that really have no periph related
to CCB, for example, bus scanning.  NULL value is fine in such cases and it
is correctly logged in debug messages as "noperiph".  If at some point we
need some real XPT periphs (alike to pmpX now), quite likely they will be
per-bus, and not a single global instance as xpt_periph now.


git-svn-id: svn://svn.freebsd.org/base/head@249468 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove owner field from struct cam_ed, unused at least since FreeBSD 7.


git-svn-id: svn://svn.freebsd.org/base/head@249470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libc: Fix typo in French translation.

PR:		kern/177704
Submitted by:	martymac
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add one more obsolete file.


git-svn-id: svn://svn.freebsd.org/base/head@249473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Silence "received disconnect" in the common case.


git-svn-id: svn://svn.freebsd.org/base/head@249475 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Usnure that PCI bus BIS_GET_DMA_TAG() method sees the actual PCI
device which makes the request for dma tag, instead of some descendant
of the PCI device, by creating a pass-through trampoline for vga_pci
and ata_pci buses.

Sponsored by:	The FreeBSD Foundation
Suggested by:	jhb
Discussed with:	jhb, mav
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
update information about debugging sysctl...

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Backport upstream r684 (OPENPAM_DEBUG enables debugging macros but does
not turn debugging on by default) and add OPENPAM_DEBUG to CFLAGS.


git-svn-id: svn://svn.freebsd.org/base/head@249479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add fdallocn function and use it when passing fds over unix socket.

This gets rid of "unp_externalize fdalloc failed" panic.

Reviewed by:	pjd
MFC after:	1 week


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