summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-09-22 04:11:55 +0000
committerdillon <dillon@FreeBSD.org>1999-09-22 04:11:55 +0000
commitb33dd41466979c78a12984ac9944517db95fb465 (patch)
tree972fb9c055905f2aa98b9f10f201e8c336811657 /sys/i386/include/param.h
parent672be93090a198b13edea08617055f2fc7533a3a (diff)
downloadFreeBSD-src-b33dd41466979c78a12984ac9944517db95fb465.zip
FreeBSD-src-b33dd41466979c78a12984ac9944517db95fb465.tar.gz
Change default block size for user VBLK device access from 2K to PAGE_SIZE
(4K on an i386, 8K on an alpha). Make BLKDEV_IOSIZE, DFLTPHYS, and MAXPHYS kernel-configurable.
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 1a8b1a7..0bd98e4 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -91,9 +91,15 @@
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define DEV_BSIZE (1<<DEV_BSHIFT)
-#define BLKDEV_IOSIZE 2048
+#ifndef BLKDEV_IOSIZE
+#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */
+#endif
+#ifndef DFLTPHYS
#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */
+#endif
+#ifndef MAXPHYS
#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */
+#endif
#define IOPAGES 2 /* pages of i/o permission bitmap */
#define UPAGES 2 /* pages of u-area */
OpenPOWER on IntegriCloud