Add support for tethering on the iPhone 4S

PR:	usb/179078
Submitted by:	Christopher Sean Hilton <chris@vindaloo.com>
MFC After:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@251109 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a typo in r249213; the second bus_if.h should have been isa_if.h.


git-svn-id: svn://svn.freebsd.org/base/head@251114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Remove pointless returns.
- Make cm_data a void pointer and cm_flags unsigned as appropriate.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@251115 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow unmapped I/O via aacd(4). It shouldn't be too hard to add the
same support for aacp(4), I'm lacking the necessary hardware for
testing, though.


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

Add support for partitioning CFI disks from FDT using geom_flashmap.

Sponsored by:	DARPA, AFRL


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

Intel and Sharp flash power on with their blocks in a "locked" state.
Unlocked them before attempting to perform an erase or write action and
relock when the action is complete.


git-svn-id: svn://svn.freebsd.org/base/head@251118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Basic tests for complex inverse trig and hyperbolic functions.


git-svn-id: svn://svn.freebsd.org/base/head@251119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix some harmless bugs in a test.


git-svn-id: svn://svn.freebsd.org/base/head@251120 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
I'm happy to finally commit stephen@'s implementations of cacos,
cacosh, casin, casinh, catan, and catanh. Thanks to stephen@ and bde@
for working on these.

Submitted by:	stephen@
Reviewed by:	bde


git-svn-id: svn://svn.freebsd.org/base/head@251121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use #ifdef instead of #if defined.

This makes these tests a bit more consistent with the tests done at the
bottom of the file.


git-svn-id: svn://svn.freebsd.org/base/head@251123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add __sync_synchronize().

This function can easily be implemented on top of the mb() macro
provided by <machine/atomic.h>.


git-svn-id: svn://svn.freebsd.org/base/head@251124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV: libpcap 1.4.0.

MFC after:	4 weeks


git-svn-id: svn://svn.freebsd.org/base/head@251129 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
remove use of deprecated ioctl()


git-svn-id: svn://svn.freebsd.org/base/head@251130 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add a compile-time option to copy packets instead of doing
the buffer swapping.


git-svn-id: svn://svn.freebsd.org/base/head@251131 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
add support for rate-limiting in the sender (-R ...)

Obtained from:	Giuseppe Lettieri


git-svn-id: svn://svn.freebsd.org/base/head@251132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Merge from r249476: Ensure that PCI bus BUS_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.
- Sprinkle const on tables.
- Use NULL instead of 0 for pointers.
- Take advantage of nitems().

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@251133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
clarify usage of NETMAP_BUF


git-svn-id: svn://svn.freebsd.org/base/head@251138 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bring in a number of new features, mostly implemented by Michio Honda:

- the VALE switch now support up to 254 destinations per switch,
  unicast or broadcast (multicast goes to all ports).

- we can attach hw interfaces and the host stack to a VALE switch,
  which means we will be able to use it more or less as a native bridge
  (minor tweaks still necessary).
  A 'vale-ctl' program is supplied in tools/tools/netmap
  to attach/detach ports the switch, and list current configuration.

- the lookup function in the VALE switch can be reassigned to
  something else, similar to the pf hooks. This will enable
  attaching the firewall, or other processing functions (e.g. in-kernel
  openvswitch) directly on the netmap port.

The internal API used by device drivers does not change.

Userspace applications should be recompiled because we
bump NETMAP_API as we now use some fields in the struct nmreq
that were previously ignored -- otherwise, data structures
are the same.

Manpages will be committed separately.


git-svn-id: svn://svn.freebsd.org/base/head@251139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Always define INSTALL_DDIR and define it such that it contains no extra
/ characters rather than removing them later on.  This should fix
release builds.

PR:		conf/178963
Reviewed by:	gjb, hrs


git-svn-id: svn://svn.freebsd.org/base/head@251140 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Restore (at least temporarily) SHARED=symlinks in the build includes
stage of buildworld.  This was accidentally included in r251140.

Reported by:	jhb


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