NetBSD/sys/dev/raidframe/rf_dagflags.h
oster 5b70d1d979 Cleanup some unused desc->flags:
RF_DAG_RETURN_DAG
RF_DAG_RETURN_ASM
RF_DAG_TEST_ACCESS
and the code that goes with them.  A couple more of these
can probably go too, but I might need them in a bit.
2004-01-01 23:35:08 +00:00

61 lines
2.3 KiB
C

/* $NetBSD: rf_dagflags.h,v 1.4 2004/01/01 23:35:08 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Mark Holland
*
* Permission to use, copy, modify and distribute this software and
* its documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*/
/**************************************************************************************
*
* dagflags.h -- flags that can be given to DoAccess
* I pulled these out of dag.h because routines that call DoAccess may need these flags,
* but certainly do not need the declarations related to the DAG data structures.
*
**************************************************************************************/
#ifndef _RF__RF_DAGFLAGS_H_
#define _RF__RF_DAGFLAGS_H_
/*
* Bitmasks for the "flags" parameter (RF_RaidAccessFlags_t) used
* by DoAccess, SelectAlgorithm, and the DAG creation routines.
*
* If USE_DAG or USE_ASM is specified, neither the DAG nor the ASM
* will be modified, which means that you can't SUPRESS if you
* specify USE_DAG.
*/
#define RF_DAG_FLAGS_NONE 0 /* no flags */
#define RF_DAG_SUPPRESS_LOCKS (1<<0) /* supress all stripe locks in
* the DAG */
#define RF_DAG_NONBLOCKING_IO (1<<3) /* cause DoAccess to be
* non-blocking */
#define RF_DAG_ACCESS_COMPLETE (1<<4) /* the access is complete */
#define RF_DAG_DISPATCH_RETURNED (1<<5) /* used to handle the case
* where the dag invokes no
* I/O */
#endif /* !_RF__RF_DAGFLAGS_H_ */