summaryrefslogtreecommitdiff
path: root/sys/mips/include/param.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2008-09-28 19:44:38 +0000
committerWarner Losh <imp@FreeBSD.org>2008-09-28 19:44:38 +0000
commite805961dde6d3b5e357c74a0d44a5b46a11958c7 (patch)
treea4cfb8600a1ce6abeb254d574cdbb384b6b95dbf /sys/mips/include/param.h
parent5f85c2cdd92db4f0d24f8863f00ff332f82c64a7 (diff)
Notes
Diffstat (limited to 'sys/mips/include/param.h')
-rw-r--r--sys/mips/include/param.h47
1 files changed, 4 insertions, 43 deletions
diff --git a/sys/mips/include/param.h b/sys/mips/include/param.h
index 2e8c42525b49..5acdfdfa115e 100644
--- a/sys/mips/include/param.h
+++ b/sys/mips/include/param.h
@@ -109,64 +109,25 @@
#define KERNBASE 0x80000000 /* start of kernel virtual */
#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
-#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
-#define BLKDEV_IOSIZE 2048
-#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */
-
-#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */
-
-#define MAXDUMPPGS 1
-
-#define CLSIZE 1
-#define CLBYTES (CLSIZE * NBPG)
-#define CLSIZELOG2 0
+#define BLKDEV_IOSIZE 2048 /* xxx: Why is this 1/2 page? */
+#define MAXDUMPPGS 1 /* xxx: why is this only one? */
/*
* NOTE: In FreeBSD, Uarea's don't have a fixed address.
* Therefore, any code imported from OpenBSD which depends on
* UADDR, UVPN and KERNELSTACK requires porting.
+ * XXX: 3 stack pages? Not 4 which would be more efficient from a tlb
+ * XXX: point of view.
*/
#define KSTACK_PAGES 3 /* kernel stack*/
#define KSTACK_GUARD_PAGES 0 /* pages of kstack guard; 0 disables */
#define UPAGES 2
-/*
- * 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.
- */
-#ifndef MSIZE
-#define MSIZE 256 /* size of an mbuf */
-#endif /* MSIZE */
-
-#ifndef MCLSHIFT
-#define MCLSHIFT 11
-#endif /* MCLSHIFT */
-#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */
-#define MCLOFSET (MCLBYTES - 1)
-
-/*
- * Size of kernel malloc arena in CLBYTES-sized logical pages
- */
-#ifndef NKMEMCLUSTERS
-#define NKMEMCLUSTERS (4096*1024/CLBYTES)
-#endif
-
/* pages ("clicks") (4096 bytes) to disk blocks */
#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT))
#define dtoc(x) ((x) >> (PGSHIFT - DEV_BSHIFT))
-/* pages to bytes */
-#define ctob(x) ((x) << PGSHIFT)
-#define btoc(x) (((x) + PGOFSET) >> PGSHIFT)
-
-/* bytes to disk blocks */
-#define btodb(x) ((x) >> DEV_BSHIFT)
-#define dbtob(x) ((x) << DEV_BSHIFT)
-
/*
* Map a ``block device block'' to a file system block.
* This should be device dependent, and should use the bsize