Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Antti Palosaari | 2bf290b | 2009-11-13 22:38:55 -0300 | [diff] [blame] | 2 | /* |
| 3 | * E3C EC168 DVB USB driver |
| 4 | * |
| 5 | * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> |
Antti Palosaari | 2bf290b | 2009-11-13 22:38:55 -0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef EC168_H |
| 9 | #define EC168_H |
| 10 | |
Antti Palosaari | 3eee047 | 2012-06-12 16:45:54 -0300 | [diff] [blame] | 11 | #include "dvb_usb.h" |
| 12 | |
Antti Palosaari | 2bf290b | 2009-11-13 22:38:55 -0300 | [diff] [blame] | 13 | #define EC168_USB_TIMEOUT 1000 |
Antti Palosaari | 6a60e3f | 2012-09-12 11:37:27 -0300 | [diff] [blame] | 14 | #define EC168_FIRMWARE "dvb-usb-ec168.fw" |
Antti Palosaari | 2bf290b | 2009-11-13 22:38:55 -0300 | [diff] [blame] | 15 | |
| 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; |
| 22 | }; |
| 23 | |
| 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, |
| 37 | }; |
| 38 | |
| 39 | #endif |