usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src-rt / et / sys / et_linux.h
blob4e7d4c931eeb11704b58b18c2104b847e224552b
1 /*
2 * Linux device driver tunables for
3 * Broadcom BCM47XX 10/100Mbps Ethernet Device Driver
5 * Copyright (C) 2010, Broadcom Corporation
6 * All Rights Reserved.
7 *
8 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
9 * the contents of this file may not be disclosed to third parties, copied
10 * or duplicated in any form, in whole or in part, without the prior
11 * written permission of Broadcom Corporation.
12 * $Id: et_linux.h,v 1.16.12.3 2011-01-18 22:07:25 Exp $
15 #ifndef _et_linux_h_
16 #define _et_linux_h_
18 /* tunables */
19 #define NTXD 128 /* # tx dma ring descriptors (must be ^2) */
20 #define NRXD 512 /* # rx dma ring descriptors (must be ^2) */
21 #if defined(CONFIG_RAM_SIZE) && (CONFIG_RAM_SIZE <= 16)
22 #define NRXBUFPOST 256 /* try to keep this # rbufs posted to the chip */
23 #else
24 #define NRXBUFPOST 320 /* try to keep this # rbufs posted to the chip */
25 #endif
26 #define BUFSZ 2048 /* packet data buffer size */
27 #define RXBUFSZ (BUFSZ - 256) /* receive buffer size */
29 #ifndef RXBND
30 #define RXBND 32 /* max # rx frames to process in dpc */
31 #endif
33 #if defined(ILSIM) || defined(__arch_um__)
34 #undef NTXD
35 #define NTXD 16
36 #undef NRXD
37 #define NRXD 16
38 #undef NRXBUFPOST
39 #define NRXBUFPOST 2
40 #endif
42 #define CTFPOOLSZ 512
44 #define PREFSZ 96
45 #define ETPREFHDRS(h, sz) OSL_PREF_RANGE_ST((h), (sz))
47 #endif /* _et_linux_h_ */