2 * This file is part of wl12xx
4 * Copyright (C) 2011 Texas Instruments Inc.
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.
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.
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
22 #ifndef __WL12XX_PRIV_H__
23 #define __WL12XX_PRIV_H__
27 /* WiLink 6/7 chip IDs */
28 #define CHIP_ID_127X_PG10 (0x04030101)
29 #define CHIP_ID_127X_PG20 (0x04030111)
30 #define CHIP_ID_128X_PG10 (0x05030101)
31 #define CHIP_ID_128X_PG20 (0x05030111)
33 /* minimum FW required for driver for wl127x */
34 #define WL127X_CHIP_VER 6
35 #define WL127X_IFTYPE_VER WLCORE_FW_VER_IGNORE
36 #define WL127X_MAJOR_VER 10
37 #define WL127X_SUBTYPE_VER WLCORE_FW_VER_IGNORE
38 #define WL127X_MINOR_VER 115
40 /* minimum FW required for driver for wl128x */
41 #define WL128X_CHIP_VER 7
42 #define WL128X_IFTYPE_VER WLCORE_FW_VER_IGNORE
43 #define WL128X_MAJOR_VER 10
44 #define WL128X_SUBTYPE_VER WLCORE_FW_VER_IGNORE
45 #define WL128X_MINOR_VER 115
47 #define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)
49 #define WL12XX_NUM_TX_DESCRIPTORS 16
50 #define WL12XX_NUM_RX_DESCRIPTORS 8
52 #define WL12XX_NUM_MAC_ADDRESSES 2
54 struct wl127x_rx_mem_pool_addr {
60 struct wl12xx_priv_conf conf;
66 #endif /* __WL12XX_PRIV_H__ */