dst_priv.h 598 B

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