main.h 1.5 KB

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