diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-09-11 16:10:00 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-09-11 16:10:00 +0000 |
commit | 9ac843e6f4236e4300c4d2570c5ebe9e18238e8f (patch) | |
tree | 2a7bca5e5c0d7047c7b26edeaf75b858d95d7171 /sys/arch/sun3/include | |
parent | ce37394e6c73504e7cadb58f6bc353002c793508 (diff) |
activate sun3 SCSI DVMA
Diffstat (limited to 'sys/arch/sun3/include')
-rw-r--r-- | sys/arch/sun3/include/param.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h index 0e345080681..34bbc18e1c4 100644 --- a/sys/arch/sun3/include/param.h +++ b/sys/arch/sun3/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.16 1997/09/08 18:08:51 kstailey Exp $ */ +/* $OpenBSD: param.h,v 1.17 1997/09/11 16:09:58 kstailey Exp $ */ /* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */ /* @@ -51,9 +51,6 @@ */ #define _MACHINE sun3 #define MACHINE "sun3" -#define _MACHINE_ARCH m68k -#define MACHINE_ARCH "m68k" -#define MID_MACHINE MID_M68K /* * Round p (pointer or byte index) up to a correctly-aligned value @@ -72,6 +69,27 @@ #include <m68k/param.h> +#define MAXBSIZE 0x8000 /* XXX temp until sun3 dma chaining */ + +/* + * Constants related to network buffer management. + * MCLBYTES must be no larger than CLBYTES (the software page size), and, + * on machines that exchange pages of input or output buffers with mbuf + * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple + * of the hardware page size. + */ +#define MSIZE 128 /* size of an mbuf */ +#define MCLSHIFT 11 +#define MCLBYTES (1 << MCLSHIFT) /* large enough for ether MTU */ +#define MCLOFSET (MCLBYTES - 1) +#ifndef NMBCLUSTERS +#ifdef GATEWAY +#define NMBCLUSTERS 512 /* map size, max cluster allocation */ +#else +#define NMBCLUSTERS 256 /* map size, max cluster allocation */ +#endif +#endif + /* * Size of kernel malloc arena in CLBYTES-sized logical pages */ |