aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/dvb-usb.h
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-09-19 11:51:33 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-10-03 14:12:27 -0400
commit136cafbf4a024b52ba0a10627217f03cea9ff9f8 (patch)
treecf827cb4d792a82a9c7b30bccc0db71547607472 /drivers/media/dvb/dvb-usb/dvb-usb.h
parent6870ab576c86a496869fbd5bb339da7e442ee7f5 (diff)
V4L/DVB (4646): Misc. changes, DiB3000MC, MT2060
Changed the attach-function of the dib3000mc-driver to return only one frontend. In case of multiple dib3000-chips on one board, one has to call the i2c-enumeration manually before. Added a field to Microtune 2060 config to output the clock to other tuners/device on a board. Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb.h')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index 5546554d3876..44b49db4992e 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -90,8 +90,8 @@ struct dvb_usb_adapter;
90struct usb_data_stream; 90struct usb_data_stream;
91 91
92/** 92/**
93 * Properties of USB streaming - TODO this structure does not belong here actually 93 * Properties of USB streaming - TODO this structure should be somewhere else
94 * describes the kind of USB transfer used for MPEG2-TS-streaming. 94 * describes the kind of USB transfer used for data-streaming.
95 * (BULK or ISOC) 95 * (BULK or ISOC)
96 */ 96 */
97struct usb_data_stream_properties { 97struct usb_data_stream_properties {
@@ -193,10 +193,10 @@ struct dvb_usb_device_properties {
193#define CYPRESS_AN2135 1 193#define CYPRESS_AN2135 1
194#define CYPRESS_AN2235 2 194#define CYPRESS_AN2235 2
195#define CYPRESS_FX2 3 195#define CYPRESS_FX2 3
196 int usb_ctrl; 196 int usb_ctrl;
197 int (*download_firmware) (struct usb_device *, const struct firmware *);
197 const char firmware[FIRMWARE_NAME_MAX]; 198 const char firmware[FIRMWARE_NAME_MAX];
198 int (*download_firmware) (struct usb_device *, const struct firmware *); 199 int no_reconnect;
199 int no_reconnect;
200 200
201 int size_of_priv; 201 int size_of_priv;
202 202
@@ -212,7 +212,7 @@ struct dvb_usb_device_properties {
212#define REMOTE_NO_KEY_PRESSED 0x00 212#define REMOTE_NO_KEY_PRESSED 0x00
213#define REMOTE_KEY_PRESSED 0x01 213#define REMOTE_KEY_PRESSED 0x01
214#define REMOTE_KEY_REPEAT 0x02 214#define REMOTE_KEY_REPEAT 0x02
215 struct dvb_usb_rc_key *rc_key_map; 215 struct dvb_usb_rc_key *rc_key_map;
216 int rc_key_map_size; 216 int rc_key_map_size;
217 int (*rc_query) (struct dvb_usb_device *, u32 *, int *); 217 int (*rc_query) (struct dvb_usb_device *, u32 *, int *);
218 int rc_interval; 218 int rc_interval;
@@ -234,13 +234,11 @@ struct dvb_usb_device_properties {
234 * 234 *
235 * @urbs_initialized: number of URBs initialized. 235 * @urbs_initialized: number of URBs initialized.
236 * @urbs_submitted: number of URBs submitted. 236 * @urbs_submitted: number of URBs submitted.
237 *
238 * TODO put this in the correct place.
239 */ 237 */
240#define MAX_NO_URBS_FOR_DATA_STREAM 10 238#define MAX_NO_URBS_FOR_DATA_STREAM 10
241struct usb_data_stream { 239struct usb_data_stream {
242 struct usb_device *udev; 240 struct usb_device *udev;
243 struct usb_data_stream_properties props; 241 struct usb_data_stream_properties props;
244 242
245#define USB_STATE_INIT 0x00 243#define USB_STATE_INIT 0x00
246#define USB_STATE_URB_BUF 0x01 244#define USB_STATE_URB_BUF 0x01
@@ -248,12 +246,11 @@ struct usb_data_stream {
248 246
249 void (*complete) (struct usb_data_stream *, u8 *, size_t); 247 void (*complete) (struct usb_data_stream *, u8 *, size_t);
250 248
251 struct urb *urb_list[MAX_NO_URBS_FOR_DATA_STREAM]; 249 struct urb *urb_list[MAX_NO_URBS_FOR_DATA_STREAM];
252 250 int buf_num;
253 int buf_num; 251 unsigned long buf_size;
254 unsigned long buf_size; 252 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM];
255 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; 253 dma_addr_t dma_addr[MAX_NO_URBS_FOR_DATA_STREAM];
256 dma_addr_t dma_addr[MAX_NO_URBS_FOR_DATA_STREAM];
257 254
258 int urbs_initialized; 255 int urbs_initialized;
259 int urbs_submitted; 256 int urbs_submitted;
@@ -271,8 +268,8 @@ struct usb_data_stream {
271 * @pll_addr: I2C address of the tuner for programming 268 * @pll_addr: I2C address of the tuner for programming
272 * @pll_init: array containing the initialization buffer 269 * @pll_init: array containing the initialization buffer
273 * @pll_desc: pointer to the appropriate struct dvb_pll_desc 270 * @pll_desc: pointer to the appropriate struct dvb_pll_desc
274 *
275 * @tuner_pass_ctrl: called to (de)activate tuner passthru of the demod or the board 271 * @tuner_pass_ctrl: called to (de)activate tuner passthru of the demod or the board
272 *
276 * @dvb_adap: device's dvb_adapter. 273 * @dvb_adap: device's dvb_adapter.
277 * @dmxdev: device's dmxdev. 274 * @dmxdev: device's dmxdev.
278 * @demux: device's software demuxer. 275 * @demux: device's software demuxer.
@@ -280,8 +277,10 @@ struct usb_data_stream {
280 * @dvb_frontend: device's frontend. 277 * @dvb_frontend: device's frontend.
281 * @max_feed_count: how many feeds can be handled simultaneously by this 278 * @max_feed_count: how many feeds can be handled simultaneously by this
282 * device 279 * device
280 *
281 * @fe_init: rerouted frontend-init (wakeup) function.
283 * @fe_sleep: rerouted frontend-sleep function. 282 * @fe_sleep: rerouted frontend-sleep function.
284 * @fe_init: rerouted frontend-init (wakeup) function. 283 *
285 * @stream: the usb data stream. 284 * @stream: the usb data stream.
286 */ 285 */
287struct dvb_usb_adapter { 286struct dvb_usb_adapter {
@@ -292,7 +291,7 @@ struct dvb_usb_adapter {
292#define DVB_USB_ADAP_STATE_DVB 0x001 291#define DVB_USB_ADAP_STATE_DVB 0x001
293 int state; 292 int state;
294 293
295 int id; 294 u8 id;
296 295
297 int feedcount; 296 int feedcount;
298 int pid_filtering; 297 int pid_filtering;
@@ -311,8 +310,8 @@ struct dvb_usb_adapter {
311 struct dvb_frontend *fe; 310 struct dvb_frontend *fe;
312 int max_feed_count; 311 int max_feed_count;
313 312
314 int (*fe_sleep) (struct dvb_frontend *);
315 int (*fe_init) (struct dvb_frontend *); 313 int (*fe_init) (struct dvb_frontend *);
314 int (*fe_sleep) (struct dvb_frontend *);
316 315
317 struct usb_data_stream stream; 316 struct usb_data_stream stream;
318 317
@@ -400,5 +399,7 @@ struct hexline {
400 u8 chk; 399 u8 chk;
401}; 400};
402extern int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type); 401extern int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type);
402extern int dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx, int *pos);
403
403 404
404#endif 405#endif