ray_cs.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. window_handle_t amem_handle; /* handle to window for attribute memory */
  25. window_handle_t rmem_handle; /* handle to window for rx buffer on card */
  26. void __iomem *sram; /* pointer to beginning of shared RAM */
  27. void __iomem *amem; /* pointer to attribute mem window */
  28. void __iomem *rmem; /* pointer to receive buffer window */
  29. struct pcmcia_device *finder; /* pointer back to struct pcmcia_device for card */
  30. struct timer_list timer;
  31. unsigned long tx_ccs_lock;
  32. unsigned long ccs_lock;
  33. int dl_param_ccs;
  34. union {
  35. struct b4_startup_params b4;
  36. struct b5_startup_params b5;
  37. } sparm;
  38. int timeout_flag;
  39. UCHAR supported_rates[8];
  40. UCHAR japan_call_sign[12];
  41. struct startup_res_6 startup_res;
  42. int num_multi;
  43. /* Network parameters from start/join */
  44. UCHAR bss_id[6];
  45. UCHAR auth_id[6];
  46. UCHAR net_default_tx_rate;
  47. UCHAR encryption;
  48. struct net_device_stats stats;
  49. UCHAR net_type;
  50. UCHAR sta_type;
  51. UCHAR fw_ver;
  52. UCHAR fw_bld;
  53. UCHAR fw_var;
  54. UCHAR ASIC_version;
  55. UCHAR assoc_id[2];
  56. UCHAR tib_length;
  57. UCHAR last_rsl;
  58. int beacon_rxed;
  59. struct beacon_rx last_bcn;
  60. iw_stats wstats; /* Wireless specific stats */
  61. #ifdef WIRELESS_SPY
  62. struct iw_spy_data spy_data;
  63. struct iw_public_data wireless_data;
  64. #endif /* WIRELESS_SPY */
  65. } ray_dev_t;
  66. /*****************************************************************************/
  67. #endif /* RAYLINK_H */