main.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_H_
  19. #define _IPWIRELESS_CS_H_
  20. #include <linux/sched.h>
  21. #include <linux/types.h>
  22. #include <pcmcia/cistpl.h>
  23. #include <pcmcia/ds.h>
  24. #include "hardware.h"
  25. #define IPWIRELESS_PCCARD_NAME "ipwireless"
  26. #define IPWIRELESS_PCMCIA_VERSION "1.1"
  27. #define IPWIRELESS_PCMCIA_AUTHOR \
  28. "Stephen Blackheath, Ben Martel, Jiri Kosina and David Sterba"
  29. #define IPWIRELESS_TX_QUEUE_SIZE 262144
  30. #define IPWIRELESS_RX_QUEUE_SIZE 262144
  31. #define IPWIRELESS_STATE_DEBUG
  32. struct ipw_hardware;
  33. struct ipw_network;
  34. struct ipw_tty;
  35. struct ipw_dev {
  36. struct pcmcia_device *link;
  37. int is_v2_card;
  38. void __iomem *attr_memory;
  39. void __iomem *common_memory;
  40. /* Reference to attribute memory, containing CIS data */
  41. void *attribute_memory;
  42. /* Hardware context */
  43. struct ipw_hardware *hardware;
  44. /* Network layer context */
  45. struct ipw_network *network;
  46. /* TTY device context */
  47. struct ipw_tty *tty;
  48. struct work_struct work_reboot;
  49. };
  50. /* Module parametres */
  51. extern int ipwireless_debug;
  52. extern int ipwireless_loopback;
  53. extern int ipwireless_out_queue;
  54. #endif