rf_pqdeg.h revision 1.1 1 /* $NetBSD: rf_pqdeg.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: Daniel Stodolsky
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 * Log: rf_pqdeg.h,v
31 * Revision 1.7 1996/07/18 22:57:14 jimz
32 * port simulator to AIX
33 *
34 * Revision 1.6 1996/06/02 17:31:48 jimz
35 * Moved a lot of global stuff into array structure, where it belongs.
36 * Fixed up paritylogging, pss modules in this manner. Some general
37 * code cleanup. Removed lots of dead code, some dead files.
38 *
39 * Revision 1.5 1996/05/23 21:46:35 jimz
40 * checkpoint in code cleanup (release prep)
41 * lots of types, function names have been fixed
42 *
43 * Revision 1.4 1995/11/30 16:19:11 wvcii
44 * added copyright info
45 *
46 */
47
48 #ifndef _RF__RF_PQDEG_H_
49 #define _RF__RF_PQDEG_H_
50
51 #include "rf_types.h"
52
53 #if RF_UTILITY == 0
54 #include "rf_dag.h"
55
56 /* extern decl's of the failure mode PQ functions.
57 * See pddeg.c for nomenclature discussion.
58 */
59
60 /* reads, single failure */
61 RF_CREATE_DAG_FUNC_DECL(rf_PQ_100_CreateReadDAG);
62 /* reads, two failure */
63 RF_CREATE_DAG_FUNC_DECL(rf_PQ_110_CreateReadDAG);
64 RF_CREATE_DAG_FUNC_DECL(rf_PQ_101_CreateReadDAG);
65 RF_CREATE_DAG_FUNC_DECL(rf_PQ_200_CreateReadDAG);
66
67 /* writes, single failure */
68 RF_CREATE_DAG_FUNC_DECL(rf_PQ_100_CreateWriteDAG);
69 RF_CREATE_DAG_FUNC_DECL(rf_PQ_010_CreateSmallWriteDAG);
70 RF_CREATE_DAG_FUNC_DECL(rf_PQ_010_CreateLargeWriteDAG);
71 RF_CREATE_DAG_FUNC_DECL(rf_PQ_001_CreateSmallWriteDAG);
72 RF_CREATE_DAG_FUNC_DECL(rf_PQ_001_CreateLargeWriteDAG);
73
74 /* writes, double failure */
75 RF_CREATE_DAG_FUNC_DECL(rf_PQ_011_CreateWriteDAG);
76 RF_CREATE_DAG_FUNC_DECL(rf_PQ_110_CreateWriteDAG);
77 RF_CREATE_DAG_FUNC_DECL(rf_PQ_101_CreateWriteDAG);
78 RF_CREATE_DAG_FUNC_DECL(rf_PQ_200_CreateWriteDAG);
79 #endif /* RF_UTILITY == 0 */
80
81 typedef RF_uint32 RF_ua32_t[32];
82 typedef RF_uint8 RF_ua1024_t[1024];
83
84 extern RF_ua32_t rf_rn;
85 extern RF_ua32_t rf_qfor[32];
86 #ifndef KERNEL /* we don't support PQ in the kernel yet, so don't link in this monster table */
87 extern RF_ua1024_t rf_qinv[29*29];
88 #else /* !KERNEL */
89 extern RF_ua1024_t rf_qinv[1];
90 #endif /* !KERNEL */
91
92 #endif /* !_RF__RF_PQDEG_H_ */
93