xref: /linux/drivers/media/usb/dvb-usb-v2/ce6230.h (revision a4eb44a6435d6d8f9e642407a4a06f65eb90ca04)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Intel CE6230 DVB USB driver
4  *
5  * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
6  */
7 
8 #ifndef CE6230_H
9 #define CE6230_H
10 
11 #include "dvb_usb.h"
12 #include "zl10353.h"
13 #include "mxl5005s.h"
14 
15 #define CE6230_USB_TIMEOUT 1000
16 
17 struct usb_req {
18 	u8  cmd;       /* [1] */
19 	u16 value;     /* [2|3] */
20 	u16 index;     /* [4|5] */
21 	u16 data_len;  /* [6|7] */
22 	u8  *data;
23 };
24 
25 enum ce6230_cmd {
26 	CONFIG_READ          = 0xd0, /* rd 0 (unclear) */
27 	UNKNOWN_WRITE        = 0xc7, /* wr 7 (unclear) */
28 	I2C_READ             = 0xd9, /* rd 9 (unclear) */
29 	I2C_WRITE            = 0xca, /* wr a */
30 	DEMOD_READ           = 0xdb, /* rd b */
31 	DEMOD_WRITE          = 0xcc, /* wr c */
32 	REG_READ             = 0xde, /* rd e */
33 	REG_WRITE            = 0xcf, /* wr f */
34 };
35 
36 #endif
37