2 /* $NetBSD: rf_dagffrd.h,v 1.3 1999/02/05 00:06:07 oster Exp $ */
4 * Copyright (c) 1995 Carnegie-Mellon University.
7 * Author: Mark Holland, Daniel Stodolsky, William V. Courtright II
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 #ifndef _RF__RF_DAGFFRD_H_
31 #define _RF__RF_DAGFFRD_H_
33 #include <dev/raidframe/rf_types.h>
35 /* fault-free read DAG creation routines */
37 rf_CreateFaultFreeReadDAG(RF_Raid_t * raidPtr, RF_AccessStripeMap_t * asmap,
38 RF_DagHeader_t * dag_h, void *bp, RF_RaidAccessFlags_t flags,
39 RF_AllocListElem_t * allocList);
41 rf_CreateNonredundantDAG(RF_Raid_t * raidPtr, RF_AccessStripeMap_t * asmap,
42 RF_DagHeader_t * dag_h, void *bp, RF_RaidAccessFlags_t flags,
43 RF_AllocListElem_t * allocList, RF_IoType_t type);
45 rf_CreateMirrorIdleReadDAG(RF_Raid_t * raidPtr,
46 RF_AccessStripeMap_t * asmap, RF_DagHeader_t * dag_h, void *bp,
47 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList);
49 rf_CreateMirrorPartitionReadDAG(RF_Raid_t * raidPtr,
50 RF_AccessStripeMap_t * asmap, RF_DagHeader_t * dag_h, void *bp,
51 RF_RaidAccessFlags_t flags, RF_AllocListElem_t * allocList);
53 #endif /* !_RF__RF_DAGFFRD_H_ */