Deleted Added
full compact
if_hmevar.h (91396) if_hmevar.h (93043)
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * from: NetBSD: hmevar.h,v 1.5 2000/06/25 01:10:04 eeh Exp
37 *
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * from: NetBSD: hmevar.h,v 1.5 2000/06/25 01:10:04 eeh Exp
37 *
38 * $FreeBSD: head/sys/dev/hme/if_hmevar.h 91396 2002-02-27 17:35:48Z tmm $
38 * $FreeBSD: head/sys/dev/hme/if_hmevar.h 93043 2002-03-23 19:37:11Z tmm $
39 */
40
41#include <sys/callout.h>
42
43/*
44 * Number of receive and transmit descriptors. For each receive descriptor,
45 * an mbuf cluster is allocated and set up to receive a packet, and a dma map
46 * is created. Therefore, this number should not be too high to not waste
47 * memory.
48 * TX descriptors have less static cost (a dma map is allocated which could
49 * cause bounce buffers to be reserved; other that that, the only required
50 * memory is sizeof(struct hme_txdesc)).
39 */
40
41#include <sys/callout.h>
42
43/*
44 * Number of receive and transmit descriptors. For each receive descriptor,
45 * an mbuf cluster is allocated and set up to receive a packet, and a dma map
46 * is created. Therefore, this number should not be too high to not waste
47 * memory.
48 * TX descriptors have less static cost (a dma map is allocated which could
49 * cause bounce buffers to be reserved; other that that, the only required
50 * memory is sizeof(struct hme_txdesc)).
51 * Both must be a multiple of 16, and <= 128.
52 */
51 */
53#define HME_NRXDESC 32
52#define HME_NRXDESC 128
54#define HME_NTXDESC 64
55
56/* Maximum size of a mapped RX buffer. */
57#define HME_BUFSZ 1600
58
59/*
60 * RX DMA descriptor. The descriptors are preallocated; the dma map is
61 * reused.

--- 91 unchanged lines hidden ---
53#define HME_NTXDESC 64
54
55/* Maximum size of a mapped RX buffer. */
56#define HME_BUFSZ 1600
57
58/*
59 * RX DMA descriptor. The descriptors are preallocated; the dma map is
60 * reused.

--- 91 unchanged lines hidden ---