blob: c8ef77554b00a1cbff09faedd858ef898317a170 [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)
Michael Krufkyae62e3d2006-03-23 01:11:18 -03009#define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \
10 dprintk(dvb_usb_cxusb_debug,0x01,args)
Patrick Boettcher22c6d932005-07-07 17:58:10 -070011
12/* usb commands - some of it are guesses, don't have a reference yet */
Patrick Boettchere2efeab2005-09-09 13:02:51 -070013#define CMD_I2C_WRITE 0x08
14#define CMD_I2C_READ 0x09
Patrick Boettcher22c6d932005-07-07 17:58:10 -070015
Patrick Boettchere2efeab2005-09-09 13:02:51 -070016#define CMD_GPIO_READ 0x0d
17#define CMD_GPIO_WRITE 0x0e
18#define GPIO_TUNER 0x02
Patrick Boettcher22c6d932005-07-07 17:58:10 -070019
Patrick Boettchere2efeab2005-09-09 13:02:51 -070020#define CMD_POWER_OFF 0xdc
21#define CMD_POWER_ON 0xde
Patrick Boettcher22c6d932005-07-07 17:58:10 -070022
Patrick Boettchere2efeab2005-09-09 13:02:51 -070023#define CMD_STREAMING_ON 0x36
24#define CMD_STREAMING_OFF 0x37
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