We don't need to convert ip6_len to host byte order before
ip6_output(), the IPv6 stack is working in net byte order.

The reason this code worked before is that ip6_output()
doesn't look at ip6_plen at all and recalculates it based
on mbuf length.


git-svn-id: svn://svn.freebsd.org/base/head@241575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add per-second scheduling into the cron(8). Right now it's
only available via the new @every_second shortcut. ENOTIME to
implement crontab(5) format extensions to allow more flexible
scheduling.

In order to address some concerns expressed by Terry Lambert
while discussing the topic few years ago, about per-second cron
possibly causing some bad effects on /etc/crontab by stat()ing
it every second instead of every minute now (i.e. atime update),
only check that database needs to be reloaded on every 60-th
loop run. This should be close enough to the current behaviour.

Add "@every_minute" shortcut while I am here.

MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@241576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Defaulting to id "0" if ar7240_probe(dev) success, fix warning when building
with DEBUG.

Submitted by:	Luiz Otavio O Souza
Approved by:	adrian (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@241577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Locking for etherswitch framework:
* add lock/unlock methods;
* add lock/unlock default implementation;
* surround switch IOCTLs with locking;
* add lock/unlock implementation for arswitch;

Submitted by:	Luiz Otavio O Souza
Approved by:	adrian (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@241578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Mask data to only 16 bits to be sure on write into switch reg.

Submitted by:	Luiz Otavio O Souza
Approved by:	adrian (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@241579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for the USB DISK Pro PMAP.

This patch has sit for 6 years in the PR database.

PR:		usb/96381
Submitted by:	jhs
Reviewed by:	mav
Approved by:	cperciva (implicit)
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241580 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix minor nits:
use a comma after "i.e."
sentences begin on new lines.

No .Dd bump for trivial modification.

Approved by:	wblock
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a comment describing why r241097 was done.

Suggested by:	rwatson
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@241582 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mx1 -> smarthost.ysv


git-svn-id: svn://svn.freebsd.org/base/head@241583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the adw(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_nameunit() instead of adw_name().
- Remove use of explicit bus space handles and tags.
- Use pci_enable_busmaster() rather than frobbing the PCI command register
  directly.
- Use the softc provided by new-bus rather than allocating a new one.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241588 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the aha(4) driver and mark it MPSAFE.
- Remove use of explicit bus space handles and tags.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the ahb(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Compare pointers against NULL.
- Let new-bus allocate a softc rather than doing it by hand.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the aic(4) driver and mark it MPSAFE.
- Move 'free_scbs' into the softc rather than having it be a global list
  and convert it to an SLIST instead of a hand-rolled linked-list.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Don't call device_set_desc() in the pccard attach routine, instead
  set a default description during the pccard probe if the matching
  product doesn't have a name.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the bt(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Return an errno value from bt_eisa_attach() if an error occurs rather
  than -1.
- Use BUS_PROBE_DEFAULT rather than 0.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add locking to the dpt(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Remove the global dpt_softcs list and use devclass_get_device() instead.
- Use pci_enable_busmaster() rather than frobbing the PCI command register
  directly.

Tested by:	no one


git-svn-id: svn://svn.freebsd.org/base/head@241593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add my new association with bcr and jkois.

Thanks!

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@241595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Exclude potential circular symlink

This does not occur with normal release builds but can happen when reusing
these release parts for other purposes.


git-svn-id: svn://svn.freebsd.org/base/head@241596 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Acquire the rangelock for truncate(2) as well.

Reported and reviewed by:	avg
Tested by:	pho
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@241597 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Split sdhci driver in two parts: sdhci and sdhci_pci.
sdchi encapsulates a generic SD Host Controller logic that relies on
actual hardware driver for register access.

sdhci_pci implements driver for PCI SDHC controllers using new SDHCI
interface

No kernel config modifications are required, but if you load sdhc
as a module you must switch to sdhci_pci instead.


git-svn-id: svn://svn.freebsd.org/base/head@241600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a bunch more example completions.

Submitted by:	wblock
Approved by:	cperciva (implicit)
MFC after:	3 days


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