ray_cs.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Raytheon wireless LAN PCMCIA card driver for Linux
  3. A PCMCIA client driver for the Raylink wireless network card
  4. Written by Corey Thomas
  5. */
  6. #ifndef _RAY_CS_H_
  7. #define _RAY_CS_H_
  8. struct beacon_rx {
  9. struct mac_header mac;
  10. UCHAR timestamp[8];
  11. UCHAR beacon_intvl[2];
  12. UCHAR capability[2];
  13. UCHAR elements[sizeof(struct essid_element)
  14. + sizeof(struct rates_element)
  15. + sizeof(struct freq_hop_element)
  16. + sizeof(struct japan_call_sign_element)
  17. + sizeof(struct tim_element)];
  18. };
  19. /* Return values for get_free{,_tx}_ccs */
  20. #define ECCSFULL (-1)
  21. #define ECCSBUSY (-2)
  22. #define ECARDGONE (-3)
  23. typedef struct ray_dev_t {
  24. int card_status;
  25. int authentication_state;
  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 /* _RAY_CS_H_ */