kernel/hptmv: Use __offsetof().
kernel: Use __offsetof() in a few more places.
make upgrade: Remove some reappeared files from the list.

In-discussion-with: pavalos
bce: Setup TX queues before hooking up interrupt vectors
async_rcvd: Fix possible deadlock

It is possible when we try dropping the asynchronized rcvd message, the
message is not on the msgport yet, but sendmsg_stage1 is done, i.e.
MSG_DONE is cleared.  Originally we were waiting for the MSG_DONE to be
set, however, it will _never_ be set, since the message dropping is done
in the netisr and the MSG_DONE will only be turned on when the message
is dequeued and runs in the _same_ netisr.

Fixing this deadlock by keeping dropping the asynchronized rcvd message,
if the message's MSG_DONE flag is not set.

Reported-by: pavalos@
kbdmap: Sync with FreeBSD.

* Let bsd.prog.mk set SRCS and MAN to their default values.
* kbdmap.1 markup fixes and fix path for locale.alias.
* Spelling fix in a comment.
* Place quotes around the output, designed to be pasted into rc.conf.
* Fix fd leak in get_font().
* Use auto-sizing syntax appropriate for the new dialog(1).
* Update files with FreeBSD SVN tags.
* Output keymap choice to stderr so it is easier to parse.
* Use sizeof() for calculating the buffer size instead of hard-coded
  values.
* Fixed two bugs in Perl to C conversion that prevented locale name
  from being parsed correctly.

Obtained-from:   FreeBSD
spkrtest: use new dialog auto-sizing syntax.

Obtained-from:   FreeBSD
tzsetup: Fix VERBOSE reporting when removing _PATH_LOCALTIME for UTC.

Obtained-from:   FreeBSD
rc.d/ldconfig:  Add a mechanism to include files added by dports.

Add a mechanism to include files added by dports which contain
the names of directories to include in the base ldconfig script.
This will eliminate the need for each port to install its own
boot script which does nothing but ldconfig a given directory.

Obtained-from:   FreeBSD
jme: Set TX queue's CPUID before enable/disable interrupt
jme: Setup TX ring CPUID before hooking up interrupt vectors
igb: Setup TX queues before hooking up interrupt vectors
igb: Disable interrupts before setting up the interrupt vectors

The spurious interrupts (even MSI-X, that's amazing) had been observed
on several types of LOMs, before the devices were initialized, which
could potentially crash the system.  Disabling interrupts in hardware
and on serializers before setting up the interrupt vectors should be
enough.

See-also: FreeBSD PR kern/172113
emx: Setup TX queues before hooking up interrupt vectors
pcidevs: Add device id for DLink 520TX C1
pcidevs: regen
rl: Take DLink DFE520TX C1

Obtained-from: FreeBSD 245485
netif: Setup TX ring CPUID before hooking up interrupt vectors
<sys/proc.h>: Make ONLY_LWP_IN_PROC() an inline function.

More readable, plus it also fixes some warnings we were getting with
gcc47 (-Wunused-value).

Thanks for comments to aggelos and vsrinivas.
kernel/netgraph7: Fix -Wcast-qual.