rf_parityloggingdags.h revision 1.1 1 /* $NetBSD: rf_parityloggingdags.h,v 1.1 1998/11/13 04:20:32 oster Exp $ */
2 /*
3 * Copyright (c) 1995 Carnegie-Mellon University.
4 * All rights reserved.
5 *
6 * Author: William V. Courtright II
7 *
8 * Permission to use, copy, modify and distribute this software and
9 * its documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
27 */
28
29 /****************************************************************************
30 * *
31 * rf_parityloggingdags.h -- header file for parity logging dags *
32 * *
33 ****************************************************************************/
34
35 /* :
36 * Log: rf_parityloggingdags.h,v
37 * Revision 1.10 1996/07/27 23:36:08 jimz
38 * Solaris port of simulator
39 *
40 * Revision 1.9 1996/06/02 17:31:48 jimz
41 * Moved a lot of global stuff into array structure, where it belongs.
42 * Fixed up paritylogging, pss modules in this manner. Some general
43 * code cleanup. Removed lots of dead code, some dead files.
44 *
45 * Revision 1.8 1996/05/31 22:26:54 jimz
46 * fix a lot of mapping problems, memory allocation problems
47 * found some weird lock issues, fixed 'em
48 * more code cleanup
49 *
50 * Revision 1.7 1996/05/27 18:56:37 jimz
51 * more code cleanup
52 * better typing
53 * compiles in all 3 environments
54 *
55 * Revision 1.6 1996/05/24 22:17:04 jimz
56 * continue code + namespace cleanup
57 * typed a bunch of flags
58 *
59 * Revision 1.5 1996/05/24 04:28:55 jimz
60 * release cleanup ckpt
61 *
62 * Revision 1.4 1996/05/23 21:46:35 jimz
63 * checkpoint in code cleanup (release prep)
64 * lots of types, function names have been fixed
65 *
66 * Revision 1.3 1995/12/06 20:55:08 wvcii
67 * added prototyping
68 *
69 */
70
71 #ifndef _RF__RF_PARITYLOGGINGDAGS_H_
72 #define _RF__RF_PARITYLOGGINGDAGS_H_
73
74 /* routines that create DAGs */
75 void rf_CommonCreateParityLoggingLargeWriteDAG(RF_Raid_t *raidPtr,
76 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h,
77 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
78 int nfaults, int (*redFunc)(RF_DagNode_t *));
79 void rf_CommonCreateParityLoggingSmallWriteDAG(RF_Raid_t *raidPtr,
80 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h,
81 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
82 RF_RedFuncs_t *pfuncs, RF_RedFuncs_t *qfuncs);
83
84 void rf_CreateParityLoggingLargeWriteDAG(RF_Raid_t *raidPtr,
85 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h,
86 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
87 int nfaults, int (*redFunc)(RF_DagNode_t *));
88 void rf_CreateParityLoggingSmallWriteDAG(RF_Raid_t *raidPtr,
89 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h,
90 void *bp, RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
91 RF_RedFuncs_t *pfuncs, RF_RedFuncs_t *qfuncs);
92
93 #endif /* !_RF__RF_PARITYLOGGINGDAGS_H_ */
94