Luciano Coelho | 166b213 | 2011-12-05 16:51:10 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of wl12xx |
| 3 | * |
| 4 | * Copyright (C) 2011 Texas Instruments Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * version 2 as published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 18 | * 02110-1301 USA |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #ifndef __WL12XX_PRIV_H__ |
| 23 | #define __WL12XX_PRIV_H__ |
| 24 | |
| 25 | #include "conf.h" |
| 26 | |
Arik Nemtsov | 4a1ccce | 2012-06-25 17:46:40 +0300 | [diff] [blame] | 27 | /* minimum FW required for driver for wl127x */ |
| 28 | #define WL127X_CHIP_VER 6 |
| 29 | #define WL127X_IFTYPE_VER 3 |
| 30 | #define WL127X_MAJOR_VER 10 |
| 31 | #define WL127X_SUBTYPE_VER 2 |
| 32 | #define WL127X_MINOR_VER 115 |
| 33 | |
| 34 | /* minimum FW required for driver for wl128x */ |
| 35 | #define WL128X_CHIP_VER 7 |
| 36 | #define WL128X_IFTYPE_VER 3 |
| 37 | #define WL128X_MAJOR_VER 10 |
| 38 | #define WL128X_SUBTYPE_VER 2 |
| 39 | #define WL128X_MINOR_VER 115 |
| 40 | |
Igal Chernobelsky | 26a309c | 2012-07-29 18:21:12 +0300 | [diff] [blame] | 41 | #define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE) |
| 42 | |
Igal Chernobelsky | f1c434d | 2012-07-31 14:48:46 +0300 | [diff] [blame] | 43 | #define WL12XX_NUM_TX_DESCRIPTORS 16 |
| 44 | #define WL12XX_NUM_RX_DESCRIPTORS 8 |
| 45 | |
Arik Nemtsov | f4afbed | 2012-08-02 20:37:21 +0300 | [diff] [blame] | 46 | #define WL12XX_NUM_MAC_ADDRESSES 2 |
| 47 | |
Luciano Coelho | 4b4887e | 2012-05-10 12:13:45 +0300 | [diff] [blame] | 48 | struct wl127x_rx_mem_pool_addr { |
| 49 | u32 addr; |
| 50 | u32 addr_extra; |
| 51 | }; |
| 52 | |
Luciano Coelho | 166b213 | 2011-12-05 16:51:10 +0200 | [diff] [blame] | 53 | struct wl12xx_priv { |
| 54 | struct wl12xx_priv_conf conf; |
Luciano Coelho | a5d751b | 2012-05-10 12:13:43 +0300 | [diff] [blame] | 55 | |
| 56 | int ref_clock; |
| 57 | int tcxo_clock; |
Luciano Coelho | 166b213 | 2011-12-05 16:51:10 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | #endif /* __WL12XX_PRIV_H__ */ |