opnsense-src/sys/dev/usb/controller
Hans Petter Selasky 3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag to automatically check if
there is an environment variable which shall initialize the SYSCTL
during early boot. This works for all SYSCTL types both statically and
dynamically created ones, except for the SYSCTL NODE type and SYSCTLs
which belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added to
be used in the case a tunable sysctl has a custom initialisation
function allowing the sysctl to still be marked as a tunable. The
kernel SYSCTL API is mostly the same, with a few exceptions for some
special operations like iterating childrens of a static/extern SYSCTL
node. This operation should probably be made into a factored out
common macro, hence some device drivers use this. The reason for
changing the SYSCTL API was the need for a SYSCTL parent OID pointer
and not only the SYSCTL parent OID list pointer in order to quickly
generate the sysctl path. The motivation behind this patch is to avoid
parameter loading cludges inside the OFED driver subsystem. Instead of
adding special code to the OFED driver subsystem to post-load tunables
into dynamically created sysctls, we generalize this in the kernel.

Other changes:
- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"
to "hw.pcic.intr_mask".
- Removed redundant TUNABLE statements throughout the kernel.
- Some minor code rewrites in connection to removing not needed
TUNABLE statements.
- Added a missing SYSCTL_DECL().
- Wrapped two very long lines.
- Avoid malloc()/free() inside sysctl string handling, in case it is
called to initialize a sysctl from a tunable, hence malloc()/free() is
not ready when sysctls from the sysctl dataset are registered.
- Bumped FreeBSD version to indicate SYSCTL API change.

MFC after:	2 weeks
Sponsored by:	Mellanox Technologies
2014-06-27 16:33:43 +00:00
..
at91dci.c - Isochronous transfers should use the alternate next transfer 2014-05-13 13:46:38 +00:00
at91dci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
at91dci_atmelarm.c Remove FreeBSD 6 support 2014-02-08 04:29:36 +00:00
at91dci_fdt.c Add device and gadget bindings for fdt. These are preliminary and will 2014-02-28 03:00:31 +00:00
atmegadci.c - Isochronous transfers should use the alternate next transfer 2014-05-13 13:46:38 +00:00
atmegadci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
atmegadci_atmelarm.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
avr32dci.c - Isochronous transfers should use the alternate next transfer 2014-05-13 13:46:38 +00:00
avr32dci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
dwc_otg.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
dwc_otg.h Some further DWC OTG improvements for full speed and low speed devices: 2014-06-07 07:23:17 +00:00
dwc_otg_fdt.c - Add softc pointer argument to FIFO functions as an optimisation. 2014-05-18 09:13:29 +00:00
dwc_otgreg.h Multiple DWC OTG host mode related fixes and improvements: 2014-05-09 14:23:06 +00:00
ehci.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
ehci.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
ehci_fsl.c Follow r261352 by updating all drivers which are children of simplebus 2014-02-02 19:17:28 +00:00
ehci_imx.c Stop calling imx51_ccm_foo() clock functions from imx6 code. Instead 2014-04-26 16:48:09 +00:00
ehci_ixp4xx.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
ehci_mv.c Follow r261352 by updating all drivers which are children of simplebus 2014-02-02 19:17:28 +00:00
ehci_pci.c Add some more IDs for Intel ATA, AHCI and USB controllers. 2013-11-15 10:28:59 +00:00
ehcireg.h The EHCI_CAPLENGTH and EHCI_HCIVERSION registers are actually sub-registers 2010-10-25 15:51:43 +00:00
musb_otg.c - Verify that we don't load more data into a FIFO than it is 2014-06-05 18:23:51 +00:00
musb_otg.h - Verify that we don't load more data into a FIFO than it is 2014-06-05 18:23:51 +00:00
musb_otg_atmelarm.c - Add initial host mode support for Mentor Graphics USB OTG controller 2013-07-07 04:18:35 +00:00
ohci.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
ohci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
ohci_atmelarm.c Remove FreeBSD 6 support 2014-02-08 04:29:36 +00:00
ohci_fdt.c Add device and gadget bindings for fdt. These are preliminary and will 2014-02-28 03:00:31 +00:00
ohci_pci.c Fix some USB controller names according to pciconf output. 2013-08-17 06:29:45 +00:00
ohci_s3c24x0.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
ohcireg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 10:18:03 +00:00
saf1761_otg.c Need to check the transfer cache field in the device done function 2014-06-05 18:19:48 +00:00
saf1761_otg.h Optimise the ISP/SAF1761 driver: 2014-05-29 10:06:18 +00:00
saf1761_otg_boot.c Add ISP/SAF1761 bootloader bus interface file. 2014-05-30 13:42:11 +00:00
saf1761_otg_fdt.c Hook the ISP/SAF1761 driver into MIPS kernel builds. 2014-05-29 10:46:09 +00:00
saf1761_otg_reg.h Add basic support for isochronous transfers in host mode to the 2014-06-01 10:22:18 +00:00
uhci.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
uhci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
uhci_pci.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
uhcireg.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 10:18:03 +00:00
usb_controller.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
uss820dci.c - Isochronous transfers should use the alternate next transfer 2014-05-13 13:46:38 +00:00
uss820dci.h Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
uss820dci_atmelarm.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
xhci.c Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
xhci.h Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel 2014-04-27 15:41:44 +00:00
xhci_pci.c Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel 2014-04-27 15:41:44 +00:00
xhcireg.h Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel 2014-04-27 15:41:44 +00:00