]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/raidframe/rf_reconbuffer.h
This commit was generated by cvs2svn to compensate for changes in r106907,
[FreeBSD/FreeBSD.git] / sys / dev / raidframe / rf_reconbuffer.h
1 /*      $FreeBSD$ */
2 /*      $NetBSD: rf_reconbuffer.h,v 1.3 1999/02/05 00:06:16 oster Exp $ */
3 /*
4  * Copyright (c) 1995 Carnegie-Mellon University.
5  * All rights reserved.
6  *
7  * Author: Mark Holland
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 /*******************************************************************
31  *
32  * rf_reconbuffer.h -- header file for reconstruction buffer manager
33  *
34  *******************************************************************/
35
36 #ifndef _RF__RF_RECONBUFFER_H_
37 #define _RF__RF_RECONBUFFER_H_
38
39 #include <dev/raidframe/rf_types.h>
40 #include <dev/raidframe/rf_reconstruct.h>
41
42 int 
43 rf_SubmitReconBuffer(RF_ReconBuffer_t * rbuf, int keep_int,
44     int use_committed);
45 int 
46 rf_SubmitReconBufferBasic(RF_ReconBuffer_t * rbuf, int keep_int,
47     int use_committed);
48 int 
49 rf_MultiWayReconXor(RF_Raid_t * raidPtr,
50     RF_ReconParityStripeStatus_t * pssPtr);
51 RF_ReconBuffer_t *rf_GetFullReconBuffer(RF_ReconCtrl_t * reconCtrlPtr);
52 int 
53 rf_CheckForFullRbuf(RF_Raid_t * raidPtr, RF_ReconCtrl_t * reconCtrl,
54     RF_ReconParityStripeStatus_t * pssPtr, int numDataCol);
55 void 
56 rf_ReleaseFloatingReconBuffer(RF_Raid_t * raidPtr, RF_RowCol_t row,
57     RF_ReconBuffer_t * rbuf);
58 void 
59 rf_ReleaseBufferWaiters(RF_Raid_t * raidPtr,
60     RF_ReconParityStripeStatus_t * pssPtr);
61 void    rf_ReleaseBufferWaiter(RF_ReconCtrl_t * rcPtr, RF_ReconBuffer_t * rbuf);
62
63 #endif                          /* !_RF__RF_RECONBUFFER_H_ */