xref: /linux/drivers/net/wireless/ti/wl12xx/wl12xx.h (revision 4a1ccce852882c174d2392d2d8db1d65f48d4a10)
1166b2136SLuciano Coelho /*
2166b2136SLuciano Coelho  * This file is part of wl12xx
3166b2136SLuciano Coelho  *
4166b2136SLuciano Coelho  * Copyright (C) 2011 Texas Instruments Inc.
5166b2136SLuciano Coelho  *
6166b2136SLuciano Coelho  * This program is free software; you can redistribute it and/or
7166b2136SLuciano Coelho  * modify it under the terms of the GNU General Public License
8166b2136SLuciano Coelho  * version 2 as published by the Free Software Foundation.
9166b2136SLuciano Coelho  *
10166b2136SLuciano Coelho  * This program is distributed in the hope that it will be useful, but
11166b2136SLuciano Coelho  * WITHOUT ANY WARRANTY; without even the implied warranty of
12166b2136SLuciano Coelho  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13166b2136SLuciano Coelho  * General Public License for more details.
14166b2136SLuciano Coelho  *
15166b2136SLuciano Coelho  * You should have received a copy of the GNU General Public License
16166b2136SLuciano Coelho  * along with this program; if not, write to the Free Software
17166b2136SLuciano Coelho  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18166b2136SLuciano Coelho  * 02110-1301 USA
19166b2136SLuciano Coelho  *
20166b2136SLuciano Coelho  */
21166b2136SLuciano Coelho 
22166b2136SLuciano Coelho #ifndef __WL12XX_PRIV_H__
23166b2136SLuciano Coelho #define __WL12XX_PRIV_H__
24166b2136SLuciano Coelho 
25166b2136SLuciano Coelho #include "conf.h"
26166b2136SLuciano Coelho 
27*4a1ccce8SArik Nemtsov /* minimum FW required for driver for wl127x */
28*4a1ccce8SArik Nemtsov #define WL127X_CHIP_VER		6
29*4a1ccce8SArik Nemtsov #define WL127X_IFTYPE_VER	3
30*4a1ccce8SArik Nemtsov #define WL127X_MAJOR_VER	10
31*4a1ccce8SArik Nemtsov #define WL127X_SUBTYPE_VER	2
32*4a1ccce8SArik Nemtsov #define WL127X_MINOR_VER	115
33*4a1ccce8SArik Nemtsov 
34*4a1ccce8SArik Nemtsov /* minimum FW required for driver for wl128x */
35*4a1ccce8SArik Nemtsov #define WL128X_CHIP_VER		7
36*4a1ccce8SArik Nemtsov #define WL128X_IFTYPE_VER	3
37*4a1ccce8SArik Nemtsov #define WL128X_MAJOR_VER	10
38*4a1ccce8SArik Nemtsov #define WL128X_SUBTYPE_VER	2
39*4a1ccce8SArik Nemtsov #define WL128X_MINOR_VER	115
40*4a1ccce8SArik Nemtsov 
414b4887e9SLuciano Coelho struct wl127x_rx_mem_pool_addr {
424b4887e9SLuciano Coelho 	u32 addr;
434b4887e9SLuciano Coelho 	u32 addr_extra;
444b4887e9SLuciano Coelho };
454b4887e9SLuciano Coelho 
46166b2136SLuciano Coelho struct wl12xx_priv {
47166b2136SLuciano Coelho 	struct wl12xx_priv_conf conf;
48a5d751bbSLuciano Coelho 
49a5d751bbSLuciano Coelho 	int ref_clock;
50a5d751bbSLuciano Coelho 	int tcxo_clock;
51166b2136SLuciano Coelho };
52166b2136SLuciano Coelho 
53166b2136SLuciano Coelho #endif /* __WL12XX_PRIV_H__ */
54