summaryrefslogtreecommitdiff
path: root/sys/dev/ccdvar.h
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-26 22:30:22 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-26 22:30:22 +0000
commitc38ed9b1c2e664cf30d42a3e8a3e528af06e306b (patch)
treeab71eab93fea9c9ec385f3794c11c18a7fa9cfac /sys/dev/ccdvar.h
parent8ff570e6f1f5e2a44326585117c428e8eab7687a (diff)
Optimized to perform well on small interleaves which makes the ccd driver
really useful as a performance booster. The interleave needs to be a multiple of the software page size (CLBYTES) and not have mirror components if the new optimized policy should be used, otherwise the old policy will be used still.
Diffstat (limited to 'sys/dev/ccdvar.h')
-rw-r--r--sys/dev/ccdvar.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ccdvar.h b/sys/dev/ccdvar.h
index 7a1514bedf1..20e5b5098a3 100644
--- a/sys/dev/ccdvar.h
+++ b/sys/dev/ccdvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccdvar.h,v 1.3 1996/03/02 00:29:23 niklas Exp $ */
+/* $OpenBSD: ccdvar.h,v 1.4 1997/11/26 22:30:19 niklas Exp $ */
/* $NetBSD: ccdvar.h,v 1.11 1996/02/28 01:08:32 thorpej Exp $ */
/*-
@@ -116,9 +116,10 @@ struct ccd_ioctl {
#define CCDF_SWAP 0x01 /* interleave should be dmmax */
#define CCDF_UNIFORM 0x02 /* use LCCD of sizes for uniform interleave */
#define CCDF_MIRROR 0x04 /* enable data mirroring */
+#define CCDF_OLD 0x08 /* use slower but less restrictive I/O code */
/* Mask of user-settable ccd flags. */
-#define CCDF_USERMASK (CCDF_SWAP|CCDF_UNIFORM|CCDF_MIRROR)
+#define CCDF_USERMASK (CCDF_SWAP|CCDF_UNIFORM|CCDF_MIRROR|CCDF_OLD)
/*
* Component info table.