1/*
2 * Linux device driver tunables for
3 * Broadcom BCM47XX 10/100Mbps Ethernet Device Driver
4 *
5 * Copyright 2007, 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.1.1.1 2008/10/15 03:25:54 james26_jang Exp $
13 */
14
15#ifndef _et_linux_h_
16#define _et_linux_h_
17
18/* tunables */
19#define	NTXD		64		/* # tx dma ring descriptors (must be ^2) */
20#define	NRXD		512		/* # rx dma ring descriptors (must be ^2) */
21#define	NRXBUFPOST	48		/* try to keep this # rbufs posted to the chip */
22#define	BUFSZ		2048		/* packet data buffer size */
23#define	RXBUFSZ		(BUFSZ - 256)	/* receive buffer size */
24
25#ifndef RXBND
26#define RXBND		8		/* max # rx frames to process in dpc */
27#endif
28
29#if defined(ILSIM) || defined(__arch_um__)
30#undef	NTXD
31#define	NTXD		16
32#undef	NRXD
33#define	NRXD		16
34#undef	NRXBUFPOST
35#define	NRXBUFPOST	2
36#endif
37
38#endif	/* _et_linux_h_ */
39