network.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_NETWORK_H_
  19. #define _IPWIRELESS_CS_NETWORK_H_
  20. #include <linux/types.h>
  21. struct ipw_network;
  22. struct ipw_tty;
  23. struct ipw_hardware;
  24. /* Definitions of the different channels on the PCMCIA UE */
  25. #define IPW_CHANNEL_RAS 0
  26. #define IPW_CHANNEL_DIALLER 1
  27. #define IPW_CHANNEL_CONSOLE 2
  28. #define NO_OF_IPW_CHANNELS 5
  29. void ipwireless_network_notify_control_line_change(struct ipw_network *net,
  30. unsigned int channel_idx, unsigned int control_lines,
  31. unsigned int control_mask);
  32. void ipwireless_network_packet_received(struct ipw_network *net,
  33. unsigned int channel_idx, unsigned char *data,
  34. unsigned int length);
  35. struct ipw_network *ipwireless_network_create(struct ipw_hardware *hw);
  36. void ipwireless_network_free(struct ipw_network *net);
  37. void ipwireless_associate_network_tty(struct ipw_network *net,
  38. unsigned int channel_idx, struct ipw_tty *tty);
  39. void ipwireless_disassociate_network_ttys(struct ipw_network *net,
  40. unsigned int channel_idx);
  41. void ipwireless_ppp_open(struct ipw_network *net);
  42. void ipwireless_ppp_close(struct ipw_network *net);
  43. int ipwireless_ppp_channel_index(struct ipw_network *net);
  44. int ipwireless_ppp_unit_number(struct ipw_network *net);
  45. int ipwireless_ppp_mru(const struct ipw_network *net);
  46. #endif