]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/raidframe/rf_chaindecluster.h
This commit was generated by cvs2svn to compensate for changes in r106907,
[FreeBSD/FreeBSD.git] / sys / dev / raidframe / rf_chaindecluster.h
1 /*      $FreeBSD$ */
2 /*      $NetBSD: rf_chaindecluster.h,v 1.4 2001/01/26 04:14:14 oster Exp $      */
3 /*
4  * Copyright (c) 1995 Carnegie-Mellon University.
5  * All rights reserved.
6  *
7  * Author: Khalil Amiri
8  *
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.
14  *
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.
18  *
19  * Carnegie Mellon requests users of this software to return to
20  *
21  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
22  *  School of Computer Science
23  *  Carnegie Mellon University
24  *  Pittsburgh PA 15213-3890
25  *
26  * any improvements or extensions that they make and grant Carnegie the
27  * rights to redistribute these changes.
28  */
29
30 /* rf_chaindecluster.h
31  * header file for Chained Declustering
32  */
33
34
35 #ifndef _RF__RF_CHAINDECLUSTER_H_
36 #define _RF__RF_CHAINDECLUSTER_H_
37
38 int 
39 rf_ConfigureChainDecluster(RF_ShutdownList_t ** listp, RF_Raid_t * raidPtr,
40     RF_Config_t * cfgPtr);
41 RF_ReconUnitCount_t rf_GetNumSpareRUsChainDecluster(RF_Raid_t * raidPtr);
42 void 
43 rf_MapSectorChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
44     RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
45 void 
46 rf_MapParityChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
47     RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
48 void 
49 rf_IdentifyStripeChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t addr,
50     RF_RowCol_t ** diskids, RF_RowCol_t * outRow);
51 void 
52 rf_MapSIDToPSIDChainDecluster(RF_RaidLayout_t * layoutPtr,
53     RF_StripeNum_t stripeID, RF_StripeNum_t * psID,
54     RF_ReconUnitNum_t * which_ru);
55 void 
56 rf_RAIDCDagSelect(RF_Raid_t * raidPtr, RF_IoType_t type,
57     RF_AccessStripeMap_t * asmap,
58     RF_VoidFuncPtr *);
59 #if 0
60 void    (**createFunc) (RF_Raid_t *,
61             RF_AccessStripeMap_t *,
62             RF_DagHeader_t *,
63             void *,
64             RF_RaidAccessFlags_t,
65             RF_AllocListElem_t *);
66 #endif
67
68 #endif                          /* !_RF__RF_CHAINDECLUSTER_H_ */