main.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/cs.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. window_handle_t handle_attr_memory;
  39. void __iomem *attr_memory;
  40. win_req_t request_attr_memory;
  41. window_handle_t handle_common_memory;
  42. void __iomem *common_memory;
  43. win_req_t request_common_memory;
  44. /* Reference to attribute memory, containing CIS data */
  45. void *attribute_memory;
  46. /* Hardware context */
  47. struct ipw_hardware *hardware;
  48. /* Network layer context */
  49. struct ipw_network *network;
  50. /* TTY device context */
  51. struct ipw_tty *tty;
  52. struct work_struct work_reboot;
  53. };
  54. /* Module parametres */
  55. extern int ipwireless_debug;
  56. extern int ipwireless_loopback;
  57. extern int ipwireless_out_queue;
  58. #endif