Work around bug on one-pipe 845 devices until we update drm again.
Collect `#ifdef AGP_DEBUG printf(...)' into local DPRINTF macro.
Use DWC2_XFER2DPIPE
#534 destination list hashing not endian neutral
#537 NAT rules with sticky have incorrect hostmap IP address
patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
#ifdef a variable like its usage.
Remove unused variables
Empy comment
Sync getfh() with the native implementation. It also fixes:
a) a return value
b) a vnode lock
c) a user-controlled memory allocation

ok christos@, on tech-kern
This KASSERT can trigger a panic too easily, if SCARG(uap, cmd)=SWAP_OFF and
SCARG(uap, arg)=NULL. The same KASSERT is already in the SWAP_ON switch case,
so just delete it here.
Don't print junk errnos. Avoids:
  % ps -tfoo
  ps: /dev/ttyfoo: Undefined error: 0
  Exit 1