1272343Sngie/*	$NetBSD: rf_options.c,v 1.7 2005/12/11 12:23:37 christos Exp $	*/
2272343Sngie/*
3272343Sngie * rf_options.c
4272343Sngie */
5272343Sngie/*
6272343Sngie * Copyright (c) 1996 Carnegie-Mellon University.
7272343Sngie * All rights reserved.
8272343Sngie *
9272343Sngie * Author: Jim Zelenka
10272343Sngie *
11272343Sngie * Permission to use, copy, modify and distribute this software and
12272343Sngie * its documentation is hereby granted, provided that both the copyright
13272343Sngie * notice and this permission notice appear in all copies of the
14272343Sngie * software, derivative works or modified versions, and any portions
15272343Sngie * thereof, and that both notices appear in supporting documentation.
16272343Sngie *
17272343Sngie * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
18272343Sngie * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
19272343Sngie * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
20272343Sngie *
21272343Sngie * Carnegie Mellon requests users of this software to return to
22272343Sngie *
23272343Sngie *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
24272343Sngie *  School of Computer Science
25272343Sngie *  Carnegie Mellon University
26272343Sngie *  Pittsburgh PA 15213-3890
27272343Sngie *
28272343Sngie * any improvements or extensions that they make and grant Carnegie the
29272343Sngie * rights to redistribute these changes.
30272343Sngie */
31272343Sngie
32272343Sngie#include <sys/cdefs.h>
33272343Sngie__KERNEL_RCSID(0, "$NetBSD: rf_options.c,v 1.7 2005/12/11 12:23:37 christos Exp $");
34272343Sngie
35272343Sngie#include <dev/raidframe/raidframevar.h>
36272343Sngie
37272343Sngie#include "rf_threadstuff.h"
38272343Sngie#include "rf_archs.h"
39272343Sngie#include "rf_general.h"
40272343Sngie#include "rf_options.h"
41272343Sngie
42272343Sngie#ifdef RF_DBG_OPTION
43276478Sngie#undef RF_DBG_OPTION
44276478Sngie#endif				/* RF_DBG_OPTION */
45276478Sngie
46276478Sngie#ifdef __STDC__
47276478Sngie#define RF_DBG_OPTION(_option_,_defval_) long rf_##_option_ = _defval_;
48272343Sngie#else				/* __STDC__ */
49272343Sngie#define RF_DBG_OPTION(_option_,_defval_) long rf_/**/_option_ = _defval_;
50272343Sngie#endif				/* __STDC__ */
51272343Sngie
52272343Sngie#include "rf_optnames.h"
53272343Sngie
54272343Sngie#undef RF_DBG_OPTION
55272343Sngie
56272343Sngie#ifdef __STDC__
57272343Sngie#define RF_DBG_OPTION(_option_,_defval_) { RF_STRING(_option_), &rf_##_option_ },
58272343Sngie#else				/* __STDC__ */
59272343Sngie#define RF_DBG_OPTION(_option_,_defval_) { RF_STRING(_option_), &rf_/**/_option_ },
60272343Sngie#endif				/* __STDC__ */
61272343Sngie
62272343SngieRF_DebugName_t rf_debugNames[] = {
63272343Sngie#include "rf_optnames.h"
64272343Sngie	{NULL, NULL}
65272343Sngie};
66272343Sngie#undef RF_DBG_OPTION
67272343Sngie
68272343Sngie#ifdef __STDC__
69272343Sngie#define RF_DBG_OPTION(_option_,_defval_) rf_##_option_  = _defval_ ;
70272343Sngie#else				/* __STDC__ */
71272343Sngie#define RF_DBG_OPTION(_option_,_defval_) rf_/**/_option_ = _defval_ ;
72272343Sngie#endif				/* __STDC__ */
73272343Sngie
74272343Sngievoid
75272343Sngierf_ResetDebugOptions(void)
76272343Sngie{
77272343Sngie#include "rf_optnames.h"
78272343Sngie}
79272343Sngie