rf_dagflags.h revision 1.1 1 /* $NetBSD: rf_dagflags.h,v 1.1 1998/11/13 04:20:27 oster Exp $ */
2 /*
3 * Copyright (c) 1995 Carnegie-Mellon University.
4 * All rights reserved.
5 *
6 * Author: Mark Holland
7 *
8 * Permission to use, copy, modify and distribute this software and
9 * its documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
27 */
28
29 /**************************************************************************************
30 *
31 * dagflags.h -- flags that can be given to DoAccess
32 * I pulled these out of dag.h because routines that call DoAccess may need these flags,
33 * but certainly do not need the declarations related to the DAG data structures.
34 *
35 **************************************************************************************/
36
37 /* :
38 * Log: rf_dagflags.h,v
39 * Revision 1.10 1996/06/13 19:08:23 jimz
40 * remove unused BD flag
41 *
42 * Revision 1.9 1996/05/30 11:29:41 jimz
43 * Numerous bug fixes. Stripe lock release code disagreed with the taking code
44 * about when stripes should be locked (I made it consistent: no parity, no lock)
45 * There was a lot of extra serialization of I/Os which I've removed- a lot of
46 * it was to calculate values for the cache code, which is no longer with us.
47 * More types, function, macro cleanup. Added code to properly quiesce the array
48 * on shutdown. Made a lot of stuff array-specific which was (bogusly) general
49 * before. Fixed memory allocation, freeing bugs.
50 *
51 * Revision 1.8 1996/05/24 22:17:04 jimz
52 * continue code + namespace cleanup
53 * typed a bunch of flags
54 *
55 * Revision 1.7 1996/05/23 21:46:35 jimz
56 * checkpoint in code cleanup (release prep)
57 * lots of types, function names have been fixed
58 *
59 * Revision 1.6 1995/12/01 15:59:40 root
60 * added copyright info
61 *
62 */
63
64 #ifndef _RF__RF_DAGFLAGS_H_
65 #define _RF__RF_DAGFLAGS_H_
66
67 /*
68 * Bitmasks for the "flags" parameter (RF_RaidAccessFlags_t) used
69 * by DoAccess, SelectAlgorithm, and the DAG creation routines.
70 *
71 * If USE_DAG or USE_ASM is specified, neither the DAG nor the ASM
72 * will be modified, which means that you can't SUPRESS if you
73 * specify USE_DAG.
74 */
75
76 #define RF_DAG_FLAGS_NONE 0 /* no flags */
77 #define RF_DAG_SUPPRESS_LOCKS (1<<0) /* supress all stripe locks in the DAG */
78 #define RF_DAG_RETURN_ASM (1<<1) /* create an ASM and return it instead of freeing it */
79 #define RF_DAG_RETURN_DAG (1<<2) /* create a DAG and return it instead of freeing it */
80 #define RF_DAG_NONBLOCKING_IO (1<<3) /* cause DoAccess to be non-blocking */
81 #define RF_DAG_ACCESS_COMPLETE (1<<4) /* the access is complete */
82 #define RF_DAG_DISPATCH_RETURNED (1<<5) /* used to handle the case where the dag invokes no I/O */
83 #define RF_DAG_TEST_ACCESS (1<<6) /* this access came through rf_ioctl instead of rf_strategy */
84
85 #endif /* !_RF__RF_DAGFLAGS_H_ */
86