rf_options.c revision 1.3.24.1 1 /* $NetBSD: rf_options.c,v 1.3.24.1 2001/10/11 00:02:21 fvdl Exp $ */
2 /*
3 * rf_options.c
4 */
5 /*
6 * Copyright (c) 1996 Carnegie-Mellon University.
7 * All rights reserved.
8 *
9 * Author: Jim Zelenka
10 *
11 * Permission to use, copy, modify and distribute this software and
12 * its documentation is hereby granted, provided that both the copyright
13 * notice and this permission notice appear in all copies of the
14 * software, derivative works or modified versions, and any portions
15 * thereof, and that both notices appear in supporting documentation.
16 *
17 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
18 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
19 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
20 *
21 * Carnegie Mellon requests users of this software to return to
22 *
23 * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
24 * School of Computer Science
25 * Carnegie Mellon University
26 * Pittsburgh PA 15213-3890
27 *
28 * any improvements or extensions that they make and grant Carnegie the
29 * rights to redistribute these changes.
30 */
31
32 #include <dev/raidframe/raidframevar.h>
33
34 #include "rf_threadstuff.h"
35 #include "rf_archs.h"
36 #include "rf_general.h"
37 #include "rf_options.h"
38
39 #ifdef RF_DBG_OPTION
40 #undef RF_DBG_OPTION
41 #endif /* RF_DBG_OPTION */
42
43 #ifdef __STDC__
44 #define RF_DBG_OPTION(_option_,_defval_) long rf_##_option_ = _defval_;
45 #else /* __STDC__ */
46 #define RF_DBG_OPTION(_option_,_defval_) long rf_/**/_option_ = _defval_;
47 #endif /* __STDC__ */
48
49 #include "rf_optnames.h"
50
51 #undef RF_DBG_OPTION
52
53 #ifdef __STDC__
54 #define RF_DBG_OPTION(_option_,_defval_) { RF_STRING(_option_), &rf_##_option_ },
55 #else /* __STDC__ */
56 #define RF_DBG_OPTION(_option_,_defval_) { RF_STRING(_option_), &rf_/**/_option_ },
57 #endif /* __STDC__ */
58
59 RF_DebugName_t rf_debugNames[] = {
60 #include "rf_optnames.h"
61 {NULL, NULL}
62 };
63 #undef RF_DBG_OPTION
64
65 #ifdef __STDC__
66 #define RF_DBG_OPTION(_option_,_defval_) rf_##_option_ = _defval_ ;
67 #else /* __STDC__ */
68 #define RF_DBG_OPTION(_option_,_defval_) rf_/**/_option_ = _defval_ ;
69 #endif /* __STDC__ */
70
71 void
72 rf_ResetDebugOptions()
73 {
74 #include "rf_optnames.h"
75 }
76