Path: blob/master/drivers/media/dvb/dvb-usb/digitv.h
15111 views
#ifndef _DVB_USB_DIGITV_H_1#define _DVB_USB_DIGITV_H_23#define DVB_USB_LOG_PREFIX "digitv"4#include "dvb-usb.h"56struct digitv_state {7int is_nxt6000;8};910/* protocol (from usblogging and the SDK:11*12* Always 7 bytes bulk message(s) for controlling13*14* First byte describes the command. Reads are 2 consecutive transfer (as always).15*16* General structure:17*18* write or first message of a read:19* <cmdbyte> VV <len> B0 B1 B2 B320*21* second message of a read22* <cmdbyte> VV <len> R0 R1 R2 R323*24* whereas 0 < len <= 425*26* I2C address is stored somewhere inside the device.27*28* 0x01 read from EEPROM29* VV = offset; B* = 0; R* = value(s)30*31* 0x02 read register of the COFDM32* VV = register; B* = 0; R* = value(s)33*34* 0x05 write register of the COFDM35* VV = register; B* = value(s);36*37* 0x06 write to the tuner (only for NXT6000)38* VV = 0; B* = PLL data; len = 4;39*40* 0x03 read remote control41* VV = 0; B* = 0; len = 4; R* = key42*43* 0x07 write to the remote (don't know why one should this, resetting ?)44* VV = 0; B* = key; len = 4;45*46* 0x08 write remote type47* VV = 0; B[0] = 0x01, len = 448*49* 0x09 write device init50* TODO51*/52#define USB_READ_EEPROM 15354#define USB_READ_COFDM 255#define USB_WRITE_COFDM 55657#define USB_WRITE_TUNER 65859#define USB_READ_REMOTE 360#define USB_WRITE_REMOTE 761#define USB_WRITE_REMOTE_TYPE 86263#define USB_DEV_INIT 96465#endif666768