WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / usb / dvb-usb-v2 / ec168.h
blob294ab692f4471dd66f741949ccb26f79a270aef4
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * E3C EC168 DVB USB driver
5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
6 */
8 #ifndef EC168_H
9 #define EC168_H
11 #include "dvb_usb.h"
13 #define EC168_USB_TIMEOUT 1000
14 #define EC168_FIRMWARE "dvb-usb-ec168.fw"
16 struct ec168_req {
17 u8 cmd; /* [1] */
18 u16 value; /* [2|3] */
19 u16 index; /* [4|5] */
20 u16 size; /* [6|7] */
21 u8 *data;
24 enum ec168_cmd {
25 DOWNLOAD_FIRMWARE = 0x00,
26 CONFIG = 0x01,
27 DEMOD_RW = 0x03,
28 GPIO = 0x04,
29 STREAMING_CTRL = 0x10,
30 READ_I2C = 0x20,
31 WRITE_I2C = 0x21,
32 HID_DOWNLOAD = 0x30,
33 GET_CONFIG,
34 SET_CONFIG,
35 READ_DEMOD,
36 WRITE_DEMOD,
39 #endif