blob: 4768a2c355172b9be95a7e07dd0b2f0dfa6861c7 [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
Chris Pascoe7c239702006-01-09 18:21:29 -020023#define CMD_GET_IR_CODE 0x47
24
Patrick Boettchere2efeab2005-09-09 13:02:51 -070025#define CMD_ANALOG 0x50
26#define CMD_DIGITAL 0x51
Patrick Boettcher22c6d932005-07-07 17:58:10 -070027
28struct cxusb_state {
Patrick Boettchere2efeab2005-09-09 13:02:51 -070029 u8 gpio_write_state[3];
Patrick Boettcher22c6d932005-07-07 17:58:10 -070030};
31
32#endif