]>
Commit | Line | Data |
---|---|---|
776338e1 JS |
1 | /* dvb-usb.h is part of the DVB USB library. |
2 | * | |
4d43e13f | 3 | * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@desy.de) |
776338e1 JS |
4 | * see dvb-usb-init.c for copyright information. |
5 | * | |
6 | * the headerfile, all dvb-usb-drivers have to include. | |
4d43e13f PB |
7 | * |
8 | * TODO: clean-up the structures for unused fields and update the comments | |
776338e1 JS |
9 | */ |
10 | #ifndef __DVB_USB_H__ | |
11 | #define __DVB_USB_H__ | |
12 | ||
776338e1 | 13 | #include <linux/input.h> |
776338e1 | 14 | #include <linux/usb.h> |
d3707add | 15 | #include <linux/firmware.h> |
3593cab5 | 16 | #include <linux/mutex.h> |
6bda9644 | 17 | #include <media/rc-core.h> |
776338e1 JS |
18 | |
19 | #include "dvb_frontend.h" | |
20 | #include "dvb_demux.h" | |
21 | #include "dvb_net.h" | |
22 | #include "dmxdev.h" | |
23 | ||
24 | #include "dvb-pll.h" | |
25 | ||
26 | #include "dvb-usb-ids.h" | |
27 | ||
28 | /* debug */ | |
29 | #ifdef CONFIG_DVB_USB_DEBUG | |
30 | #define dprintk(var,level,args...) \ | |
31 | do { if ((var & level)) { printk(args); } } while (0) | |
32 | ||
33 | #define debug_dump(b,l,func) {\ | |
34 | int loop_; \ | |
35 | for (loop_ = 0; loop_ < l; loop_++) func("%02x ", b[loop_]); \ | |
36 | func("\n");\ | |
37 | } | |
38 | #define DVB_USB_DEBUG_STATUS | |
39 | #else | |
40 | #define dprintk(args...) | |
41 | #define debug_dump(b,l,func) | |
42 | ||
43 | #define DVB_USB_DEBUG_STATUS " (debugging is not enabled)" | |
44 | ||
45 | #endif | |
46 | ||
47 | /* generic log methods - taken from usb.h */ | |
48 | #ifndef DVB_USB_LOG_PREFIX | |
49 | #define DVB_USB_LOG_PREFIX "dvb-usb (please define a log prefix)" | |
50 | #endif | |
51 | ||
52 | #undef err | |
53 | #define err(format, arg...) printk(KERN_ERR DVB_USB_LOG_PREFIX ": " format "\n" , ## arg) | |
54 | #undef info | |
55 | #define info(format, arg...) printk(KERN_INFO DVB_USB_LOG_PREFIX ": " format "\n" , ## arg) | |
56 | #undef warn | |
57 | #define warn(format, arg...) printk(KERN_WARNING DVB_USB_LOG_PREFIX ": " format "\n" , ## arg) | |
58 | ||
59 | /** | |
60 | * struct dvb_usb_device_description - name and its according USB IDs | |
61 | * @name: real name of the box, regardless which DVB USB device class is in use | |
62 | * @cold_ids: array of struct usb_device_id which describe the device in | |
63 | * pre-firmware state | |
64 | * @warm_ids: array of struct usb_device_id which describe the device in | |
65 | * post-firmware state | |
66 | * | |
67 | * Each DVB USB device class can have one or more actual devices, this struct | |
68 | * assigns a name to it. | |
69 | */ | |
70 | struct dvb_usb_device_description { | |
71 | const char *name; | |
72 | ||
73 | #define DVB_USB_ID_MAX_NUM 15 | |
74 | struct usb_device_id *cold_ids[DVB_USB_ID_MAX_NUM]; | |
75 | struct usb_device_id *warm_ids[DVB_USB_ID_MAX_NUM]; | |
76 | }; | |
77 | ||
2f4f58d6 | 78 | static inline u8 rc5_custom(struct rc_map_table *key) |
2e365883 | 79 | { |
34abf219 | 80 | return (key->scancode >> 8) & 0xff; |
2e365883 MCC |
81 | } |
82 | ||
2f4f58d6 | 83 | static inline u8 rc5_data(struct rc_map_table *key) |
2e365883 | 84 | { |
34abf219 | 85 | return key->scancode & 0xff; |
2e365883 MCC |
86 | } |
87 | ||
147b68cd | 88 | static inline u16 rc5_scan(struct rc_map_table *key) |
2e365883 | 89 | { |
34abf219 | 90 | return key->scancode & 0xffff; |
2e365883 MCC |
91 | } |
92 | ||
776338e1 | 93 | struct dvb_usb_device; |
4d43e13f PB |
94 | struct dvb_usb_adapter; |
95 | struct usb_data_stream; | |
776338e1 JS |
96 | |
97 | /** | |
136cafbf PB |
98 | * Properties of USB streaming - TODO this structure should be somewhere else |
99 | * describes the kind of USB transfer used for data-streaming. | |
4d43e13f PB |
100 | * (BULK or ISOC) |
101 | */ | |
102 | struct usb_data_stream_properties { | |
103 | #define USB_BULK 1 | |
104 | #define USB_ISOC 2 | |
105 | int type; | |
106 | int count; | |
107 | int endpoint; | |
108 | ||
109 | union { | |
110 | struct { | |
111 | int buffersize; /* per URB */ | |
112 | } bulk; | |
113 | struct { | |
114 | int framesperurb; | |
115 | int framesize; | |
116 | int interval; | |
117 | } isoc; | |
118 | } u; | |
119 | }; | |
120 | ||
121 | /** | |
122 | * struct dvb_usb_adapter_properties - properties of a dvb-usb-adapter. | |
123 | * A DVB-USB-Adapter is basically a dvb_adapter which is present on a USB-device. | |
be787ace | 124 | * @caps: capabilities of the DVB USB device. |
776338e1 JS |
125 | * @pid_filter_count: number of PID filter position in the optional hardware |
126 | * PID-filter. | |
9bd9e3bd AP |
127 | * @num_frontends: number of frontends of the DVB USB adapter. |
128 | * @frontend_ctrl: called to power on/off active frontend. | |
09129f0d | 129 | * @streaming_ctrl: called to start and stop the MPEG2-TS streaming of the |
4d43e13f PB |
130 | * device (not URB submitting/killing). |
131 | * @pid_filter_ctrl: called to en/disable the PID filter, if any. | |
132 | * @pid_filter: called to set/unset a PID for filtering. | |
133 | * @frontend_attach: called to attach the possible frontends (fill fe-field | |
134 | * of struct dvb_usb_device). | |
135 | * @tuner_attach: called to attach the correct tuner and to fill pll_addr, | |
136 | * pll_desc and pll_init_buf of struct dvb_usb_device). | |
137 | * @stream: configuration of the USB streaming | |
138 | */ | |
77eed219 | 139 | struct dvb_usb_adapter_fe_properties { |
4d43e13f PB |
140 | #define DVB_USB_ADAP_HAS_PID_FILTER 0x01 |
141 | #define DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF 0x02 | |
142 | #define DVB_USB_ADAP_NEED_PID_FILTERING 0x04 | |
0540c496 | 143 | #define DVB_USB_ADAP_RECEIVES_204_BYTE_TS 0x08 |
379aa4d0 | 144 | #define DVB_USB_ADAP_RECEIVES_RAW_PAYLOAD 0x10 |
4d43e13f PB |
145 | int caps; |
146 | int pid_filter_count; | |
147 | ||
148 | int (*streaming_ctrl) (struct dvb_usb_adapter *, int); | |
149 | int (*pid_filter_ctrl) (struct dvb_usb_adapter *, int); | |
150 | int (*pid_filter) (struct dvb_usb_adapter *, int, u16, int); | |
151 | ||
152 | int (*frontend_attach) (struct dvb_usb_adapter *); | |
153 | int (*tuner_attach) (struct dvb_usb_adapter *); | |
154 | ||
155 | struct usb_data_stream_properties stream; | |
156 | ||
157 | int size_of_priv; | |
77eed219 MK |
158 | }; |
159 | ||
52660885 | 160 | #define MAX_NO_OF_FE_PER_ADAP 3 |
77eed219 MK |
161 | struct dvb_usb_adapter_properties { |
162 | int size_of_priv; | |
94d98314 | 163 | |
77eed219 | 164 | int (*frontend_ctrl) (struct dvb_frontend *, int); |
94d98314 MK |
165 | int (*fe_ioctl_override) (struct dvb_frontend *, |
166 | unsigned int, void *, unsigned int); | |
77eed219 MK |
167 | |
168 | int num_frontends; | |
169 | struct dvb_usb_adapter_fe_properties fe[MAX_NO_OF_FE_PER_ADAP]; | |
4d43e13f PB |
170 | }; |
171 | ||
f72a27b8 MCC |
172 | /** |
173 | * struct dvb_rc_legacy - old properties of remote controller | |
2f4f58d6 | 174 | * @rc_map_table: a hard-wired array of struct rc_map_table (NULL to disable |
f72a27b8 | 175 | * remote control handling). |
2f4f58d6 | 176 | * @rc_map_size: number of items in @rc_map_table. |
f72a27b8 MCC |
177 | * @rc_query: called to query an event event. |
178 | * @rc_interval: time in ms between two queries. | |
179 | */ | |
180 | struct dvb_rc_legacy { | |
181 | /* remote control properties */ | |
182 | #define REMOTE_NO_KEY_PRESSED 0x00 | |
183 | #define REMOTE_KEY_PRESSED 0x01 | |
184 | #define REMOTE_KEY_REPEAT 0x02 | |
2f4f58d6 MCC |
185 | struct rc_map_table *rc_map_table; |
186 | int rc_map_size; | |
f72a27b8 MCC |
187 | int (*rc_query) (struct dvb_usb_device *, u32 *, int *); |
188 | int rc_interval; | |
189 | }; | |
190 | ||
6520342b MCC |
191 | /** |
192 | * struct dvb_rc properties of remote controller, using rc-core | |
193 | * @rc_codes: name of rc codes table | |
0ffd1ab3 | 194 | * @protocol: type of protocol(s) currently used by the driver |
d8b4b582 | 195 | * @allowed_protos: protocol(s) supported by the driver |
739ff04f | 196 | * @driver_type: Used to point if a device supports raw mode |
d8b4b582 | 197 | * @change_protocol: callback to change protocol |
6520342b MCC |
198 | * @rc_query: called to query an event event. |
199 | * @rc_interval: time in ms between two queries. | |
6520342b MCC |
200 | * @bulk_mode: device supports bulk mode for RC (disable polling mode) |
201 | */ | |
202 | struct dvb_rc { | |
203 | char *rc_codes; | |
0ffd1ab3 | 204 | u64 protocol; |
d8b4b582 | 205 | u64 allowed_protos; |
739ff04f | 206 | enum rc_driver_type driver_type; |
52b66144 | 207 | int (*change_protocol)(struct rc_dev *dev, u64 rc_type); |
6520342b MCC |
208 | char *module_name; |
209 | int (*rc_query) (struct dvb_usb_device *d); | |
210 | int rc_interval; | |
6520342b MCC |
211 | bool bulk_mode; /* uses bulk mode */ |
212 | }; | |
213 | ||
214 | /** | |
215 | * enum dvb_usb_mode - Specifies if it is using a legacy driver or a new one | |
216 | * based on rc-core | |
217 | * This is initialized/used only inside dvb-usb-remote.c. | |
218 | * It shouldn't be set by the drivers. | |
219 | */ | |
220 | enum dvb_usb_mode { | |
221 | DVB_RC_LEGACY, | |
222 | DVB_RC_CORE, | |
223 | }; | |
224 | ||
4d43e13f PB |
225 | /** |
226 | * struct dvb_usb_device_properties - properties of a dvb-usb-device | |
776338e1 JS |
227 | * @usb_ctrl: which USB device-side controller is in use. Needed for firmware |
228 | * download. | |
229 | * @firmware: name of the firmware file. | |
d3707add PB |
230 | * @download_firmware: called to download the firmware when the usb_ctrl is |
231 | * DEVICE_SPECIFIC. | |
232 | * @no_reconnect: device doesn't do a reconnect after downloading the firmware, | |
4d43e13f PB |
233 | * so do the warm initialization right after it |
234 | * | |
776338e1 JS |
235 | * @size_of_priv: how many bytes shall be allocated for the private field |
236 | * of struct dvb_usb_device. | |
237 | * | |
238 | * @power_ctrl: called to enable/disable power of the device. | |
776338e1 | 239 | * @read_mac_address: called to read the MAC address of the device. |
776338e1 JS |
240 | * @identify_state: called to determine the state (cold or warm), when it |
241 | * is not distinguishable by the USB IDs. | |
242 | * | |
f72a27b8 | 243 | * @rc: remote controller properties |
776338e1 JS |
244 | * |
245 | * @i2c_algo: i2c_algorithm if the device has I2CoverUSB. | |
246 | * | |
247 | * @generic_bulk_ctrl_endpoint: most of the DVB USB devices have a generic | |
248 | * endpoint which received control messages with bulk transfers. When this | |
249 | * is non-zero, one can use dvb_usb_generic_rw and dvb_usb_generic_write- | |
250 | * helper functions. | |
251 | * | |
4605664b MK |
252 | * @generic_bulk_ctrl_endpoint_response: some DVB USB devices use a separate |
253 | * endpoint for responses to control messages sent with bulk transfers via | |
254 | * the generic_bulk_ctrl_endpoint. When this is non-zero, this will be used | |
255 | * instead of the generic_bulk_ctrl_endpoint when reading usb responses in | |
256 | * the dvb_usb_generic_rw helper function. | |
257 | * | |
776338e1 JS |
258 | * @num_device_descs: number of struct dvb_usb_device_description in @devices |
259 | * @devices: array of struct dvb_usb_device_description compatibles with these | |
260 | * properties. | |
261 | */ | |
4d43e13f PB |
262 | #define MAX_NO_OF_ADAPTER_PER_DEVICE 2 |
263 | struct dvb_usb_device_properties { | |
776338e1 | 264 | |
4d43e13f | 265 | #define DVB_USB_IS_AN_I2C_ADAPTER 0x01 |
776338e1 | 266 | int caps; |
776338e1 | 267 | |
d3707add PB |
268 | #define DEVICE_SPECIFIC 0 |
269 | #define CYPRESS_AN2135 1 | |
270 | #define CYPRESS_AN2235 2 | |
271 | #define CYPRESS_FX2 3 | |
136cafbf PB |
272 | int usb_ctrl; |
273 | int (*download_firmware) (struct usb_device *, const struct firmware *); | |
56aec8d8 | 274 | const char *firmware; |
136cafbf | 275 | int no_reconnect; |
776338e1 JS |
276 | |
277 | int size_of_priv; | |
278 | ||
4d43e13f PB |
279 | int num_adapters; |
280 | struct dvb_usb_adapter_properties adapter[MAX_NO_OF_ADAPTER_PER_DEVICE]; | |
776338e1 | 281 | |
4d43e13f | 282 | int (*power_ctrl) (struct dvb_usb_device *, int); |
776338e1 | 283 | int (*read_mac_address) (struct dvb_usb_device *, u8 []); |
4d43e13f | 284 | int (*identify_state) (struct usb_device *, struct dvb_usb_device_properties *, |
776338e1 JS |
285 | struct dvb_usb_device_description **, int *); |
286 | ||
6520342b MCC |
287 | struct { |
288 | enum dvb_usb_mode mode; /* Drivers shouldn't touch on it */ | |
f72a27b8 | 289 | struct dvb_rc_legacy legacy; |
6520342b | 290 | struct dvb_rc core; |
f72a27b8 | 291 | } rc; |
776338e1 JS |
292 | |
293 | struct i2c_algorithm *i2c_algo; | |
294 | ||
295 | int generic_bulk_ctrl_endpoint; | |
4605664b | 296 | int generic_bulk_ctrl_endpoint_response; |
776338e1 | 297 | |
776338e1 | 298 | int num_device_descs; |
513846ec | 299 | struct dvb_usb_device_description devices[12]; |
776338e1 JS |
300 | }; |
301 | ||
776338e1 | 302 | /** |
4d43e13f | 303 | * struct usb_data_stream - generic object of an USB stream |
7f5fee57 PB |
304 | * @buf_num: number of buffer allocated. |
305 | * @buf_size: size of each buffer in buf_list. | |
306 | * @buf_list: array containing all allocate buffers for streaming. | |
307 | * @dma_addr: list of dma_addr_t for each buffer in buf_list. | |
308 | * | |
776338e1 JS |
309 | * @urbs_initialized: number of URBs initialized. |
310 | * @urbs_submitted: number of URBs submitted. | |
4d43e13f PB |
311 | */ |
312 | #define MAX_NO_URBS_FOR_DATA_STREAM 10 | |
313 | struct usb_data_stream { | |
136cafbf PB |
314 | struct usb_device *udev; |
315 | struct usb_data_stream_properties props; | |
4d43e13f PB |
316 | |
317 | #define USB_STATE_INIT 0x00 | |
318 | #define USB_STATE_URB_BUF 0x01 | |
319 | int state; | |
320 | ||
321 | void (*complete) (struct usb_data_stream *, u8 *, size_t); | |
322 | ||
136cafbf PB |
323 | struct urb *urb_list[MAX_NO_URBS_FOR_DATA_STREAM]; |
324 | int buf_num; | |
325 | unsigned long buf_size; | |
326 | u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; | |
327 | dma_addr_t dma_addr[MAX_NO_URBS_FOR_DATA_STREAM]; | |
4d43e13f PB |
328 | |
329 | int urbs_initialized; | |
330 | int urbs_submitted; | |
331 | ||
332 | void *user_priv; | |
333 | }; | |
334 | ||
335 | /** | |
336 | * struct dvb_usb_adapter - a DVB adapter on a USB device | |
337 | * @id: index of this adapter (starting with 0). | |
338 | * | |
776338e1 JS |
339 | * @feedcount: number of reqested feeds (used for streaming-activation) |
340 | * @pid_filtering: is hardware pid_filtering used or not. | |
7f5fee57 | 341 | * |
776338e1 JS |
342 | * @pll_addr: I2C address of the tuner for programming |
343 | * @pll_init: array containing the initialization buffer | |
344 | * @pll_desc: pointer to the appropriate struct dvb_pll_desc | |
7f5fee57 | 345 | * @tuner_pass_ctrl: called to (de)activate tuner passthru of the demod or the board |
136cafbf | 346 | * |
776338e1 JS |
347 | * @dvb_adap: device's dvb_adapter. |
348 | * @dmxdev: device's dmxdev. | |
349 | * @demux: device's software demuxer. | |
350 | * @dvb_net: device's dvb_net interfaces. | |
351 | * @dvb_frontend: device's frontend. | |
352 | * @max_feed_count: how many feeds can be handled simultaneously by this | |
353 | * device | |
136cafbf PB |
354 | * |
355 | * @fe_init: rerouted frontend-init (wakeup) function. | |
776338e1 | 356 | * @fe_sleep: rerouted frontend-sleep function. |
136cafbf | 357 | * |
4d43e13f PB |
358 | * @stream: the usb data stream. |
359 | */ | |
77eed219 MK |
360 | struct dvb_usb_fe_adapter { |
361 | struct dvb_frontend *fe; | |
362 | ||
363 | int (*fe_init) (struct dvb_frontend *); | |
364 | int (*fe_sleep) (struct dvb_frontend *); | |
365 | ||
366 | struct usb_data_stream stream; | |
367 | ||
368 | int pid_filtering; | |
369 | int max_feed_count; | |
370 | ||
371 | void *priv; | |
372 | }; | |
373 | ||
4d43e13f PB |
374 | struct dvb_usb_adapter { |
375 | struct dvb_usb_device *dev; | |
376 | struct dvb_usb_adapter_properties props; | |
377 | ||
378 | #define DVB_USB_ADAP_STATE_INIT 0x000 | |
379 | #define DVB_USB_ADAP_STATE_DVB 0x001 | |
380 | int state; | |
381 | ||
136cafbf | 382 | u8 id; |
4d43e13f PB |
383 | |
384 | int feedcount; | |
4d43e13f | 385 | |
4d43e13f PB |
386 | /* dvb */ |
387 | struct dvb_adapter dvb_adap; | |
388 | struct dmxdev dmxdev; | |
389 | struct dvb_demux demux; | |
390 | struct dvb_net dvb_net; | |
4d43e13f | 391 | |
77eed219 MK |
392 | struct dvb_usb_fe_adapter fe_adap[MAX_NO_OF_FE_PER_ADAP]; |
393 | int active_fe; | |
394 | int num_frontends_initialized; | |
4d43e13f PB |
395 | |
396 | void *priv; | |
397 | }; | |
398 | ||
399 | /** | |
400 | * struct dvb_usb_device - object of a DVB USB device | |
401 | * @props: copy of the struct dvb_usb_properties this device belongs to. | |
402 | * @desc: pointer to the device's struct dvb_usb_device_description. | |
403 | * @state: initialization and runtime state of the device. | |
404 | * | |
a37ddced PB |
405 | * @powered: indicated whether the device is power or not. |
406 | * Powered is in/decremented for each call to modify the state. | |
4d43e13f PB |
407 | * @udev: pointer to the device's struct usb_device. |
408 | * | |
409 | * @usb_mutex: semaphore of USB control messages (reading needs two messages) | |
410 | * @i2c_mutex: semaphore for i2c-transfers | |
411 | * | |
412 | * @i2c_adap: device's i2c_adapter if it uses I2CoverUSB | |
413 | * | |
d8b4b582 DH |
414 | * @rc_dev: rc device for the remote control (rc-core mode) |
415 | * @input_dev: input device for the remote control (legacy mode) | |
776338e1 JS |
416 | * @rc_query_work: struct work_struct frequent rc queries |
417 | * @last_event: last triggered event | |
418 | * @last_state: last state (no, pressed, repeat) | |
419 | * @owner: owner of the dvb_adapter | |
420 | * @priv: private data of the actual driver (allocate by dvb-usb, size defined | |
421 | * in size_of_priv of dvb_usb_properties). | |
422 | */ | |
423 | struct dvb_usb_device { | |
4d43e13f | 424 | struct dvb_usb_device_properties props; |
776338e1 JS |
425 | struct dvb_usb_device_description *desc; |
426 | ||
776338e1 | 427 | struct usb_device *udev; |
7f5fee57 | 428 | |
4d43e13f PB |
429 | #define DVB_USB_STATE_INIT 0x000 |
430 | #define DVB_USB_STATE_I2C 0x001 | |
431 | #define DVB_USB_STATE_DVB 0x002 | |
432 | #define DVB_USB_STATE_REMOTE 0x004 | |
433 | int state; | |
776338e1 | 434 | |
4d43e13f | 435 | int powered; |
776338e1 JS |
436 | |
437 | /* locking */ | |
3593cab5 | 438 | struct mutex usb_mutex; |
776338e1 JS |
439 | |
440 | /* i2c */ | |
3593cab5 | 441 | struct mutex i2c_mutex; |
776338e1 JS |
442 | struct i2c_adapter i2c_adap; |
443 | ||
4d43e13f PB |
444 | int num_adapters_initialized; |
445 | struct dvb_usb_adapter adapter[MAX_NO_OF_ADAPTER_PER_DEVICE]; | |
776338e1 JS |
446 | |
447 | /* remote control */ | |
d8b4b582 DH |
448 | struct rc_dev *rc_dev; |
449 | struct input_dev *input_dev; | |
b7df3910 | 450 | char rc_phys[64]; |
c4028958 | 451 | struct delayed_work rc_query_work; |
776338e1 JS |
452 | u32 last_event; |
453 | int last_state; | |
454 | ||
455 | struct module *owner; | |
456 | ||
457 | void *priv; | |
458 | }; | |
459 | ||
78e92006 JG |
460 | extern int dvb_usb_device_init(struct usb_interface *, |
461 | struct dvb_usb_device_properties *, | |
462 | struct module *, struct dvb_usb_device **, | |
463 | short *adapter_nums); | |
776338e1 JS |
464 | extern void dvb_usb_device_exit(struct usb_interface *); |
465 | ||
466 | /* the generic read/write method for device control */ | |
467 | extern int dvb_usb_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16,int); | |
468 | extern int dvb_usb_generic_write(struct dvb_usb_device *, u8 *, u16); | |
469 | ||
470 | /* commonly used remote control parsing */ | |
471 | extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[], u32 *, int *); | |
472 | ||
d3707add PB |
473 | /* commonly used firmware download types and function */ |
474 | struct hexline { | |
475 | u8 len; | |
476 | u32 addr; | |
477 | u8 type; | |
478 | u8 data[255]; | |
479 | u8 chk; | |
480 | }; | |
f5373788 | 481 | extern int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type); |
136cafbf PB |
482 | extern int dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx, int *pos); |
483 | ||
776338e1 JS |
484 | |
485 | #endif |