Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Raytheon wireless LAN PCMCIA card driver for Linux 
0003    A  PCMCIA client driver for the Raylink wireless network card
0004    Written by Corey Thomas
0005 */
0006 
0007 #ifndef _RAY_CS_H_
0008 #define _RAY_CS_H_
0009 
0010 struct beacon_rx {
0011     struct mac_header mac;
0012     UCHAR timestamp[8];
0013     UCHAR beacon_intvl[2];
0014     UCHAR capability[2];
0015     UCHAR elements[sizeof(struct essid_element) 
0016                   + sizeof(struct rates_element)
0017                   + sizeof(struct freq_hop_element) 
0018                   + sizeof(struct japan_call_sign_element)
0019                   + sizeof(struct tim_element)];
0020 };
0021 
0022 /* Return values for get_free{,_tx}_ccs */
0023 #define ECCSFULL  (-1)
0024 #define ECCSBUSY  (-2)
0025 #define ECARDGONE (-3)
0026 
0027 typedef struct ray_dev_t {
0028     int card_status;
0029     int authentication_state;
0030     void __iomem *sram;            /* pointer to beginning of shared RAM     */
0031     void __iomem *amem;            /* pointer to attribute mem window        */
0032     void __iomem *rmem;            /* pointer to receive buffer window       */
0033     struct pcmcia_device *finder;            /* pointer back to struct pcmcia_device for card    */
0034     struct timer_list timer;
0035     unsigned long tx_ccs_lock;
0036     unsigned long ccs_lock;
0037     int   dl_param_ccs;
0038     union {
0039         struct b4_startup_params b4;
0040         struct b5_startup_params b5;
0041     } sparm;
0042     int timeout_flag;
0043     UCHAR supported_rates[8];
0044     UCHAR japan_call_sign[12];
0045     struct startup_res_6 startup_res;
0046     int num_multi;
0047     /* Network parameters from start/join */
0048     UCHAR bss_id[6];
0049     UCHAR auth_id[6];
0050     UCHAR net_default_tx_rate;
0051     UCHAR encryption;
0052     struct net_device_stats stats;
0053 
0054     UCHAR net_type;
0055     UCHAR sta_type;
0056     UCHAR fw_ver;
0057     UCHAR fw_bld;
0058     UCHAR fw_var;
0059     UCHAR ASIC_version;
0060     UCHAR assoc_id[2];
0061     UCHAR tib_length;
0062     UCHAR last_rsl;
0063     int beacon_rxed;
0064     struct beacon_rx last_bcn;
0065     iw_stats    wstats;     /* Wireless specific stats */
0066 #ifdef WIRELESS_SPY
0067     struct iw_spy_data      spy_data;
0068     struct iw_public_data   wireless_data;
0069 #endif  /* WIRELESS_SPY */
0070 
0071 } ray_dev_t;
0072 /*****************************************************************************/
0073 
0074 #endif /* _RAY_CS_H_ */