Lines Matching +full:usb +full:- +full:attach
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * DVB USB framework
5 * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de>
12 #include <linux/usb/input.h>
14 #include <media/rc-core.h>
15 #include <media/media-device.h>
21 #include <media/dvb-usb-ids.h>
24 * device file: /dev/dvb/adapter[0-1]/frontend[0-2]
26 * |-- device
27 * | |-- adapter0
28 * | | |-- frontend0
29 * | | |-- frontend1
30 * | | `-- frontend2
31 * | `-- adapter1
32 * | |-- frontend0
33 * | |-- frontend1
34 * | `-- frontend2
45 /* helper macros for every DVB USB driver use */
47 adapter[adap->id]))
48 #define adap_to_priv(adap) (adap_to_d(adap)->priv)
49 #define fe_to_adap(fe) ((struct dvb_usb_adapter *) ((fe)->dvb->priv))
51 #define fe_to_priv(fe) (fe_to_d(fe)->priv)
52 #define d_to_priv(d) (d->priv)
60 dev_dbg(&udev->dev, "%s: %02x %02x %02x %02x %02x %02x %02x %02x " \
103 * struct dvb_usb_driver_info - structure for carrying all needed data from the
105 * dvb usb routines
117 * struct dvb_usb_rc - structure for remote controller configuration
139 * struct usb_data_stream_properties - usb streaming configuration for adapter
142 * @endpoint: stream usb endpoint number
165 * struct dvb_usb_adapter_properties - properties of dvb usb device adapter
167 * @pid_filter_count: pid count of adapter pid-filter
168 * @pid_filter_ctrl: called to enable/disable pid-filter
170 * @stream: adapter usb stream configuration
187 * struct dvb_usb_device_properties - properties of a dvb-usb-device
191 * @bInterfaceNumber: usb interface number driver binds
203 * @i2c_algo: i2c_algorithm if the device has i2c-adapter
204 * @num_adapters: dvb usb device adapter count
209 * @read_mac_address: called to resolve adapter mac-address
210 * @frontend_attach: called to attach the possible frontends
212 * @tuner_attach: called to attach the possible tuners
215 * @streaming_ctrl: called to start/stop the usb streaming of adapter
222 * stream from the demodulator and output stream is usb stream to host.
271 * struct usb_data_stream - generic object of an usb stream
272 * @udev: USB device
310 * struct dvb_usb_adapter - dvb adapter object on dvb usb device
312 * @stream: adapter the usb data stream
326 * @fe_init: rerouted frontend-init function
327 * @fe_sleep: rerouted frontend-sleep function
356 * struct dvb_usb_device - dvb usb device object
365 * @usb_mutex: mutex for usb control messages
366 * @i2c_mutex: mutex for i2c-transfers
367 * @i2c_adap: device's i2c-adapter
372 * @priv: private data of the actual driver (allocate by dvb usb, size defined