summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_archs.h
blob: 6a4850829cedfc1b97e3e69754ef045f55c21959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*	$OpenBSD: rf_archs.h,v 1.1 1999/01/11 14:28:59 niklas Exp $	*/
/*	$NetBSD: rf_archs.h,v 1.1 1998/11/13 04:20:26 oster Exp $	*/
/*
 * Copyright (c) 1995 Carnegie-Mellon University.
 * All rights reserved.
 *
 * Author: Mark Holland
 *
 * Permission to use, copy, modify and distribute this software and
 * its documentation is hereby granted, provided that both the copyright
 * notice and this permission notice appear in all copies of the
 * software, derivative works or modified versions, and any portions
 * thereof, and that both notices appear in supporting documentation.
 *
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
 *
 * Carnegie Mellon requests users of this software to return to
 *
 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
 *  School of Computer Science
 *  Carnegie Mellon University
 *  Pittsburgh PA 15213-3890
 *
 * any improvements or extensions that they make and grant Carnegie the
 * rights to redistribute these changes.
 */

/* rf_archs.h -- defines for which architectures you want to
 * include is some particular build of raidframe.  Unfortunately,
 * it's difficult to exclude declustering, P+Q, and distributed
 * sparing because the code is intermixed with RAID5 code.  This
 * should be fixed.
 *
 * this is really intended only for use in the kernel, where I
 * am worried about the size of the object module.  At user level and
 * in the simulator, I don't really care that much, so all the
 * architectures can be compiled together.  Note that by itself, turning
 * off these defines does not affect the size of the executable; you
 * have to edit the makefile for that.
 *
 * comment out any line below to eliminate that architecture.
 * the list below includes all the modules that can be compiled
 * out.
 *
 * :  
 * Log: rf_archs.h,v 
 * Revision 1.32  1996/08/20 23:05:40  jimz
 * define RF_KEEP_DISKSTATS to 1
 *
 * Revision 1.31  1996/07/31  15:34:04  jimz
 * include evenodd
 *
 * Revision 1.30  1996/07/27  23:36:08  jimz
 * Solaris port of simulator
 *
 * Revision 1.29  1996/07/26  20:11:46  jimz
 * only define RF_DEMO for CMU_PDL
 *
 * Revision 1.28  1996/07/26  20:10:57  jimz
 * define RF_CMU_PDL only if it isn't already defined
 *
 * Revision 1.27  1996/07/18  22:57:14  jimz
 * port simulator to AIX
 *
 * Revision 1.26  1996/06/17  14:38:33  jimz
 * properly #if out RF_DEMO code
 * fix bug in MakeConfig that was causing weird behavior
 * in configuration routines (config was not zeroed at start)
 * clean up genplot handling of stacks
 *
 * Revision 1.25  1996/06/14  21:24:59  jimz
 * turn on RF_CMU_PDL by default
 *
 * Revision 1.24  1996/06/13  20:41:57  jimz
 * add RF_INCLUDE_QUEUE_RANDOM (0)
 *
 * Revision 1.23  1996/06/11  18:12:36  jimz
 * get rid of JOIN operations
 * use ThreadGroup stuff instead
 * fix some allocation/deallocation and sync bugs
 *
 * Revision 1.22  1996/06/10  22:24:55  wvcii
 * added symbols for enabling forward or backward error
 * recovery experiments
 *
 * Revision 1.21  1996/06/05  18:06:02  jimz
 * Major code cleanup. The Great Renaming is now done.
 * Better modularity. Better typing. Fixed a bunch of
 * synchronization bugs. Made a lot of global stuff
 * per-desc or per-array. Removed dead code.
 *
 * Revision 1.20  1996/05/30  11:29:41  jimz
 * Numerous bug fixes. Stripe lock release code disagreed with the taking code
 * about when stripes should be locked (I made it consistent: no parity, no lock)
 * There was a lot of extra serialization of I/Os which I've removed- a lot of
 * it was to calculate values for the cache code, which is no longer with us.
 * More types, function, macro cleanup. Added code to properly quiesce the array
 * on shutdown. Made a lot of stuff array-specific which was (bogusly) general
 * before. Fixed memory allocation, freeing bugs.
 *
 * Revision 1.19  1996/05/27  18:56:37  jimz
 * more code cleanup
 * better typing
 * compiles in all 3 environments
 *
 * Revision 1.18  1996/05/23  21:46:35  jimz
 * checkpoint in code cleanup (release prep)
 * lots of types, function names have been fixed
 *
 * Revision 1.17  1996/05/23  00:33:23  jimz
 * code cleanup: move all debug decls to rf_options.c, all extern
 * debug decls to rf_options.h, all debug vars preceded by rf_
 *
 * Revision 1.16  1996/05/18  19:51:34  jimz
 * major code cleanup- fix syntax, make some types consistent,
 * add prototypes, clean out dead code, et cetera
 *
 * Revision 1.15  1996/05/15  22:32:59  jimz
 * remove cache and vs stuff
 *
 * Revision 1.14  1995/11/30  16:27:34  wvcii
 * added copyright info
 *
 * Revision 1.13  1995/11/28  21:23:44  amiri
 * added the interleaved declustering architecture
 * ('I'), with distributed sparing.
 *
 * Revision 1.12  1995/11/17  16:59:45  amiri
 * don't INCLUDE_CHAINDECLUSTER in the kernel
 * source.
 *
 * Revision 1.11  1995/11/16  16:15:21  amiri
 * don't include RAID5 with rotated sparing (INCLUDE_RAID5_RS) in kernel
 *
 * Revision 1.10  1995/10/12  17:40:47  jimz
 * define INCLUDE_LS
 *
 * Revision 1.9  1995/10/11  06:56:47  jimz
 * define INCLUDE_VS (sanity check for compilation)
 *
 * Revision 1.8  1995/10/05  18:56:24  jimz
 * don't INCLUDE_VS
 *
 * Revision 1.7  1995/10/04  03:51:20  wvcii
 * added raid 1
 *
 * Revision 1.6  1995/09/07  09:59:29  wvcii
 * unstable archs conditionally defined for !KERNEL makes
 *
 *
 */

#ifndef _RF__RF_ARCHS_H_
#define _RF__RF_ARCHS_H_

/*
 * Turn off if you do not have CMU PDL support compiled
 * into your kernel.
 */
#ifndef RF_CMU_PDL
#define RF_CMU_PDL 0
#endif /* !RF_CMU_PDL */

/*
 * Khalil's performance-displaying demo stuff.
 * Relies on CMU meter tools.
 */
#ifndef KERNEL
#if RF_CMU_PDL > 0
#define RF_DEMO 1
#endif /* RF_CMU_PDL > 0 */
#endif /* !KERNEL */

#define RF_INCLUDE_EVENODD       1

#define RF_INCLUDE_RAID5_RS      1
#define RF_INCLUDE_PARITYLOGGING 1

#define RF_INCLUDE_CHAINDECLUSTER 1
#define RF_INCLUDE_INTERDECLUSTER 1

#define RF_INCLUDE_RAID0   1
#define RF_INCLUDE_RAID1   1
#define RF_INCLUDE_RAID4   1
#define RF_INCLUDE_RAID5   1
#define RF_INCLUDE_RAID6   0
#define RF_INCLUDE_DECL_PQ 0

#define RF_MEMORY_REDZONES 0
#define RF_RECON_STATS     1

#define RF_INCLUDE_QUEUE_RANDOM 0

#define RF_KEEP_DISKSTATS 1

/* These two symbols enable nonstandard forms of error recovery.
 * These modes are only valid for performance measurements and
 * data corruption will occur if an error occurs when either
 * forward or backward error recovery are enabled.  In general
 * both of the following two definitions should be commented
 * out--this forces RAIDframe to use roll-away error recovery
 * which does guarantee proper error recovery without data corruption
 */
/* #define RF_FORWARD 1 */
/* #define RF_BACKWARD 1 */

#include "rf_options.h"

#endif /* !_RF__RF_ARCHS_H_ */