Add new flags `-d' (sets debug=1) and `-D file' (sets debugFile) and
improve debugging initialization. Also fixup USAGE statements while we're
here. Also, change initialization of main program to _not_ change working
directory, allowing the debugFile to be relative without confusion.


git-svn-id: svn://svn.freebsd.org/base/head@249746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Initialise this to zero before using it to configure the vlangroup
information.

PR:		kern/177871
Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>


git-svn-id: svn://svn.freebsd.org/base/head@249747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etherswitchcfg(8) crashes when you don't set vlangroup members.
Fix this to require an argument.

PR:		kern/177872
Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>


git-svn-id: svn://svn.freebsd.org/base/head@249748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use new f_getvar for clarity and general code follow-up to r249746.


git-svn-id: svn://svn.freebsd.org/base/head@249749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
UI improvements. First, implement --default-item whenever and wherever
possible to save keystrokes. Second, overhaul startup/rcdelete for much
improved performance. Last, but not least, kill-off useage of --clear
and implement --keep-tite in harmony to minimize jarring transitions.
Also, fix local variable names where necessary while we're here with
other minor comment-enhancements/typo-corrections.


git-svn-id: svn://svn.freebsd.org/base/head@249751 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert over the etherswitch framework to use VLAN IDs per port, rather
than VLAN groups.

Some chips (eg this rtl8366rb) has a VLAN group per port - you first
define a set of VLANs in a vlan group, then you assign a VLAN group
to a port.

Other chips (eg the AR8xxx switch chips) have a VLAN ID array per
port - there's no group per se, just a list of vlans that can be
configured.

So for now, the switch API will use the latter and rely on drivers
doing the heavy lifting if one wishes to use the VLAN group method.
Maybe later on both can be supported.

PR:		kern/177878
PR:		kern/177873
Submitted by:	Luiz Otavio O Souza <loos.br@gmail.com>
Reviewed by:	ray


git-svn-id: svn://svn.freebsd.org/base/head@249752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix two bugs when setting up a plip interface. First, dhcp status was not
being properly cleared each iteration of the loop. Second, values weren't
properly quoted when sent to the editor function.


git-svn-id: svn://svn.freebsd.org/base/head@249753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Style nit (to be consistent across project).


git-svn-id: svn://svn.freebsd.org/base/head@249754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update comment for accuracy.


git-svn-id: svn://svn.freebsd.org/base/head@249755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a copy/paste error.


git-svn-id: svn://svn.freebsd.org/base/head@249756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Proper fix for copy/paste error (first attempt r249756).


git-svn-id: svn://svn.freebsd.org/base/head@249757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
New helper functions for common widgets.


git-svn-id: svn://svn.freebsd.org/base/head@249758 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Clarify to the user the amount of time required to load the menus for
each view in the details dialog.


git-svn-id: svn://svn.freebsd.org/base/head@249759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Initialize GIC_PMRR register on ARM GIC.

Provided by: Thomas Skibo


git-svn-id: svn://svn.freebsd.org/base/head@249762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Panic if UMA_ZONE_PCPU is created at early stages of boot, when mp_ncpus
isn't yet initialized. Otherwise we will panic at first allocation later.

Sponsored by:	Nginx, Inc.


git-svn-id: svn://svn.freebsd.org/base/head@249763 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Keep up with negative addrlen check removal in r249649.


git-svn-id: svn://svn.freebsd.org/base/head@249764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Build uart_dev_lpc.c on arm only.  This fixes pc98 build.


git-svn-id: svn://svn.freebsd.org/base/head@249765 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use a higher TTL (128) for DHCP packets.  This matches the ISC DHCP client.

PR:		bin/170279
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Some BIOSes use an Extended IRQ resource descriptor in _PRS for a link
  that uses non-ISA IRQs but use a plain IRQ resource in _CRS.  However,
  a non-ISA IRQ can't fit into a plain IRQ resource.  If we encounter a
  link like this, build the resource buffer from _PRS instead of _CRS.
- Set the correct size of the end tag in a resource buffer.

Tested by:	Benjamin Lee <ben@b1c1l1.com>
MFC after:	2 weeks


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

PR:		177455


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