dst_priv.h 637 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * dst-bt878.h: part of the DST driver for the TwinHan DST Frontend
  4. *
  5. * Copyright (C) 2003 Jamie Honan
  6. */
  7. struct dst_gpio_enable {
  8. u32 mask;
  9. u32 enable;
  10. };
  11. struct dst_gpio_output {
  12. u32 mask;
  13. u32 highvals;
  14. };
  15. struct dst_gpio_read {
  16. unsigned long value;
  17. };
  18. union dst_gpio_packet {
  19. struct dst_gpio_enable enb;
  20. struct dst_gpio_output outp;
  21. struct dst_gpio_read rd;
  22. int psize;
  23. };
  24. #define DST_IG_ENABLE 0
  25. #define DST_IG_WRITE 1
  26. #define DST_IG_READ 2
  27. #define DST_IG_TS 3
  28. struct bt878;
  29. int bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp);