Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
drv_types.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
4  *
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.
8  *
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
12  * more details.
13  *
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
17  *
18  * Modifications for inclusion into the Linux staging tree are
19  * Copyright(c) 2010 Larry Finger. All rights reserved.
20  *
21  * Contact information:
22  * WLAN FAE <[email protected]>
23  * Larry Finger <[email protected]>
24  *
25  ******************************************************************************/
26 /*---------------------------------------------------------------------
27 
28  For type defines and data structure defines
29 
30 -----------------------------------------------------------------------*/
31 #ifndef __DRV_TYPES_H__
32 #define __DRV_TYPES_H__
33 
34 struct _adapter;
35 
36 #include "osdep_service.h"
37 #include "wlan_bssdef.h"
38 #include "rtl8712_spec.h"
39 #include "rtl8712_hal.h"
40 #include <linux/mutex.h>
41 #include <linux/completion.h>
42 
48 };
49 
50 struct _adapter;
51 
52 struct qos_priv {
53  /* bit mask option: u-apsd, s-apsd, ts, block ack... */
54  unsigned int qos_option;
55 };
56 
57 #include "rtl871x_ht.h"
58 #include "rtl871x_cmd.h"
59 #include "rtl871x_xmit.h"
60 #include "rtl871x_recv.h"
61 #include "rtl871x_security.h"
62 #include "rtl871x_pwrctrl.h"
63 #include "rtl871x_io.h"
64 #include "rtl871x_eeprom.h"
65 #include "sta_info.h"
66 #include "rtl871x_mlme.h"
67 #include "rtl871x_mp.h"
68 #include "rtl871x_debug.h"
69 #include "rtl871x_rf.h"
70 #include "rtl871x_event.h"
71 #include "rtl871x_led.h"
72 
73 #define SPEC_DEV_ID_DISABLE_HT BIT(1)
74 
79 
80 };
81 
82 struct registry_priv {
87  u8 network_mode; /*infra, ad-hoc, auto*/
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*/
109  /* UAPSD */
117 
119 
122  u8 ampdu_enable;/*for tx*/
126 };
127 
128 struct dvobj_priv {
134  struct usb_device *pusbdev;
135 };
136 
142 struct _adapter {
158  struct mp_priv mppriv;
163  bool fw_found;
173  int bup;
176  int pid; /*process id from UI*/
180  const struct firmware *fw;
184 };
185 
186 static inline u8 *myid(struct eeprom_priv *peepriv)
187 {
188  return peepriv->mac_addr;
189 }
190 
192 
193 #endif /*__DRV_TYPES_H__*/
194