aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-22 04:11:55 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-22 04:11:55 +0000
commita59d364a23cc9c69b00c3111d78cfaa7abce00d3 (patch)
tree9d1dbd471f91c2e087238ecc95ef581191da252c /sys/alpha
parent735ce767c781bc19d64ef39712bad7c28f16ed08 (diff)
downloadsrc-a59d364a23cc9c69b00c3111d78cfaa7abce00d3.tar.gz
src-a59d364a23cc9c69b00c3111d78cfaa7abce00d3.zip
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.
Notes
Notes: svn path=/head/; revision=51528
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/param.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index 873ea8504b4f..2bb660ca4cb7 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -98,9 +98,16 @@
#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 CLSIZE 1
#define CLSIZELOG2 0