linux/drivers/media/usb/dvb-usb-v2/ec168.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-or-later */
   2/*
   3 * E3C EC168 DVB USB driver
   4 *
   5 * Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
   6 */
   7
   8#ifndef EC168_H
   9#define EC168_H
  10
  11#include "dvb_usb.h"
  12
  13#define EC168_USB_TIMEOUT 1000
  14#define EC168_FIRMWARE "dvb-usb-ec168.fw"
  15
  16struct ec168_req {
  17        u8  cmd;       /* [1] */
  18        u16 value;     /* [2|3] */
  19        u16 index;     /* [4|5] */
  20        u16 size;      /* [6|7] */
  21        u8  *data;
  22};
  23
  24enum ec168_cmd {
  25        DOWNLOAD_FIRMWARE    = 0x00,
  26        CONFIG               = 0x01,
  27        DEMOD_RW             = 0x03,
  28        GPIO                 = 0x04,
  29        STREAMING_CTRL       = 0x10,
  30        READ_I2C             = 0x20,
  31        WRITE_I2C            = 0x21,
  32        HID_DOWNLOAD         = 0x30,
  33        GET_CONFIG,
  34        SET_CONFIG,
  35        READ_DEMOD,
  36        WRITE_DEMOD,
  37};
  38
  39#endif
  40