2 /* $NetBSD: rf_reconbuffer.h,v 1.3 1999/02/05 00:06:16 oster Exp $ */
4 * Copyright (c) 1995 Carnegie-Mellon University.
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.
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.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 /*******************************************************************
32 * rf_reconbuffer.h -- header file for reconstruction buffer manager
34 *******************************************************************/
36 #ifndef _RF__RF_RECONBUFFER_H_
37 #define _RF__RF_RECONBUFFER_H_
39 #include <dev/raidframe/rf_types.h>
40 #include <dev/raidframe/rf_reconstruct.h>
43 rf_SubmitReconBuffer(RF_ReconBuffer_t * rbuf, int keep_int,
46 rf_SubmitReconBufferBasic(RF_ReconBuffer_t * rbuf, int keep_int,
49 rf_MultiWayReconXor(RF_Raid_t * raidPtr,
50 RF_ReconParityStripeStatus_t * pssPtr);
51 RF_ReconBuffer_t *rf_GetFullReconBuffer(RF_ReconCtrl_t * reconCtrlPtr);
53 rf_CheckForFullRbuf(RF_Raid_t * raidPtr, RF_ReconCtrl_t * reconCtrl,
54 RF_ReconParityStripeStatus_t * pssPtr, int numDataCol);
56 rf_ReleaseFloatingReconBuffer(RF_Raid_t * raidPtr, RF_RowCol_t row,
57 RF_ReconBuffer_t * rbuf);
59 rf_ReleaseBufferWaiters(RF_Raid_t * raidPtr,
60 RF_ReconParityStripeStatus_t * pssPtr);
61 void rf_ReleaseBufferWaiter(RF_ReconCtrl_t * rcPtr, RF_ReconBuffer_t * rbuf);
63 #endif /* !_RF__RF_RECONBUFFER_H_ */