Home | History | Annotate | Line # | Download | only in raidframe
rf_archs.h revision 1.11.2.3
      1  1.11.2.2  nathanw /*	$NetBSD: rf_archs.h,v 1.11.2.3 2002/09/17 21:20:45 nathanw 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.11.2.1  nathanw #ifndef RF_INCLUDE_EVENODD
     52  1.11.2.1  nathanw #define RF_INCLUDE_EVENODD       0
     53  1.11.2.1  nathanw #endif
     54  1.11.2.1  nathanw 
     55  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID5_RS
     56  1.11.2.1  nathanw #define RF_INCLUDE_RAID5_RS      0
     57  1.11.2.1  nathanw #endif
     58  1.11.2.1  nathanw 
     59  1.11.2.1  nathanw #ifndef RF_INCLUDE_PARITYLOGGING
     60  1.11.2.1  nathanw #define RF_INCLUDE_PARITYLOGGING 0
     61  1.11.2.1  nathanw #endif
     62  1.11.2.1  nathanw 
     63  1.11.2.1  nathanw #ifndef RF_INCLUDE_CHAINDECLUSTER
     64  1.11.2.1  nathanw #define RF_INCLUDE_CHAINDECLUSTER 0
     65  1.11.2.1  nathanw #endif
     66  1.11.2.1  nathanw 
     67  1.11.2.1  nathanw #ifndef RF_INCLUDE_INTERDECLUSTER
     68  1.11.2.1  nathanw #define RF_INCLUDE_INTERDECLUSTER 0
     69  1.11.2.1  nathanw #endif
     70  1.11.2.1  nathanw 
     71  1.11.2.1  nathanw #ifndef RF_INCLUDE_PARITY_DECLUSTERING
     72  1.11.2.1  nathanw #define RF_INCLUDE_PARITY_DECLUSTERING 0
     73  1.11.2.1  nathanw #endif
     74  1.11.2.1  nathanw 
     75  1.11.2.1  nathanw #ifndef RF_INCLUDE_PARITY_DECLUSTERING_DS
     76  1.11.2.1  nathanw #define RF_INCLUDE_PARITY_DECLUSTERING_DS 0
     77  1.11.2.1  nathanw #endif
     78       1.1    oster 
     79  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID0
     80       1.1    oster #define RF_INCLUDE_RAID0   1
     81  1.11.2.1  nathanw #endif
     82  1.11.2.1  nathanw 
     83  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID1
     84       1.1    oster #define RF_INCLUDE_RAID1   1
     85  1.11.2.1  nathanw #endif
     86  1.11.2.1  nathanw 
     87  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID4
     88       1.1    oster #define RF_INCLUDE_RAID4   1
     89  1.11.2.1  nathanw #endif
     90  1.11.2.1  nathanw 
     91  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID5
     92       1.1    oster #define RF_INCLUDE_RAID5   1
     93  1.11.2.1  nathanw #endif
     94  1.11.2.1  nathanw 
     95  1.11.2.1  nathanw #ifndef RF_INCLUDE_RAID6
     96       1.1    oster #define RF_INCLUDE_RAID6   0
     97  1.11.2.1  nathanw #endif
     98  1.11.2.1  nathanw 
     99  1.11.2.1  nathanw #ifndef RF_INCLUDE_DECL_PQ
    100       1.1    oster #define RF_INCLUDE_DECL_PQ 0
    101  1.11.2.1  nathanw #endif
    102       1.1    oster 
    103  1.11.2.1  nathanw #ifndef RF_MEMORY_REDZONES
    104       1.1    oster #define RF_MEMORY_REDZONES 0
    105  1.11.2.1  nathanw #endif
    106  1.11.2.1  nathanw 
    107  1.11.2.1  nathanw #ifndef RF_RECON_STATS
    108       1.1    oster #define RF_RECON_STATS     1
    109  1.11.2.2  nathanw #endif
    110  1.11.2.2  nathanw 
    111  1.11.2.2  nathanw #ifndef RF_DEBUG_VALIDATE_DAG
    112  1.11.2.2  nathanw #define RF_DEBUG_VALIDATE_DAG 0
    113  1.11.2.1  nathanw #endif
    114       1.1    oster 
    115  1.11.2.3  nathanw #ifndef RF_DEBUG_STRIPELOCK
    116  1.11.2.3  nathanw #define RF_DEBUG_STRIPELOCK 0
    117  1.11.2.3  nathanw #endif
    118  1.11.2.3  nathanw 
    119  1.11.2.3  nathanw #ifndef RF_DEBUG_RECONBUFFER
    120  1.11.2.3  nathanw #define RF_DEBUG_RECONBUFFER 0
    121  1.11.2.3  nathanw #endif
    122  1.11.2.3  nathanw 
    123  1.11.2.3  nathanw #ifndef RF_DEBUG_VERIFYPARITY
    124  1.11.2.3  nathanw #define RF_DEBUG_VERIFYPARITY 0
    125  1.11.2.3  nathanw #endif
    126  1.11.2.3  nathanw 
    127       1.1    oster #include "rf_options.h"
    128       1.1    oster 
    129       1.4    oster #endif				/* !_RF__RF_ARCHS_H_ */
    130