2011-12-05 22:51:10 +08:00
|
|
|
/*
|
|
|
|
* This file is part of wl12xx
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Texas Instruments Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
|
|
* 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WL12XX_PRIV_H__
|
|
|
|
#define __WL12XX_PRIV_H__
|
|
|
|
|
|
|
|
#include "conf.h"
|
|
|
|
|
2012-06-25 22:46:40 +08:00
|
|
|
/* minimum FW required for driver for wl127x */
|
|
|
|
#define WL127X_CHIP_VER 6
|
|
|
|
#define WL127X_IFTYPE_VER 3
|
|
|
|
#define WL127X_MAJOR_VER 10
|
|
|
|
#define WL127X_SUBTYPE_VER 2
|
|
|
|
#define WL127X_MINOR_VER 115
|
|
|
|
|
|
|
|
/* minimum FW required for driver for wl128x */
|
|
|
|
#define WL128X_CHIP_VER 7
|
|
|
|
#define WL128X_IFTYPE_VER 3
|
|
|
|
#define WL128X_MAJOR_VER 10
|
|
|
|
#define WL128X_SUBTYPE_VER 2
|
|
|
|
#define WL128X_MINOR_VER 115
|
|
|
|
|
2012-07-29 23:21:12 +08:00
|
|
|
#define WL12XX_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)
|
|
|
|
|
2012-07-31 19:48:46 +08:00
|
|
|
#define WL12XX_NUM_TX_DESCRIPTORS 16
|
|
|
|
#define WL12XX_NUM_RX_DESCRIPTORS 8
|
|
|
|
|
2012-08-03 01:37:21 +08:00
|
|
|
#define WL12XX_NUM_MAC_ADDRESSES 2
|
|
|
|
|
2012-05-10 17:13:45 +08:00
|
|
|
struct wl127x_rx_mem_pool_addr {
|
|
|
|
u32 addr;
|
|
|
|
u32 addr_extra;
|
|
|
|
};
|
|
|
|
|
2011-12-05 22:51:10 +08:00
|
|
|
struct wl12xx_priv {
|
|
|
|
struct wl12xx_priv_conf conf;
|
2012-05-10 17:13:43 +08:00
|
|
|
|
|
|
|
int ref_clock;
|
|
|
|
int tcxo_clock;
|
2011-12-05 22:51:10 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __WL12XX_PRIV_H__ */
|