blob: 704955bcaa102b946ea865c0baea9d00c3005388 [file] [log] [blame]
Antti Palosaari2bf290b2009-11-13 22:38:55 -03001/*
2 * E3C EC168 DVB USB driver
3 *
4 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
5 *
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.
10 *
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.
15 *
Antti Palosaari2bf290b2009-11-13 22:38:55 -030016 */
17
18#ifndef EC168_H
19#define EC168_H
20
Antti Palosaari3eee0472012-06-12 16:45:54 -030021#include "dvb_usb.h"
22
Antti Palosaari2bf290b2009-11-13 22:38:55 -030023#define EC168_USB_TIMEOUT 1000
Antti Palosaari6a60e3f2012-09-12 11:37:27 -030024#define EC168_FIRMWARE "dvb-usb-ec168.fw"
Antti Palosaari2bf290b2009-11-13 22:38:55 -030025
26struct ec168_req {
27 u8 cmd; /* [1] */
28 u16 value; /* [2|3] */
29 u16 index; /* [4|5] */
30 u16 size; /* [6|7] */
31 u8 *data;
32};
33
34enum ec168_cmd {
35 DOWNLOAD_FIRMWARE = 0x00,
36 CONFIG = 0x01,
37 DEMOD_RW = 0x03,
38 GPIO = 0x04,
39 STREAMING_CTRL = 0x10,
40 READ_I2C = 0x20,
41 WRITE_I2C = 0x21,
42 HID_DOWNLOAD = 0x30,
43 GET_CONFIG,
44 SET_CONFIG,
45 READ_DEMOD,
46 WRITE_DEMOD,
47};
48
49#endif