ce6230.h 806 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Intel CE6230 DVB USB driver
  4. *
  5. * Copyright (C) 2009 Antti Palosaari <[email protected]>
  6. */
  7. #ifndef CE6230_H
  8. #define CE6230_H
  9. #include "dvb_usb.h"
  10. #include "zl10353.h"
  11. #include "mxl5005s.h"
  12. #define CE6230_USB_TIMEOUT 1000
  13. struct usb_req {
  14. u8 cmd; /* [1] */
  15. u16 value; /* [2|3] */
  16. u16 index; /* [4|5] */
  17. u16 data_len; /* [6|7] */
  18. u8 *data;
  19. };
  20. enum ce6230_cmd {
  21. CONFIG_READ = 0xd0, /* rd 0 (unclear) */
  22. UNKNOWN_WRITE = 0xc7, /* wr 7 (unclear) */
  23. I2C_READ = 0xd9, /* rd 9 (unclear) */
  24. I2C_WRITE = 0xca, /* wr a */
  25. DEMOD_READ = 0xdb, /* rd b */
  26. DEMOD_WRITE = 0xcc, /* wr c */
  27. REG_READ = 0xde, /* rd e */
  28. REG_WRITE = 0xcf, /* wr f */
  29. };
  30. #endif