Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds
[sfrench/cifs-2.6.git] / drivers / media / dvb / dvb-usb / m920x.h
1 #ifndef _DVB_USB_M920X_H_
2 #define _DVB_USB_M920X_H_
3
4 #define DVB_USB_LOG_PREFIX "m920x"
5 #include "dvb-usb.h"
6
7 #define deb_rc(args...)   dprintk(dvb_usb_m920x_debug,0x01,args)
8
9 #define M9206_CORE      0x22
10 #define M9206_RC_STATE  0xff51
11 #define M9206_RC_KEY    0xff52
12 #define M9206_RC_INIT1  0xff54
13 #define M9206_RC_INIT2  0xff55
14 #define M9206_FW_GO     0xff69
15
16 #define M9206_I2C       0x23
17 #define M9206_FILTER    0x25
18 #define M9206_FW        0x30
19
20 #define M9206_MAX_FILTERS 8
21
22 #define M9206_I2C_TUNER 0
23 #define M9206_I2C_DEMOD 1
24 #define M9206_I2C_MAX   2
25
26 struct m9206_state {
27         u16 filters[M9206_MAX_FILTERS];
28         int filtering_enabled;
29         int rep_count;
30         struct {
31                 unsigned char addr;
32                 unsigned char magic;
33         }i2c_r[M9206_I2C_MAX];
34 };
35 #endif