Home | History | Annotate | Line # | Download | only in raidframe
rf_archs.h revision 1.4
      1  1.4  oster /*	$NetBSD: rf_archs.h,v 1.4 1999/02/05 00:06:06 oster Exp $	*/
      2  1.1  oster /*
      3  1.1  oster  * Copyright (c) 1995 Carnegie-Mellon University.
      4  1.1  oster  * All rights reserved.
      5  1.1  oster  *
      6  1.1  oster  * Author: Mark Holland
      7  1.1  oster  *
      8  1.1  oster  * Permission to use, copy, modify and distribute this software and
      9  1.1  oster  * its documentation is hereby granted, provided that both the copyright
     10  1.1  oster  * notice and this permission notice appear in all copies of the
     11  1.1  oster  * software, derivative works or modified versions, and any portions
     12  1.1  oster  * thereof, and that both notices appear in supporting documentation.
     13  1.1  oster  *
     14  1.1  oster  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     15  1.1  oster  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     16  1.1  oster  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     17  1.1  oster  *
     18  1.1  oster  * Carnegie Mellon requests users of this software to return to
     19  1.1  oster  *
     20  1.1  oster  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     21  1.1  oster  *  School of Computer Science
     22  1.1  oster  *  Carnegie Mellon University
     23  1.1  oster  *  Pittsburgh PA 15213-3890
     24  1.1  oster  *
     25  1.1  oster  * any improvements or extensions that they make and grant Carnegie the
     26  1.1  oster  * rights to redistribute these changes.
     27  1.1  oster  */
     28  1.1  oster 
     29  1.1  oster /* rf_archs.h -- defines for which architectures you want to
     30  1.1  oster  * include is some particular build of raidframe.  Unfortunately,
     31  1.1  oster  * it's difficult to exclude declustering, P+Q, and distributed
     32  1.1  oster  * sparing because the code is intermixed with RAID5 code.  This
     33  1.1  oster  * should be fixed.
     34  1.1  oster  *
     35  1.1  oster  * this is really intended only for use in the kernel, where I
     36  1.1  oster  * am worried about the size of the object module.  At user level and
     37  1.1  oster  * in the simulator, I don't really care that much, so all the
     38  1.1  oster  * architectures can be compiled together.  Note that by itself, turning
     39  1.1  oster  * off these defines does not affect the size of the executable; you
     40  1.1  oster  * have to edit the makefile for that.
     41  1.1  oster  *
     42  1.1  oster  * comment out any line below to eliminate that architecture.
     43  1.1  oster  * the list below includes all the modules that can be compiled
     44  1.1  oster  * out.
     45  1.1  oster  *
     46  1.1  oster  */
     47  1.1  oster 
     48  1.1  oster #ifndef _RF__RF_ARCHS_H_
     49  1.1  oster #define _RF__RF_ARCHS_H_
     50  1.1  oster 
     51  1.1  oster /*
     52  1.1  oster  * Turn off if you do not have CMU PDL support compiled
     53  1.1  oster  * into your kernel.
     54  1.1  oster  */
     55  1.1  oster #ifndef RF_CMU_PDL
     56  1.1  oster #define RF_CMU_PDL 0
     57  1.4  oster #endif				/* !RF_CMU_PDL */
     58  1.1  oster 
     59  1.1  oster /*
     60  1.1  oster  * Khalil's performance-displaying demo stuff.
     61  1.1  oster  * Relies on CMU meter tools.
     62  1.1  oster  */
     63  1.1  oster 
     64  1.1  oster #define RF_INCLUDE_EVENODD       1
     65  1.1  oster 
     66  1.1  oster #define RF_INCLUDE_RAID5_RS      1
     67  1.1  oster #define RF_INCLUDE_PARITYLOGGING 1
     68  1.1  oster 
     69  1.1  oster #define RF_INCLUDE_CHAINDECLUSTER 1
     70  1.1  oster #define RF_INCLUDE_INTERDECLUSTER 1
     71  1.1  oster 
     72  1.1  oster #define RF_INCLUDE_RAID0   1
     73  1.1  oster #define RF_INCLUDE_RAID1   1
     74  1.1  oster #define RF_INCLUDE_RAID4   1
     75  1.1  oster #define RF_INCLUDE_RAID5   1
     76  1.1  oster #define RF_INCLUDE_RAID6   0
     77  1.1  oster #define RF_INCLUDE_DECL_PQ 0
     78  1.1  oster 
     79  1.1  oster #define RF_MEMORY_REDZONES 0
     80  1.1  oster #define RF_RECON_STATS     1
     81  1.1  oster 
     82  1.1  oster #define RF_INCLUDE_QUEUE_RANDOM 0
     83  1.1  oster 
     84  1.1  oster #define RF_KEEP_DISKSTATS 1
     85  1.1  oster 
     86  1.1  oster /* These two symbols enable nonstandard forms of error recovery.
     87  1.1  oster  * These modes are only valid for performance measurements and
     88  1.1  oster  * data corruption will occur if an error occurs when either
     89  1.1  oster  * forward or backward error recovery are enabled.  In general
     90  1.1  oster  * both of the following two definitions should be commented
     91  1.1  oster  * out--this forces RAIDframe to use roll-away error recovery
     92  1.1  oster  * which does guarantee proper error recovery without data corruption
     93  1.1  oster  */
     94  1.1  oster /* #define RF_FORWARD 1 */
     95  1.1  oster /* #define RF_BACKWARD 1 */
     96  1.1  oster 
     97  1.1  oster #include "rf_options.h"
     98  1.1  oster 
     99  1.4  oster #endif				/* !_RF__RF_ARCHS_H_ */
    100