Home | History | Annotate | Line # | Download | only in raidframe
rf_map.h revision 1.7.6.1
      1  1.7.6.1  skrll /*	$NetBSD: rf_map.h,v 1.7.6.1 2004/08/03 10:50:46 skrll Exp $	*/
      2      1.1  oster /*
      3      1.1  oster  * Copyright (c) 1995 Carnegie-Mellon University.
      4      1.1  oster  * All rights reserved.
      5      1.1  oster  *
      6      1.1  oster  * Author: Mark Holland
      7      1.1  oster  *
      8      1.1  oster  * Permission to use, copy, modify and distribute this software and
      9      1.1  oster  * its documentation is hereby granted, provided that both the copyright
     10      1.1  oster  * notice and this permission notice appear in all copies of the
     11      1.1  oster  * software, derivative works or modified versions, and any portions
     12      1.1  oster  * thereof, and that both notices appear in supporting documentation.
     13      1.1  oster  *
     14      1.1  oster  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     15      1.1  oster  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     16      1.1  oster  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     17      1.1  oster  *
     18      1.1  oster  * Carnegie Mellon requests users of this software to return to
     19      1.1  oster  *
     20      1.1  oster  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     21      1.1  oster  *  School of Computer Science
     22      1.1  oster  *  Carnegie Mellon University
     23      1.1  oster  *  Pittsburgh PA 15213-3890
     24      1.1  oster  *
     25      1.1  oster  * any improvements or extensions that they make and grant Carnegie the
     26      1.1  oster  * rights to redistribute these changes.
     27      1.1  oster  */
     28      1.1  oster 
     29      1.1  oster /* rf_map.h */
     30      1.1  oster 
     31      1.1  oster #ifndef _RF__RF_MAP_H_
     32      1.1  oster #define _RF__RF_MAP_H_
     33      1.1  oster 
     34      1.4  oster #include <dev/raidframe/raidframevar.h>
     35      1.4  oster 
     36      1.1  oster #include "rf_alloclist.h"
     37      1.1  oster #include "rf_raid.h"
     38      1.1  oster 
     39      1.1  oster /* mapping structure allocation and free routines */
     40  1.7.6.1  skrll RF_AccessStripeMapHeader_t *rf_MapAccess(RF_Raid_t *, RF_RaidAddr_t,
     41  1.7.6.1  skrll 					 RF_SectorCount_t, caddr_t, int);
     42  1.7.6.1  skrll void rf_MarkFailuresInASMList(RF_Raid_t *, RF_AccessStripeMapHeader_t *);
     43  1.7.6.1  skrll int rf_ConfigureMapModule(RF_ShutdownList_t **);
     44      1.1  oster RF_AccessStripeMapHeader_t *rf_AllocAccessStripeMapHeader(void);
     45  1.7.6.1  skrll void rf_FreeAccessStripeMapHeader(RF_AccessStripeMapHeader_t *);
     46      1.1  oster RF_PhysDiskAddr_t *rf_AllocPhysDiskAddr(void);
     47  1.7.6.1  skrll RF_PhysDiskAddr_t *rf_AllocPDAList(int);
     48  1.7.6.1  skrll void rf_FreePhysDiskAddr(RF_PhysDiskAddr_t *);
     49  1.7.6.1  skrll RF_AccessStripeMap_t *rf_AllocASMList(int);
     50  1.7.6.1  skrll void rf_FreeAccessStripeMap(RF_AccessStripeMapHeader_t *);
     51  1.7.6.1  skrll int rf_CheckStripeForFailures(RF_Raid_t *, RF_AccessStripeMap_t *);
     52  1.7.6.1  skrll int rf_NumFailedDataUnitsInStripe(RF_Raid_t *, RF_AccessStripeMap_t *);
     53  1.7.6.1  skrll void rf_PrintAccessStripeMap(RF_AccessStripeMapHeader_t *);
     54  1.7.6.1  skrll void rf_PrintFullAccessStripeMap(RF_AccessStripeMapHeader_t *, int);
     55  1.7.6.1  skrll void rf_PrintRaidAddressInfo(RF_Raid_t *, RF_RaidAddr_t, RF_SectorCount_t);
     56  1.7.6.1  skrll void rf_ASMParityAdjust(RF_PhysDiskAddr_t *, RF_StripeNum_t, RF_SectorNum_t,
     57  1.7.6.1  skrll 			RF_RaidLayout_t *, RF_AccessStripeMap_t *);
     58  1.7.6.1  skrll void rf_ASMCheckStatus(RF_Raid_t *, RF_PhysDiskAddr_t *, RF_AccessStripeMap_t *,
     59  1.7.6.1  skrll 		       RF_RaidDisk_t *, int);
     60  1.7.6.1  skrll 
     61  1.7.6.1  skrll RF_VoidFunctionPointerListElem_t *rf_AllocVFPListElem(void);
     62  1.7.6.1  skrll void rf_FreeVFPListElem(RF_VoidFunctionPointerListElem_t *);
     63  1.7.6.1  skrll RF_VoidPointerListElem_t *rf_AllocVPListElem(void);
     64  1.7.6.1  skrll void rf_FreeVPListElem(RF_VoidPointerListElem_t *);
     65  1.7.6.1  skrll RF_ASMHeaderListElem_t *rf_AllocASMHeaderListElem(void);
     66  1.7.6.1  skrll void rf_FreeASMHeaderListElem(RF_ASMHeaderListElem_t *);
     67  1.7.6.1  skrll RF_FailedStripe_t *rf_AllocFailedStripeStruct(void);
     68  1.7.6.1  skrll void rf_FreeFailedStripeStruct(RF_FailedStripe_t *);
     69      1.1  oster 
     70      1.3  oster #endif				/* !_RF__RF_MAP_H_ */
     71