summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sun3/include/param.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h
index 6e097903976..1da485117d1 100644
--- a/sys/arch/sun3/include/param.h
+++ b/sys/arch/sun3/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.27 2001/07/06 02:07:44 provos Exp $ */
+/* $OpenBSD: param.h,v 1.28 2001/11/30 20:59:12 miod Exp $ */
/* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */
/*
@@ -64,9 +64,9 @@
#define PAGE_SIZE (1 << PAGE_SHIFT)
#define PAGE_MASK (PAGE_SIZE - 1)
-#define NBSG 0x20000 /* bytes/segment */
-#define SEGOFSET (NBSG-1) /* byte offset into segment */
#define SEGSHIFT 17 /* LOG2(NBSG) */
+#define NBSG (1 << SEGSHIFT) /* bytes/segment */
+#define SEGOFSET (NBSG-1) /* byte offset into segment */
#define KERNBASE 0x0E000000 /* start of kernel virtual */
#define KERNTEXTOFF 0x0E004000 /* start of kernel text */
@@ -75,25 +75,6 @@
#define MAXBSIZE 0x8000 /* XXX temp until sun3 dma chaining */
-/*
- * Constants related to network buffer management.
- * MCLBYTES must be no larger than 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 256 /* 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
-
#define MSGBUFOFF 0x200
#define MSGBUFSIZE (NBPG - MSGBUFOFF)