blob: 1a51eafd31b94e02f563ba5100aaa4d4809fe569 [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 */
Chris Pascoeaeb012b2007-11-19 21:57:10 -03008#define CMD_BLUEBIRD_GPIO_RW 0x05
9
Patrick Boettchere2efeab2005-09-09 13:02:51 -070010#define CMD_I2C_WRITE 0x08
11#define CMD_I2C_READ 0x09
Patrick Boettcher22c6d932005-07-07 17:58:10 -070012
Patrick Boettchere2efeab2005-09-09 13:02:51 -070013#define CMD_GPIO_READ 0x0d
14#define CMD_GPIO_WRITE 0x0e
15#define GPIO_TUNER 0x02
Patrick Boettcher22c6d932005-07-07 17:58:10 -070016
Patrick Boettchere2efeab2005-09-09 13:02:51 -070017#define CMD_POWER_OFF 0xdc
18#define CMD_POWER_ON 0xde
Patrick Boettcher22c6d932005-07-07 17:58:10 -070019
Patrick Boettchere2efeab2005-09-09 13:02:51 -070020#define CMD_STREAMING_ON 0x36
21#define CMD_STREAMING_OFF 0x37
22
Daniel Gimpelevichf5376ad2008-06-28 05:01:30 -030023#define CMD_AVER_STREAM_ON 0x18
24#define CMD_AVER_STREAM_OFF 0x19
25
Chris Pascoe7c239702006-01-09 18:21:29 -020026#define CMD_GET_IR_CODE 0x47
27
Patrick Boettchere2efeab2005-09-09 13:02:51 -070028#define CMD_ANALOG 0x50
29#define CMD_DIGITAL 0x51
Patrick Boettcher22c6d932005-07-07 17:58:10 -070030
31struct cxusb_state {
Patrick Boettchere2efeab2005-09-09 13:02:51 -070032 u8 gpio_write_state[3];
Patrick Boettcher22c6d932005-07-07 17:58:10 -070033};
34
35#endif