1 /* $NetBSD: rf_archs.h,v 1.20.6.4 2005/03/04 16:50:05 skrll Exp $ */
3 * Copyright (c) 1995 Carnegie-Mellon University.
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.
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.
18 * Carnegie Mellon requests users of this software to return to
20 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
29 /* rf_archs.h -- defines for which architectures you want to
30 * include is some particular build of raidframe. Unfortunately,
31 * it's difficult to exclude declustering, P+Q, and distributed
32 * sparing because the code is intermixed with RAID5 code. This
35 * this is really intended only for use in the kernel, where I
36 * am worried about the size of the object module. At user level and
37 * in the simulator, I don't really care that much, so all the
38 * architectures can be compiled together. Note that by itself, turning
39 * off these defines does not affect the size of the executable; you
40 * have to edit the makefile for that.
42 * comment out any line below to eliminate that architecture.
43 * the list below includes all the modules that can be compiled
48 #ifndef _RF__RF_ARCHS_H_
49 #define _RF__RF_ARCHS_H_
51 #ifndef RF_INCLUDE_EVENODD
52 #define RF_INCLUDE_EVENODD 0
55 #ifndef RF_INCLUDE_RAID5_RS
56 #define RF_INCLUDE_RAID5_RS 0
59 #ifndef RF_INCLUDE_PARITYLOGGING
60 #define RF_INCLUDE_PARITYLOGGING 0
63 #ifndef RF_INCLUDE_CHAINDECLUSTER
64 #define RF_INCLUDE_CHAINDECLUSTER 0
67 #ifndef RF_INCLUDE_INTERDECLUSTER
68 #define RF_INCLUDE_INTERDECLUSTER 0
71 #ifndef RF_INCLUDE_PARITY_DECLUSTERING
72 #define RF_INCLUDE_PARITY_DECLUSTERING 0
75 #ifndef RF_INCLUDE_PARITY_DECLUSTERING_DS
76 #define RF_INCLUDE_PARITY_DECLUSTERING_DS 0
79 #ifndef RF_INCLUDE_RAID0
80 #define RF_INCLUDE_RAID0 1
83 #ifndef RF_INCLUDE_RAID1
84 #define RF_INCLUDE_RAID1 1
87 #ifndef RF_INCLUDE_RAID4
88 #define RF_INCLUDE_RAID4 1
91 #ifndef RF_INCLUDE_RAID5
92 #define RF_INCLUDE_RAID5 1
95 #ifndef RF_INCLUDE_RAID6
96 #define RF_INCLUDE_RAID6 0
99 #ifndef RF_INCLUDE_DECL_PQ
100 #define RF_INCLUDE_DECL_PQ 0
103 #ifndef RF_MEMORY_REDZONES
104 #define RF_MEMORY_REDZONES 0
107 #ifndef RF_RECON_STATS
108 #define RF_RECON_STATS 1
112 #define RF_DEBUG_DAG 0
115 #ifndef RF_DEBUG_ENGINE
116 #define RF_DEBUG_ENGINE 0
119 #ifndef RF_DEBUG_VALIDATE_DAG
120 #define RF_DEBUG_VALIDATE_DAG 0
123 #ifndef RF_DEBUG_STRIPELOCK
124 #define RF_DEBUG_STRIPELOCK 0
127 #ifndef RF_DEBUG_RECON
128 #define RF_DEBUG_RECON 0
131 #ifndef RF_DEBUG_VERIFYPARITY
132 #define RF_DEBUG_VERIFYPARITY 0
135 #ifndef RF_DEBUG_QUEUE
136 #define RF_DEBUG_QUEUE 0
139 #ifndef RF_DEBUG_QUIESCE
140 #define RF_DEBUG_QUIESCE 0
144 #define RF_DEBUG_PSS 0
148 #define RF_DEBUG_MAP 0
152 #define RF_ACC_TRACE 1
155 #include "rf_options.h"
157 #endif /* !_RF__RF_ARCHS_H_ */