summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/raidframe/rf_map.h')
-rw-r--r--sys/dev/raidframe/rf_map.h62
1 files changed, 27 insertions, 35 deletions
diff --git a/sys/dev/raidframe/rf_map.h b/sys/dev/raidframe/rf_map.h
index 95b2d243083..fac621f6352 100644
--- a/sys/dev/raidframe/rf_map.h
+++ b/sys/dev/raidframe/rf_map.h
@@ -1,5 +1,6 @@
-/* $OpenBSD: rf_map.h,v 1.2 1999/02/16 00:02:56 niklas Exp $ */
+/* $OpenBSD: rf_map.h,v 1.3 2002/12/16 07:01:04 tdeval Exp $ */
/* $NetBSD: rf_map.h,v 1.3 1999/02/05 00:06:12 oster Exp $ */
+
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -29,66 +30,57 @@
/* rf_map.h */
-#ifndef _RF__RF_MAP_H_
-#define _RF__RF_MAP_H_
+#ifndef _RF__RF_MAP_H_
+#define _RF__RF_MAP_H_
#include "rf_types.h"
#include "rf_alloclist.h"
#include "rf_raid.h"
-/* mapping structure allocation and free routines */
-RF_AccessStripeMapHeader_t *
-rf_MapAccess(RF_Raid_t * raidPtr,
- RF_RaidAddr_t raidAddress, RF_SectorCount_t numBlocks,
- caddr_t buffer, int remap);
+/* Mapping structure allocation and free routines. */
+RF_AccessStripeMapHeader_t *rf_MapAccess(RF_Raid_t *, RF_RaidAddr_t,
+ RF_SectorCount_t, caddr_t, int);
-void
-rf_MarkFailuresInASMList(RF_Raid_t * raidPtr,
- RF_AccessStripeMapHeader_t * asm_h);
+void rf_MarkFailuresInASMList(RF_Raid_t *, RF_AccessStripeMapHeader_t *);
-RF_AccessStripeMap_t *rf_DuplicateASM(RF_AccessStripeMap_t * asmap);
+RF_AccessStripeMap_t *rf_DuplicateASM(RF_AccessStripeMap_t *);
-RF_PhysDiskAddr_t *rf_DuplicatePDA(RF_PhysDiskAddr_t * pda);
+RF_PhysDiskAddr_t *rf_DuplicatePDA(RF_PhysDiskAddr_t *);
-int rf_ConfigureMapModule(RF_ShutdownList_t ** listp);
+int rf_ConfigureMapModule(RF_ShutdownList_t **);
RF_AccessStripeMapHeader_t *rf_AllocAccessStripeMapHeader(void);
-void rf_FreeAccessStripeMapHeader(RF_AccessStripeMapHeader_t * p);
+void rf_FreeAccessStripeMapHeader(RF_AccessStripeMapHeader_t *);
RF_PhysDiskAddr_t *rf_AllocPhysDiskAddr(void);
-RF_PhysDiskAddr_t *rf_AllocPDAList(int count);
+RF_PhysDiskAddr_t *rf_AllocPDAList(int);
-void rf_FreePhysDiskAddr(RF_PhysDiskAddr_t * p);
+void rf_FreePhysDiskAddr(RF_PhysDiskAddr_t *);
RF_AccessStripeMap_t *rf_AllocAccessStripeMapComponent(void);
-RF_AccessStripeMap_t *rf_AllocASMList(int count);
+RF_AccessStripeMap_t *rf_AllocASMList(int);
-void rf_FreeAccessStripeMapComponent(RF_AccessStripeMap_t * p);
+void rf_FreeAccessStripeMapComponent(RF_AccessStripeMap_t *);
-void rf_FreeAccessStripeMap(RF_AccessStripeMapHeader_t * hdr);
+void rf_FreeAccessStripeMap(RF_AccessStripeMapHeader_t *);
-int rf_CheckStripeForFailures(RF_Raid_t * raidPtr, RF_AccessStripeMap_t * asmap);
+int rf_CheckStripeForFailures(RF_Raid_t *, RF_AccessStripeMap_t *);
-int rf_NumFailedDataUnitsInStripe(RF_Raid_t * raidPtr, RF_AccessStripeMap_t * asmap);
+int rf_NumFailedDataUnitsInStripe(RF_Raid_t *, RF_AccessStripeMap_t *);
-void rf_PrintAccessStripeMap(RF_AccessStripeMapHeader_t * asm_h);
+void rf_PrintAccessStripeMap(RF_AccessStripeMapHeader_t *);
-void rf_PrintFullAccessStripeMap(RF_AccessStripeMapHeader_t * asm_h, int prbuf);
+void rf_PrintFullAccessStripeMap(RF_AccessStripeMapHeader_t *, int);
-void
-rf_PrintRaidAddressInfo(RF_Raid_t * raidPtr, RF_RaidAddr_t raidAddr,
- RF_SectorCount_t numBlocks);
+void rf_PrintRaidAddressInfo(RF_Raid_t *, RF_RaidAddr_t, RF_SectorCount_t);
-void
-rf_ASMParityAdjust(RF_PhysDiskAddr_t * toAdjust,
- RF_StripeNum_t startAddrWithinStripe, RF_SectorNum_t endAddress,
- RF_RaidLayout_t * layoutPtr, RF_AccessStripeMap_t * asm_p);
+void rf_ASMParityAdjust(RF_PhysDiskAddr_t *, RF_StripeNum_t, RF_SectorNum_t,
+ RF_RaidLayout_t *, RF_AccessStripeMap_t *);
-void
-rf_ASMCheckStatus(RF_Raid_t * raidPtr, RF_PhysDiskAddr_t * pda_p,
- RF_AccessStripeMap_t * asm_p, RF_RaidDisk_t ** disks, int parity);
+void rf_ASMCheckStatus(RF_Raid_t *, RF_PhysDiskAddr_t *,
+ RF_AccessStripeMap_t *, RF_RaidDisk_t **, int);
-#endif /* !_RF__RF_MAP_H_ */
+#endif /* !_RF__RF_MAP_H_ */