PC-BSD/trueos 250e158sys/amd64/vmm/io iommu.c, sys/arm/allwinner a10_dmac.c a31_dmac.c

Extract eventfilter declarations to sys/_eventfilter.h

This allows replacing "sys/eventfilter.h" includes with "sys/_eventfilter.h"
in other header files (e.g., sys/{bus,conf,cpu}.h) and reduces header
pollution substantially.

EVENTHANDLER_DECLARE and EVENTHANDLER_LIST_DECLAREs were moved out of .c
files into appropriate headers (e.g., sys/proc.h, powernv/opal.h).

As a side effect of reduced header pollution, many .c files and headers no
longer contain needed definitions.  The remainder of the patch addresses
adding appropriate includes to fix those files.

LOCK_DEBUG and LOCK_FILE_LINE_ARG are moved to sys/_lock.h, as required by
sys/mutex.h since r326106 (but silently protected by header pollution prior
to this change).

No functional change (intended).  Of course, any out of tree modules that
relied on header pollution for sys/eventhandler.h, sys/lock.h, or
sys/mutex.h inclusion need to be fixed.  __FreeBSD_version has been bumped.
DeltaFile
+144-0sys/sys/_eventhandler.h
+34-0sys/sys/_lock.h
+0-32sys/sys/lock.h
+1-24sys/sys/eventhandler.h
+10-8sys/dev/mfi/mfi_disk.c
+10-7sys/dev/led/led.c
+9-8sys/vm/swap_pager.c
+15-0sys/sys/proc.h
+8-7sys/dev/pci/pci.c
+8-7sys/dev/tws/tws.h
+7-7sys/cam/ctl/ctl_ha.c
+8-5sys/dev/mfi/mfi_pci.c
+6-7sys/dev/firewire/firewire.c
+7-6sys/powerpc/powernv/opal_console.c
+7-5sys/dev/iir/iir_ctrl.c
+7-4sys/arm/freescale/imx/imx_wdog.c
+7-4sys/arm/broadcom/bcm2835/bcm2835_wdog.c
+6-5sys/dev/watchdog/watchdog.c
+6-4sys/arm/nvidia/tegra_xhci.c
+5-4sys/crypto/aesni/aesni.c
+5-4sys/dev/coretemp/coretemp.c
+6-2sys/dev/ips/ips.c
+5-3sys/net/bpf.c
+4-3sys/dev/pccard/pccard.c
+4-2sys/arm/nvidia/tegra124/tegra124_pmc.c
+1-5sys/kern/init_main.c
+3-3sys/kern/subr_power.c
+3-2sys/powerpc/powernv/opal_sensor.c
+3-2sys/arm/nvidia/tegra124/tegra124_machdep.c
+2-2sys/net/if_clone.h
+2-2sys/net/ethernet.h
+3-1sys/sys/bus.h
+2-2sys/dev/usb/net/if_cdce.c
+2-2sys/dev/usb/serial/u3g.c
+2-2sys/amd64/vmm/io/iommu.c
+3-1sys/dev/mfi/mfi_syspd.c
+3-1sys/arm/versatile/versatile_pci.c
+2-2sys/net/if_vlan_var.h
+0-4sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.c
+1-2sys/net/if_var.h
+3-0sys/dev/iscsi_initiator/iscsivar.h
+2-1sys/sys/interrupt.h
+3-0sys/dev/mlx/mlxvar.h
+2-1sys/arm64/arm64/machdep.c
+3-0sys/dev/mpr/mprvar.h
+3-0sys/dev/mps/mpsvar.h
+1-2sys/dev/smartpqi/smartpqi_includes.h
+2-1sys/dev/ipmi/ipmi_opal.c
+3-0sys/dev/ipmi/ipmi.c
+3-0sys/dev/xdma/xdma_sg.c
+2-1sys/arm/mv/armada/thermal.c
+2-1sys/crypto/blake2/blake2_cryptodev.c
+2-1sys/arm/allwinner/a10/a10_intc.c
+2-1sys/dev/acpi_support/acpi_panasonic.c
+0-3sys/kern/kern_proc.c
+3-0sys/powerpc/powermac/smu.c
+3-0sys/powerpc/powermac/pmu.c
+2-1sys/dev/acpica/acpi_video.c
+3-0sys/powerpc/powermac/cuda.c
+2-1sys/netinet/toecore.h
+2-1sys/dev/iwm/if_iwm_notif_wait.c
+1-2sys/net/bpf.h
+2-0sys/dev/adb/adb_mouse.c
+2-0sys/arm/allwinner/a10_dmac.c
+2-0sys/arm/allwinner/a31_dmac.c
+2-0sys/arm/allwinner/aw_ccu.c
+2-0sys/arm/allwinner/aw_reset.c
+2-0sys/arm/allwinner/aw_rsb.c
+2-0sys/arm/allwinner/aw_spi.c
+2-0sys/arm/allwinner/clkng/aw_ccung.c
+2-0sys/arm/arm/pl190.c
+2-0sys/arm/broadcom/bcm2835/bcm2836.c
+2-0sys/arm/mv/mv_spi.c
+2-0sys/arm/ti/ti_pruss.c
+2-0sys/arm/versatile/versatile_sic.c
+2-0sys/arm64/arm64/gicv3_its.c
+2-0sys/arm64/coresight/coresight.c
+2-0sys/arm64/rockchip/clk/rk_cru.c
+2-0sys/cam/cam_periph.h
+1-1sys/cddl/compat/opensolaris/kern/opensolaris.c
+2-0sys/crypto/armv8/armv8_crypto.c
+1-1sys/crypto/ccp/ccp.c
+1-1sys/crypto/ccp/ccp_hardware.c
+1-1sys/dev/acpica/acpivar.h
+2-0sys/dev/adb/adb_kbd.c
+2-0sys/dev/cmx/cmx.c
+2-0sys/dev/dcons/dcons_os.h
+2-0sys/dev/evdev/evdev_private.h
+2-0sys/dev/ida/ida_disk.c
+2-0sys/dev/ida/ida_pci.c
+2-0sys/dev/iscsi/icl_soft_proxy.c
+2-0sys/dev/mmc/host/dwmmc.c
+2-0sys/dev/ow/ow.c
+2-0sys/dev/pci/pci_iov.c
+2-0sys/dev/pci/pci_pci.c
+1-1sys/dev/pci/pcivar.h
+2-0sys/dev/scc/scc_core.c
+2-0sys/dev/scc/scc_dev_quicc.c
+2-0sys/dev/scc/scc_dev_sab82532.c
+2-0sys/dev/scc/scc_dev_z8530.c
+1-1sys/dev/usb/net/uhso.c
+1-1sys/dev/usb/usb_device.c
+1-1sys/dev/usb/usbdi.h
+1-1sys/dev/vmware/vmci/vmci.c
+2-0sys/dev/vt/vt_cpulogos.c
+2-0sys/dev/vt/vt_sysmouse.c
+2-0sys/dev/xdma/xdma_bank.c
+2-0sys/dev/xdma/xdma_bio.c
+2-0sys/dev/xdma/xdma_mbuf.c
+2-0sys/dev/xdma/xdma_queue.c
+2-0sys/dev/xen/debug/debug.c
+1-1sys/kern/bus_if.m
+0-2sys/kern/kern_exec.c
+0-2sys/kern/kern_exit.c
+0-2sys/kern/kern_fork.c
+2-0sys/kern/subr_intr.c
+2-0sys/mips/atheros/ar71xx_machdep.c
+2-0sys/net/bpf_buffer.c
+1-1sys/net/if.c
+1-1sys/net/if_llatbl.h
+1-1sys/netinet/tcp_offload.c
+2-0sys/powerpc/powermac/cpcht.c
+1-1sys/powerpc/powernv/opal.h
+1-1sys/powerpc/powernv/opal_async.c
+2-0sys/powerpc/powernv/xive.c
+2-0sys/powerpc/powerpc/cpu.c
+2-0sys/powerpc/ps3/ps3bus.c
+2-0sys/powerpc/pseries/xics.c
+2-0sys/security/audit/audit_trigger.c
+1-1sys/sys/conf.h
+1-1sys/sys/cpu.h
+1-1sys/sys/param.h
+1-1sys/sys/power.h
+1-1sys/sys/watchdog.h
+1-1sys/x86/acpica/OsdEnvironment.c
+1-0sys/kern/subr_bus_dma.c
+1-0sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
+1-0sys/dev/extres/syscon/syscon_generic.c
+1-0sys/kern/tty_tty.c
+1-0sys/kern/vfs_mountroot.c
+1-0sys/arm/ti/ti_wdt.c
+1-0sys/mips/atheros/ar71xx_wdog.c
+1-0sys/dev/dcons/dcons_os.c
+1-0sys/dev/dcons/dcons_crom.c
+1-0sys/arm/mv/timer.c
+1-0sys/dev/cxgbe/tom/t4_tls.c
+1-0sys/x86/x86/tsc.c
+1-0sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+1-0sys/net/if_llatbl.c
+1-0sys/x86/cpufreq/smist.c
+1-0sys/net/if_tuntap.c
+1-0sys/dev/cxgbe/cxgbei/cxgbei.c
+1-0sys/dev/cardbus/cardbus.c
+1-0sys/netinet/if_ether.c
+1-0sys/arm/mv/armada/wdt.c
+1-0sys/netinet/toecore.c
+1-0sys/dev/atkbdc/psm.c
+1-0sys/netinet6/nd6.c
+1-0sys/netinet6/nd6_nbr.c
+1-0sys/powerpc/ofw/ofw_machdep.c
+1-0sys/arm/broadcom/bcm2835/bcm2835_rng.c
+1-0sys/dev/amdsbwd/amdsbwd.c
+1-0sys/dev/acpica/acpi_thermal.c
+1-0sys/dev/acpica/acpi_lid.c
+1-0sys/powerpc/powermac/vcoregpio.c
+1-0sys/arm/arm/machdep.c
+1-0sys/x86/iommu/intel_drv.c
+1-0sys/dev/ntb/ntb_hw/ntb_hw_intel.c
+1-0sys/dev/sound/pcm/sound.h
+1-0sys/dev/ntb/if_ntb/if_ntb.c
+1-0sys/dev/nmdm/nmdm.c
+1-0sys/dev/usb/net/if_usie.c
+1-0sys/dev/acpica/acpi.c
+1-0sys/dev/mrsas/mrsas.h
+1-0sys/powerpc/powernv/opal_dev.c
+1-0sys/powerpc/powernv/opal_flash.c
+1-0sys/dev/usb/wlan/if_run.c
+1-0sys/dev/viawd/viawd.c
+1-0sys/dev/vkbd/vkbd.c
+1-0sys/ddb/db_command.c
+1-0sys/sys/pcpu.h
+1-0sys/x86/iommu/intel_intrmap.c
+1-0sys/dev/liquidio/lio_bsd.h
+1-0sys/dev/xdma/xdma.c
+1-0sys/powerpc/powerpc/openpic.c
+1-0sys/arm/allwinner/aw_wdog.c
+1-0sys/powerpc/pseries/rtas_dev.c
+1-0sys/x86/iommu/intel_quirks.c
+1-0sys/dev/ioat/ioat.c
+1-0sys/dev/xen/console/xen_console.c
+1-0sys/riscv/riscv/intr_machdep.c
+1-0sys/fs/devfs/devfs_vnops.c
+1-0sys/i386/i386/elan-mmcr.c
+1-0sys/i386/i386/geode.c
+1-0sys/i386/i386/longrun.c
+1-0sys/riscv/riscv/machdep.c
+1-0sys/dev/ichwd/ichwd.c
+1-0sys/kern/kern_clock.c
+1-0sys/riscv/riscv/mp_machdep.c
+1-0sys/security/audit/audit.c
+1-0sys/arm/allwinner/aw_thermal.c
+1-0sys/dev/firewire/fwohci.c
+596-235202 files

UnifiedSplitRaw