main.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_types.h>
  22. #include <pcmcia/cs.h>
  23. #include <pcmcia/cistpl.h>
  24. #include <pcmcia/ds.h>
  25. #include "hardware.h"
  26. #define IPWIRELESS_PCCARD_NAME "ipwireless"
  27. #define IPWIRELESS_PCMCIA_VERSION "1.1"
  28. #define IPWIRELESS_PCMCIA_AUTHOR \
  29. "Stephen Blackheath, Ben Martel, Jiri Kosina and David Sterba"
  30. #define IPWIRELESS_TX_QUEUE_SIZE 262144
  31. #define IPWIRELESS_RX_QUEUE_SIZE 262144
  32. #define IPWIRELESS_STATE_DEBUG
  33. struct ipw_hardware;
  34. struct ipw_network;
  35. struct ipw_tty;
  36. struct ipw_dev {
  37. struct pcmcia_device *link;
  38. int is_v2_card;
  39. window_handle_t handle_attr_memory;
  40. void __iomem *attr_memory;
  41. win_req_t request_attr_memory;
  42. window_handle_t handle_common_memory;
  43. void __iomem *common_memory;
  44. win_req_t request_common_memory;
  45. dev_node_t nodes[2];
  46. /* Reference to attribute memory, containing CIS data */
  47. void *attribute_memory;
  48. /* Hardware context */
  49. struct ipw_hardware *hardware;
  50. /* Network layer context */
  51. struct ipw_network *network;
  52. /* TTY device context */
  53. struct ipw_tty *tty;
  54. struct work_struct work_reboot;
  55. };
  56. /* Module parametres */
  57. extern int ipwireless_debug;
  58. extern int ipwireless_loopback;
  59. extern int ipwireless_out_queue;
  60. #endif