net: qmi_wwan: add Olivetti Olicard 500
[linux/fpc-iii.git] / drivers / media / usb / dvb-usb-v2 / ec168.h
blob615a6569421f55298a07b4770711f0ef9e895113
1 /*
2 * E3C EC168 DVB USB driver
4 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef EC168_H
23 #define EC168_H
25 #include "dvb_usb.h"
27 #define EC168_USB_TIMEOUT 1000
28 #define EC168_FIRMWARE "dvb-usb-ec168.fw"
30 struct ec168_req {
31 u8 cmd; /* [1] */
32 u16 value; /* [2|3] */
33 u16 index; /* [4|5] */
34 u16 size; /* [6|7] */
35 u8 *data;
38 enum ec168_cmd {
39 DOWNLOAD_FIRMWARE = 0x00,
40 CONFIG = 0x01,
41 DEMOD_RW = 0x03,
42 GPIO = 0x04,
43 STREAMING_CTRL = 0x10,
44 READ_I2C = 0x20,
45 WRITE_I2C = 0x21,
46 HID_DOWNLOAD = 0x30,
47 GET_CONFIG,
48 SET_CONFIG,
49 READ_DEMOD,
50 WRITE_DEMOD,
53 #endif