Home | History | Annotate | Line # | Download | only in raidframe
rf_dagflags.h revision 1.3.42.2
      1  1.3.42.1  skrll /*	$NetBSD: rf_dagflags.h,v 1.3.42.2 2004/09/18 14:50:54 skrll 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 /**************************************************************************************
     30       1.1  oster  *
     31       1.1  oster  * dagflags.h -- flags that can be given to DoAccess
     32       1.1  oster  * I pulled these out of dag.h because routines that call DoAccess may need these flags,
     33       1.1  oster  * but certainly do not need the declarations related to the DAG data structures.
     34       1.1  oster  *
     35       1.1  oster  **************************************************************************************/
     36       1.1  oster 
     37       1.1  oster 
     38       1.1  oster #ifndef _RF__RF_DAGFLAGS_H_
     39       1.1  oster #define _RF__RF_DAGFLAGS_H_
     40       1.1  oster 
     41       1.1  oster /*
     42       1.1  oster  * Bitmasks for the "flags" parameter (RF_RaidAccessFlags_t) used
     43       1.1  oster  * by DoAccess, SelectAlgorithm, and the DAG creation routines.
     44       1.1  oster  *
     45       1.1  oster  * If USE_DAG or USE_ASM is specified, neither the DAG nor the ASM
     46       1.1  oster  * will be modified, which means that you can't SUPRESS if you
     47       1.1  oster  * specify USE_DAG.
     48       1.1  oster  */
     49       1.1  oster 
     50       1.3  oster #define RF_DAG_FLAGS_NONE             0	/* no flags */
     51       1.3  oster #define RF_DAG_SUPPRESS_LOCKS     (1<<0)	/* supress all stripe locks in
     52       1.3  oster 						 * the DAG */
     53       1.3  oster #define RF_DAG_NONBLOCKING_IO     (1<<3)	/* cause DoAccess to be
     54       1.3  oster 						 * non-blocking */
     55       1.3  oster #define RF_DAG_ACCESS_COMPLETE    (1<<4)	/* the access is complete */
     56       1.3  oster #define RF_DAG_DISPATCH_RETURNED  (1<<5)	/* used to handle the case
     57       1.3  oster 						 * where the dag invokes no
     58       1.3  oster 						 * I/O */
     59       1.1  oster 
     60       1.3  oster #endif				/* !_RF__RF_DAGFLAGS_H_ */
     61