tty.h 1.2 KB

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