summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_raid1.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/raidframe/rf_raid1.h')
-rw-r--r--sys/dev/raidframe/rf_raid1.h50
1 files changed, 20 insertions, 30 deletions
diff --git a/sys/dev/raidframe/rf_raid1.h b/sys/dev/raidframe/rf_raid1.h
index ef2201cacfa..fefcff4f35c 100644
--- a/sys/dev/raidframe/rf_raid1.h
+++ b/sys/dev/raidframe/rf_raid1.h
@@ -1,5 +1,6 @@
-/* $OpenBSD: rf_raid1.h,v 1.2 1999/02/16 00:03:16 niklas Exp $ */
+/* $OpenBSD: rf_raid1.h,v 1.3 2002/12/16 07:01:04 tdeval Exp $ */
/* $NetBSD: rf_raid1.h,v 1.3 1999/02/05 00:06:16 oster Exp $ */
+
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -27,37 +28,26 @@
* rights to redistribute these changes.
*/
-/* header file for RAID Level 1 */
+/* Header file for RAID Level 1. */
-#ifndef _RF__RF_RAID1_H_
-#define _RF__RF_RAID1_H_
+#ifndef _RF__RF_RAID1_H_
+#define _RF__RF_RAID1_H_
#include "rf_types.h"
-int
-rf_ConfigureRAID1(RF_ShutdownList_t ** listp, RF_Raid_t * raidPtr,
- RF_Config_t * cfgPtr);
-void
-rf_MapSectorRAID1(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
- RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
-void
-rf_MapParityRAID1(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
- RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
-void
-rf_IdentifyStripeRAID1(RF_Raid_t * raidPtr, RF_RaidAddr_t addr,
- RF_RowCol_t ** diskids, RF_RowCol_t * outRow);
-void
-rf_MapSIDToPSIDRAID1(RF_RaidLayout_t * layoutPtr,
- RF_StripeNum_t stripeID, RF_StripeNum_t * psID,
- RF_ReconUnitNum_t * which_ru);
-void
-rf_RAID1DagSelect(RF_Raid_t * raidPtr, RF_IoType_t type,
- RF_AccessStripeMap_t * asmap, RF_VoidFuncPtr * createFunc);
-int
-rf_VerifyParityRAID1(RF_Raid_t * raidPtr, RF_RaidAddr_t raidAddr,
- RF_PhysDiskAddr_t * parityPDA, int correct_it, RF_RaidAccessFlags_t flags);
-int
-rf_SubmitReconBufferRAID1(RF_ReconBuffer_t * rbuf, int keep_int,
- int use_committed);
+int rf_ConfigureRAID1(RF_ShutdownList_t **, RF_Raid_t *, RF_Config_t *);
+void rf_MapSectorRAID1(RF_Raid_t *, RF_RaidAddr_t,
+ RF_RowCol_t *, RF_RowCol_t *, RF_SectorNum_t *, int);
+void rf_MapParityRAID1(RF_Raid_t *, RF_RaidAddr_t,
+ RF_RowCol_t *, RF_RowCol_t *, RF_SectorNum_t *, int);
+void rf_IdentifyStripeRAID1(RF_Raid_t *, RF_RaidAddr_t,
+ RF_RowCol_t **, RF_RowCol_t *);
+void rf_MapSIDToPSIDRAID1(RF_RaidLayout_t *,
+ RF_StripeNum_t, RF_StripeNum_t *, RF_ReconUnitNum_t *);
+void rf_RAID1DagSelect(RF_Raid_t *, RF_IoType_t,
+ RF_AccessStripeMap_t *, RF_VoidFuncPtr *);
+int rf_VerifyParityRAID1(RF_Raid_t *, RF_RaidAddr_t,
+ RF_PhysDiskAddr_t *, int, RF_RaidAccessFlags_t);
+int rf_SubmitReconBufferRAID1(RF_ReconBuffer_t *, int, int);
-#endif /* !_RF__RF_RAID1_H_ */
+#endif /* !_RF__RF_RAID1_H_ */