2 * Linux device driver tunables for
3 * Broadcom BCM47XX 10/100Mbps Ethernet Device Driver
5 * Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
7 * Permission to use, copy, modify, and/or distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
14 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
16 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id: et_linux.h 373323 2012-12-07 04:06:16Z $
25 #define NTXD 512 /* # tx dma ring descriptors (must be ^2) */
26 #define NRXD 512 /* # rx dma ring descriptors (must be ^2) */
27 #if defined(CONFIG_RAM_SIZE) && ((CONFIG_RAM_SIZE > 0) && (CONFIG_RAM_SIZE <= 16))
28 #define NRXBUFPOST 256 /* try to keep this # rbufs posted to the chip */
30 #define NRXBUFPOST 320 /* try to keep this # rbufs posted to the chip */
32 #define BUFSZ 2048 /* packet data buffer size */
33 #define RXBUFSZ (BUFSZ - 256) /* receive buffer size */
36 #define RXBND 32 /* max # rx frames to process in dpc */
39 #if defined(ILSIM) || defined(__arch_um__)
50 #if defined(CONFIG_RAM_SIZE) && ((CONFIG_RAM_SIZE > 0) && (CONFIG_RAM_SIZE <= 16))
53 #ifdef __ARM_ARCH_7A__
54 #define CTFPOOLSZ 1024
58 #endif /* CONFIG_RAM_SIZE */
62 #define ETPREFHDRS(h, sz) OSL_PREF_RANGE_ST((h), (sz))
64 #define ETPREFHDRS(h, sz)
69 #define TXMR 2 /* number of outstanding reads */
73 #define TXPREFTHRESH 8 /* prefetch threshold */
77 #define TXPREFCTL 16 /* max descr allowed in prefetch request */
81 #define TXBURSTLEN 128 /* burst length for dma reads */
85 #define RXPREFTHRESH 1 /* prefetch threshold */
89 #define RXPREFCTL 8 /* max descr allowed in prefetch request */
93 #define RXBURSTLEN 128 /* burst length for dma writes */
96 #endif /* _et_linux_h_ */