blob: 294ab692f4471dd66f741949ccb26f79a270aef4 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Antti Palosaari2bf290b2009-11-13 22:38:55 -03002/*
3 * E3C EC168 DVB USB driver
4 *
5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
Antti Palosaari2bf290b2009-11-13 22:38:55 -03006 */
7
8#ifndef EC168_H
9#define EC168_H
10
Antti Palosaari3eee0472012-06-12 16:45:54 -030011#include "dvb_usb.h"
12
Antti Palosaari2bf290b2009-11-13 22:38:55 -030013#define EC168_USB_TIMEOUT 1000
Antti Palosaari6a60e3f2012-09-12 11:37:27 -030014#define EC168_FIRMWARE "dvb-usb-ec168.fw"
Antti Palosaari2bf290b2009-11-13 22:38:55 -030015
16struct ec168_req {
17 u8 cmd; /* [1] */
18 u16 value; /* [2|3] */
19 u16 index; /* [4|5] */
20 u16 size; /* [6|7] */
21 u8 *data;
22};
23
24enum 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,
37};
38
39#endif