blob: 135c2a81f5817f5685745d22966483737afd7190 [file] [log] [blame]
Patrick Boettcher22c6d932005-07-07 17:58:10 -07001#ifndef _DVB_USB_CXUSB_H_
2#define _DVB_USB_CXUSB_H_
3
Patrick Boettchere2efeab2005-09-09 13:02:51 -07004#define DVB_USB_LOG_PREFIX "cxusb"
Patrick Boettcher22c6d932005-07-07 17:58:10 -07005#include "dvb-usb.h"
6
7extern int dvb_usb_cxusb_debug;
8#define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args)
9
10/* usb commands - some of it are guesses, don't have a reference yet */
Patrick Boettchere2efeab2005-09-09 13:02:51 -070011#define CMD_I2C_WRITE 0x08
12#define CMD_I2C_READ 0x09
Patrick Boettcher22c6d932005-07-07 17:58:10 -070013
Patrick Boettchere2efeab2005-09-09 13:02:51 -070014#define CMD_GPIO_READ 0x0d
15#define CMD_GPIO_WRITE 0x0e
16#define GPIO_TUNER 0x02
Patrick Boettcher22c6d932005-07-07 17:58:10 -070017
Patrick Boettchere2efeab2005-09-09 13:02:51 -070018#define CMD_POWER_OFF 0xdc
19#define CMD_POWER_ON 0xde
Patrick Boettcher22c6d932005-07-07 17:58:10 -070020
Patrick Boettchere2efeab2005-09-09 13:02:51 -070021#define CMD_STREAMING_ON 0x36
22#define CMD_STREAMING_OFF 0x37
23
24#define CMD_ANALOG 0x50
25#define CMD_DIGITAL 0x51
Patrick Boettcher22c6d932005-07-07 17:58:10 -070026
27struct cxusb_state {
Patrick Boettchere2efeab2005-09-09 13:02:51 -070028 u8 gpio_write_state[3];
Patrick Boettcher22c6d932005-07-07 17:58:10 -070029};
30
31#endif