irtty-sir.h 966 B

12345678910111213141516171819202122232425262728293031323334
  1. /*********************************************************************
  2. *
  3. * sir_tty.h: definitions for the irtty_sir client driver (former irtty)
  4. *
  5. * Copyright (c) 2002 Martin Diehl
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. ********************************************************************/
  13. #ifndef IRTTYSIR_H
  14. #define IRTTYSIR_H
  15. #include <net/irda/irda.h>
  16. #include <net/irda/irda_device.h> // chipio_t
  17. #define IRTTY_IOC_MAGIC 'e'
  18. #define IRTTY_IOCTDONGLE _IO(IRTTY_IOC_MAGIC, 1)
  19. #define IRTTY_IOCGET _IOR(IRTTY_IOC_MAGIC, 2, struct irtty_info)
  20. #define IRTTY_IOC_MAXNR 2
  21. struct sirtty_cb {
  22. magic_t magic;
  23. struct sir_dev *dev;
  24. struct tty_struct *tty;
  25. chipio_t io; /* IrDA controller information */
  26. };
  27. #endif