blob: 79ca7abb89a5e1357564f6261b2c64feca706cc5 [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
Patrick Boettcher22c6d932005-07-07 17:58:10 -07007/* usb commands - some of it are guesses, don't have a reference yet */
Patrick Boettchere2efeab2005-09-09 13:02:51 -07008#define CMD_I2C_WRITE 0x08
9#define CMD_I2C_READ 0x09
Patrick Boettcher22c6d932005-07-07 17:58:10 -070010
Patrick Boettchere2efeab2005-09-09 13:02:51 -070011#define CMD_GPIO_READ 0x0d
12#define CMD_GPIO_WRITE 0x0e
13#define GPIO_TUNER 0x02
Patrick Boettcher22c6d932005-07-07 17:58:10 -070014
Patrick Boettchere2efeab2005-09-09 13:02:51 -070015#define CMD_POWER_OFF 0xdc
16#define CMD_POWER_ON 0xde
Patrick Boettcher22c6d932005-07-07 17:58:10 -070017
Patrick Boettchere2efeab2005-09-09 13:02:51 -070018#define CMD_STREAMING_ON 0x36
19#define CMD_STREAMING_OFF 0x37
20
Chris Pascoe7c239702006-01-09 18:21:29 -020021#define CMD_GET_IR_CODE 0x47
22
Patrick Boettchere2efeab2005-09-09 13:02:51 -070023#define CMD_ANALOG 0x50
24#define CMD_DIGITAL 0x51
Patrick Boettcher22c6d932005-07-07 17:58:10 -070025
26struct cxusb_state {
Patrick Boettchere2efeab2005-09-09 13:02:51 -070027 u8 gpio_write_state[3];
Patrick Boettcher22c6d932005-07-07 17:58:10 -070028};
29
30#endif