ray_cs.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Raytheon wireless LAN PCMCIA card driver for Linux
  2. A PCMCIA client driver for the Raylink wireless network card
  3. Written by Corey Thomas
  4. */
  5. #ifndef _RAY_CS_H_
  6. #define _RAY_CS_H_
  7. struct beacon_rx {
  8. struct mac_header mac;
  9. UCHAR timestamp[8];
  10. UCHAR beacon_intvl[2];
  11. UCHAR capability[2];
  12. UCHAR elements[sizeof(struct essid_element)
  13. + sizeof(struct rates_element)
  14. + sizeof(struct freq_hop_element)
  15. + sizeof(struct japan_call_sign_element)
  16. + sizeof(struct tim_element)];
  17. };
  18. /* Return values for get_free{,_tx}_ccs */
  19. #define ECCSFULL (-1)
  20. #define ECCSBUSY (-2)
  21. #define ECARDGONE (-3)
  22. typedef struct ray_dev_t {
  23. int card_status;
  24. int authentication_state;
  25. void __iomem *sram; /* pointer to beginning of shared RAM */
  26. void __iomem *amem; /* pointer to attribute mem window */
  27. void __iomem *rmem; /* pointer to receive buffer window */
  28. struct pcmcia_device *finder; /* pointer back to struct pcmcia_device for card */
  29. struct timer_list timer;
  30. unsigned long tx_ccs_lock;
  31. unsigned long ccs_lock;
  32. int dl_param_ccs;
  33. union {
  34. struct b4_startup_params b4;
  35. struct b5_startup_params b5;
  36. } sparm;
  37. int timeout_flag;
  38. UCHAR supported_rates[8];
  39. UCHAR japan_call_sign[12];
  40. struct startup_res_6 startup_res;
  41. int num_multi;
  42. /* Network parameters from start/join */
  43. UCHAR bss_id[6];
  44. UCHAR auth_id[6];
  45. UCHAR net_default_tx_rate;
  46. UCHAR encryption;
  47. struct net_device_stats stats;
  48. UCHAR net_type;
  49. UCHAR sta_type;
  50. UCHAR fw_ver;
  51. UCHAR fw_bld;
  52. UCHAR fw_var;
  53. UCHAR ASIC_version;
  54. UCHAR assoc_id[2];
  55. UCHAR tib_length;
  56. UCHAR last_rsl;
  57. int beacon_rxed;
  58. struct beacon_rx last_bcn;
  59. iw_stats wstats; /* Wireless specific stats */
  60. #ifdef WIRELESS_SPY
  61. struct iw_spy_data spy_data;
  62. struct iw_public_data wireless_data;
  63. #endif /* WIRELESS_SPY */
  64. } ray_dev_t;
  65. /*****************************************************************************/
  66. #endif /* _RAY_CS_H_ */