irda.h 959 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/plat-omap/include/mach/irda.h
  3. *
  4. * Copyright (C) 2005-2006 Komal Shah <komal_shah802003@yahoo.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef ASMARM_ARCH_IRDA_H
  11. #define ASMARM_ARCH_IRDA_H
  12. /* board specific transceiver capabilities */
  13. #define IR_SEL 1 /* Selects IrDA */
  14. #define IR_SIRMODE 2
  15. #define IR_FIRMODE 4
  16. #define IR_MIRMODE 8
  17. struct omap_irda_config {
  18. int transceiver_cap;
  19. int (*transceiver_mode)(struct device *dev, int mode);
  20. int (*select_irda)(struct device *dev, int state);
  21. /* Very specific to the needs of some platforms (h3,h4)
  22. * having calls which can sleep in irda_set_speed.
  23. */
  24. struct delayed_work gpio_expa;
  25. int rx_channel;
  26. int tx_channel;
  27. unsigned long dest_start;
  28. unsigned long src_start;
  29. int tx_trigger;
  30. int rx_trigger;
  31. int mode;
  32. };
  33. #endif