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