cxusb.h 724 B

123456789101112131415161718192021222324252627282930313233343536
  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. /* usb commands - some of it are guesses, don't have a reference yet */
  6. #define CMD_BLUEBIRD_GPIO_RW 0x05
  7. #define CMD_I2C_WRITE 0x08
  8. #define CMD_I2C_READ 0x09
  9. #define CMD_GPIO_READ 0x0d
  10. #define CMD_GPIO_WRITE 0x0e
  11. #define GPIO_TUNER 0x02
  12. #define CMD_POWER_OFF 0xdc
  13. #define CMD_POWER_ON 0xde
  14. #define CMD_STREAMING_ON 0x36
  15. #define CMD_STREAMING_OFF 0x37
  16. #define CMD_AVER_STREAM_ON 0x18
  17. #define CMD_AVER_STREAM_OFF 0x19
  18. #define CMD_GET_IR_CODE 0x47
  19. #define CMD_ANALOG 0x50
  20. #define CMD_DIGITAL 0x51
  21. struct cxusb_state {
  22. u8 gpio_write_state[3];
  23. };
  24. #endif