1
/******************************************************************************
3
* Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of version 2 of the GNU General Public License as
7
* published by the Free Software Foundation.
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* You should have received a copy of the GNU General Public License along with
15
* this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18
* Modifications for inclusion into the Linux staging tree are
19
* Copyright(c) 2010 Larry Finger. All rights reserved.
21
* Contact information:
22
* WLAN FAE <wlanfae@realtek.com>
23
* Larry Finger <Larry.Finger@lwfinger.net>
25
******************************************************************************/
26
/*---------------------------------------------------------------------
28
For type defines and data structure defines
30
-----------------------------------------------------------------------*/
31
#ifndef __DRV_TYPES_H__
32
#define __DRV_TYPES_H__
36
#include "osdep_service.h"
37
#include "wlan_bssdef.h"
38
#include "rtl8712_spec.h"
39
#include "rtl8712_hal.h"
51
/* bit mask option: u-apsd, s-apsd, ts, block ack... */
52
unsigned int qos_option;
55
#include "rtl871x_ht.h"
56
#include "rtl871x_cmd.h"
57
#include "rtl871x_xmit.h"
58
#include "rtl871x_recv.h"
59
#include "rtl871x_security.h"
60
#include "rtl871x_pwrctrl.h"
61
#include "rtl871x_io.h"
62
#include "rtl871x_eeprom.h"
64
#include "rtl871x_mlme.h"
65
#include "rtl871x_mp.h"
66
#include "rtl871x_debug.h"
67
#include "rtl871x_rf.h"
68
#include "rtl871x_event.h"
69
#include "rtl871x_led.h"
71
#define SPEC_DEV_ID_NONE BIT(0)
72
#define SPEC_DEV_ID_DISABLE_HT BIT(1)
73
#define SPEC_DEV_ID_ENABLE_PS BIT(2)
75
struct specific_device_id {
82
struct registry_priv {
87
u8 network_mode; /*infra, ad-hoc, auto*/
88
struct ndis_802_11_ssid ssid;
89
u8 channel;/* ad-hoc support requirement */
90
u8 wireless_mode;/* A, B, G, auto */
91
u8 vrtl_carrier_sense; /*Enable, Disable, Auto*/
92
u8 vcs_type;/*RTS/CTS, CTS-to-self*/
95
u8 preamble;/*long, short, auto*/
96
u8 scan_mode;/*active, passive*/
118
struct wlan_bssid_ex dev_network;
122
u8 ampdu_enable;/*for tx*/
128
/* For registry parameters */
129
#define RGTRY_OFT(field) ((addr_t)FIELD_OFFSET(struct registry_priv, field))
130
#define RGTRY_SZ(field) sizeof(((struct registry_priv *)0)->field)
131
#define BSSID_OFT(field) ((addr_t)FIELD_OFFSET(struct ndis_wlan_bssid_ex, \
133
#define BSSID_SZ(field) sizeof(((struct ndis_wlan_bssid_ex *)0)->field)
136
struct _adapter *padapter;
139
uint(*inirp_init)(struct _adapter *adapter);
140
uint(*inirp_deinit)(struct _adapter *adapter);
141
struct semaphore usb_suspend_sema;
142
struct usb_device *pusbdev;
146
* struct _adapter - the main adapter structure for this device.
148
* bup: True indicates that the interface is Up.
151
struct dvobj_priv dvobjpriv;
152
struct mlme_priv mlmepriv;
153
struct cmd_priv cmdpriv;
154
struct evt_priv evtpriv;
155
struct io_queue *pio_queue;
156
struct xmit_priv xmitpriv;
157
struct recv_priv recvpriv;
158
struct sta_priv stapriv;
159
struct security_priv securitypriv;
160
struct registry_priv registrypriv;
161
struct wlan_acl_pool acl_list;
162
struct pwrctrl_priv pwrctrlpriv;
163
struct eeprom_priv eeprompriv;
164
struct hal_priv halpriv;
165
struct led_priv ledpriv;
166
struct mp_priv mppriv;
168
s32 bSurpriseRemoved;
171
u8 EepromAddressSize;
172
u8 hw_init_completed;
173
struct task_struct *cmdThread;
175
struct task_struct *xmitThread;
177
uint(*dvobj_init)(struct _adapter *adapter);
178
void (*dvobj_deinit)(struct _adapter *adapter);
179
struct net_device *pnetdev;
181
struct net_device_stats stats;
182
struct iw_statistics iwstats;
183
int pid; /*process id from UI*/
184
_workitem wkFilterRxFF0;
185
u8 blnEnableRxFF0Filter;
186
spinlock_t lockRxFF0Filter;
189
static inline u8 *myid(struct eeprom_priv *peepriv)
191
return peepriv->mac_addr;
194
u8 r8712_usb_hal_bus_init(struct _adapter *adapter);
196
#endif /*__DRV_TYPES_H__*/