opnsense-src/sys/dev/usb
Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
OF_getprop_alloc takes element size argument and returns number of
elements in the property. There are valid use cases for such behavior
but mostly API consumers pass 1 as element size to get string
properties. What API users would expect from OF_getprop_alloc is to be
a combination of malloc + OF_getprop with the same semantic of return
value. This patch modifies API signature to match these expectations.

For the valid use cases with element size != 1 and to reduce
modification scope new OF_getprop_alloc_multi function has been
introduced that behaves the same way OF_getprop_alloc behaved prior to
this patch.

Reviewed by:	ian, manu
Differential Revision:	https://reviews.freebsd.org/D14850
2018-04-08 22:59:34 +00:00
..
controller Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
gadget
input Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
misc
net Fix race when detach is called right after attach in if_axge, that the 2018-02-24 08:44:51 +00:00
quirk Add new USB quirk. 2018-02-13 08:13:20 +00:00
serial Flag the first interface on a KTLINK FTDI-based jtag+uart device as being 2018-03-04 17:30:16 +00:00
storage Add SPDX identifiers to linux_ptrace.c and cfumass.c. 2018-01-24 17:04:01 +00:00
template Give USB template SYSUNINIT()'s a uniq name to avoid symbol name collision 2018-02-07 18:46:08 +00:00
video
wlan urtw(4), zyd(4): reduce code verbosity. 2018-03-16 00:38:10 +00:00
ufm_ioctl.h
uftdiio.h
uled_ioctl.h
usb.h
usb_bus.h
usb_busdma.c
usb_busdma.h
usb_cdc.h
usb_controller.h
usb_core.c
usb_core.h
usb_debug.c
usb_debug.h
usb_dev.c
usb_dev.h
usb_device.c Make the handler routine for the hw.usb.template sysctl trigger the USB 2018-01-30 10:08:11 +00:00
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_freebsd.h
usb_freebsd_loader.h
usb_generic.c
usb_generic.h
usb_handle_request.c
usb_hid.c
usb_hub.c Revert redundant parts of r329440 after recent devmatch(8) changes. 2018-02-17 12:38:46 +00:00
usb_hub.h
usb_if.m
usb_ioctl.h
usb_lookup.c Remove unused bus_autoconf section from usb.ko. 2018-02-17 14:44:03 +00:00
usb_mbuf.c
usb_mbuf.h
usb_msctest.c
usb_msctest.h
usb_parse.c
usb_pci.h
usb_pf.c
usb_pf.h
usb_process.c
usb_process.h
usb_request.c
usb_request.h
usb_transfer.c
usb_transfer.h
usb_util.c
usb_util.h
usbdevs Add new USB quirk. 2018-02-13 08:13:20 +00:00
usbdi.h Correct the PNP information generated by the usb driver to match the 2018-02-17 06:57:17 +00:00
usbdi_util.h
usbhid.h