cxusb.h 847 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _DVB_USB_CXUSB_H_
  2. #define _DVB_USB_CXUSB_H_
  3. #define DVB_USB_LOG_PREFIX "cxusb"
  4. #include "dvb-usb.h"
  5. extern int dvb_usb_cxusb_debug;
  6. #define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args)
  7. #define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \
  8. dprintk(dvb_usb_cxusb_debug,0x01,args)
  9. /* usb commands - some of it are guesses, don't have a reference yet */
  10. #define CMD_I2C_WRITE 0x08
  11. #define CMD_I2C_READ 0x09
  12. #define CMD_GPIO_READ 0x0d
  13. #define CMD_GPIO_WRITE 0x0e
  14. #define GPIO_TUNER 0x02
  15. #define CMD_POWER_OFF 0xdc
  16. #define CMD_POWER_ON 0xde
  17. #define CMD_STREAMING_ON 0x36
  18. #define CMD_STREAMING_OFF 0x37
  19. #define CMD_GET_IR_CODE 0x47
  20. #define CMD_ANALOG 0x50
  21. #define CMD_DIGITAL 0x51
  22. struct cxusb_state {
  23. u8 gpio_write_state[3];
  24. };
  25. #endif