treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / usb / dvb-usb-v2 / ce6230.h
blob101744751eaa33a269bd292c10d9e0408104013a
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Intel CE6230 DVB USB driver
5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
6 */
8 #ifndef CE6230_H
9 #define CE6230_H
11 #include "dvb_usb.h"
12 #include "zl10353.h"
13 #include "mxl5005s.h"
15 #define CE6230_USB_TIMEOUT 1000
17 struct usb_req {
18 u8 cmd; /* [1] */
19 u16 value; /* [2|3] */
20 u16 index; /* [4|5] */
21 u16 data_len; /* [6|7] */
22 u8 *data;
25 enum ce6230_cmd {
26 CONFIG_READ = 0xd0, /* rd 0 (unclear) */
27 UNKNOWN_WRITE = 0xc7, /* wr 7 (unclear) */
28 I2C_READ = 0xd9, /* rd 9 (unclear) */
29 I2C_WRITE = 0xca, /* wr a */
30 DEMOD_READ = 0xdb, /* rd b */
31 DEMOD_WRITE = 0xcc, /* wr c */
32 REG_READ = 0xde, /* rd e */
33 REG_WRITE = 0xcf, /* wr f */
36 #endif