hdic.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * DVB USB Linux driver for the HDIC receiver
  3. *
  4. * Copyright (C) 2011 Metropolia University of Applied Sciences, Electria R&D
  5. *
  6. * Author: Antti Palosaari <crope@iki.fi>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. #ifndef HDIC_H
  23. #define HDIC_H
  24. #define DVB_USB_LOG_PREFIX "hdic"
  25. #include "dvb-usb.h"
  26. #define deb_info(args...) dprintk(dvb_usb_hdic_debug, 0x01, args)
  27. #define deb_rc(args...) dprintk(dvb_usb_hdic_debug, 0x02, args)
  28. #define deb_xfer(args...) dprintk(dvb_usb_hdic_debug, 0x04, args)
  29. #define deb_reg(args...) dprintk(dvb_usb_hdic_debug, 0x08, args)
  30. #define deb_i2c(args...) dprintk(dvb_usb_hdic_debug, 0x10, args)
  31. #define deb_fw(args...) dprintk(dvb_usb_hdic_debug, 0x20, args)
  32. enum hdic_cmd {
  33. HDIC_CMD_I2C = 0x00,
  34. HDIC_CMD_CONTROL_STREAM_TRANSFER = 0x03,
  35. HDIC_CMD_SLEEP_MODE = 0x09,
  36. HDIC_CMD_GET_FIRMWARE_VERSION = 0x0a,
  37. HDIC_CMD_DEMOD_RESET = 0x0b,
  38. };
  39. #endif