RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / wl / config / wltunable_lx_router.h
blob2b1c4a7f22c3d955b350b2f062f1d9c6c2d18c85
1 /*
2 * Broadcom 802.11abg Networking Device Driver Configuration file
4 * Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: wltunable_lx_router.h 322208 2012-03-20 01:53:23Z $
20 * wl driver tunables
23 #define D11CONF 0x77a7baa0 /* D11 Core Rev 5 (4306C0), 7 (4712), 9 (4318b0, 5352),
24 * 11 (4321a1), 12 (4321b/c), 13 (5354), 15(4312),
25 * 16 (4322), 17 (4716), 18 (43224a0), 21 (5356),
26 * 23 (43224b0), 24 (4313), 25 (5357a0), 26 (4331a0),
27 * 28 (5357b0), 29 (4331B0), 30(43228).
29 #define D11CONF2 0x100 /* D11 Core Rev > 31, Rev 40(4360a0) */
31 #define NRXBUFPOST 56 /* # rx buffers posted */
32 #define RXBND 24 /* max # rx frames to process */
33 #define PKTCBND 36 /* max # rx frames to chain */
34 #define CTFPOOLSZ 64 /* max buffers in ctfpool */
36 #define WME_PER_AC_TX_PARAMS 1
37 #define WME_PER_AC_TUNING 1
39 #define NTXD_AC3X3 512 /* TX descriptor ring */
40 #define NRXD_AC3X3 512 /* RX descriptor ring */
41 #define NRXBUFPOST_AC3X3 320 /* # rx buffers posted */
42 #define RXBND_AC3X3 36 /* max # rx frames to process */
43 #define CTFPOOLSZ_AC3X3 512 /* max buffers in ctfpool */
44 #define PKTCBND_AC3X3 48 /* max # rx frames to chain */
46 #define TXMR 2 /* number of outstanding reads */
47 #define TXPREFTHRESH 8 /* prefetch threshold */
48 #define TXPREFCTL 16 /* max descr allowed in prefetch request */
49 #define TXBURSTLEN 256 /* burst length for dma reads */
51 #define RXPREFTHRESH 1 /* prefetch threshold */
52 #define RXPREFCTL 8 /* max descr allowed in prefetch request */
53 #define RXBURSTLEN 256 /* burst length for dma writes */
55 #define MRRS 512 /* Max read request size */