tty.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * IPWireless 3G PCMCIA Network Driver
  3. *
  4. * Original code
  5. * by Stephen Blackheath <stephen@blacksapphire.com>,
  6. * Ben Martel <benm@symmetric.co.nz>
  7. *
  8. * Copyrighted as follows:
  9. * Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
  10. *
  11. * Various driver changes and rewrites, port to new kernels
  12. * Copyright (C) 2006-2007 Jiri Kosina
  13. *
  14. * Misc code cleanups and updates
  15. * Copyright (C) 2007 David Sterba
  16. */
  17. #ifndef _IPWIRELESS_CS_TTY_H_
  18. #define _IPWIRELESS_CS_TTY_H_
  19. #include <linux/types.h>
  20. #include <linux/sched.h>
  21. #include <pcmcia/cs_types.h>
  22. #include <pcmcia/cs.h>
  23. #include <pcmcia/cistpl.h>
  24. #include <pcmcia/ds.h>
  25. struct ipw_tty;
  26. struct ipw_network;
  27. struct ipw_hardware;
  28. int ipwireless_tty_init(void);
  29. void ipwireless_tty_release(void);
  30. struct ipw_tty *ipwireless_tty_create(struct ipw_hardware *hw,
  31. struct ipw_network *net,
  32. dev_node_t *nodes);
  33. void ipwireless_tty_free(struct ipw_tty *tty);
  34. void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
  35. unsigned int length);
  36. int ipwireless_tty_is_modem(struct ipw_tty *tty);
  37. void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
  38. unsigned int channel_idx,
  39. unsigned int control_lines,
  40. unsigned int changed_mask);
  41. #endif