From af7194e9a1e27a135acd49055ab325f9229e8eec Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Wed, 31 Jan 2001 23:05:18 +0000 Subject: Allocate shared memory via the bus_dmamem/bus_dmamap interface; makes le interface work under VMware as an additional bonus. ok theo@ --- sys/dev/pci/if_levar.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/if_levar.h') diff --git a/sys/dev/pci/if_levar.h b/sys/dev/pci/if_levar.h index 59e1b7f338d..01c5e1ad1f8 100644 --- a/sys/dev/pci/if_levar.h +++ b/sys/dev/pci/if_levar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_levar.h,v 1.4 1997/11/07 08:07:29 niklas Exp $ */ +/* $OpenBSD: if_levar.h,v 1.5 2001/01/31 23:05:17 tholo Exp $ */ /* $NetBSD: if_levar.h,v 1.3 1996/10/21 22:56:46 thorpej Exp $ */ /* @@ -17,6 +17,18 @@ #define PCNET_PCI_RDP 0x10 #define PCNET_PCI_RAP 0x12 +/* + * Size of packet buffer + * + * The MI code will split this between initialization block, descriptors, + * transmit and receive buffers. + * + * Must be 8192 <= PCNET_MEMSIZE <= 262144 and a power of 2 + */ + +#define PCNET_MEMSIZE 16384 + + /* * Ethernet software status per interface. * -- cgit v1.2.3