rf_declusterPQ.h revision 1.1 1 /* $NetBSD: rf_declusterPQ.h,v 1.1 1998/11/13 04:20:28 oster Exp $ */
2 /*
3 * Copyright (c) 1995 Carnegie-Mellon University.
4 * All rights reserved.
5 *
6 * Author: Daniel Stodolsky, Mark Holland
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_declusterPQ.h,v
31 * Revision 1.13 1996/08/20 22:42:08 jimz
32 * missing prototype of IdentifyStripeDeclusteredPQ added
33 *
34 * Revision 1.12 1996/07/13 00:00:59 jimz
35 * sanitized generalized reconstruction architecture
36 * cleaned up head sep, rbuf problems
37 *
38 * Revision 1.11 1996/06/10 11:55:47 jimz
39 * Straightened out some per-array/not-per-array distinctions, fixed
40 * a couple bugs related to confusion. Added shutdown lists. Removed
41 * layout shutdown function (now subsumed by shutdown lists).
42 *
43 * Revision 1.10 1996/06/07 21:33:04 jimz
44 * begin using consistent types for sector numbers,
45 * stripe numbers, row+col numbers, recon unit numbers
46 *
47 * Revision 1.9 1996/05/27 18:56:37 jimz
48 * more code cleanup
49 * better typing
50 * compiles in all 3 environments
51 *
52 * Revision 1.8 1996/05/24 01:59:45 jimz
53 * another checkpoint in code cleanup for release
54 * time to sync kernel tree
55 *
56 * Revision 1.7 1996/05/18 19:51:34 jimz
57 * major code cleanup- fix syntax, make some types consistent,
58 * add prototypes, clean out dead code, et cetera
59 *
60 * Revision 1.6 1995/12/01 15:59:20 root
61 * added copyright info
62 *
63 * Revision 1.5 1995/11/17 19:08:23 wvcii
64 * added prototyping to MapParity
65 *
66 * Revision 1.4 1995/11/07 15:30:33 wvcii
67 * changed PQDagSelect prototype
68 * function no longer generates numHdrSucc, numTermAnt
69 * removed ParityLoggingDagSelect prototype
70 *
71 * Revision 1.3 1995/06/23 13:40:57 robby
72 * updeated to prototypes in rf_layout.h
73 *
74 * Revision 1.2 1995/05/02 22:46:53 holland
75 * minor code cleanups.
76 *
77 * Revision 1.1 1994/11/19 20:26:57 danner
78 * Initial revision
79 *
80 */
81
82 #ifndef _RF__RF_DECLUSTERPQ_H_
83 #define _RF__RF_DECLUSTERPQ_H_
84
85 #include "rf_types.h"
86
87 int rf_ConfigureDeclusteredPQ(RF_ShutdownList_t **listp, RF_Raid_t *raidPtr,
88 RF_Config_t *cfgPtr);
89 int rf_GetDefaultNumFloatingReconBuffersPQ(RF_Raid_t *raidPtr);
90 void rf_MapSectorDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
91 RF_RowCol_t *row, RF_RowCol_t *col, RF_SectorNum_t *diskSector, int remap);
92 void rf_MapParityDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
93 RF_RowCol_t *row, RF_RowCol_t *col, RF_SectorNum_t *diskSector, int remap);
94 void rf_MapQDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t raidSector,
95 RF_RowCol_t *row, RF_RowCol_t *col, RF_SectorNum_t *diskSector, int remap);
96 void rf_IdentifyStripeDeclusteredPQ(RF_Raid_t *raidPtr, RF_RaidAddr_t addr,
97 RF_RowCol_t **diskids, RF_RowCol_t *outRow);
98
99 #endif /* !_RF__RF_DECLUSTERPQ_H_ */
100