Home | History | Annotate | Line # | Download | only in raidframe
rf_states.h revision 1.1
      1 /*	$NetBSD: rf_states.h,v 1.1 1998/11/13 04:20:34 oster Exp $	*/
      2 /*
      3  * Copyright (c) 1995 Carnegie-Mellon University.
      4  * All rights reserved.
      5  *
      6  * Author: Mark Holland, William V. Courtright II, Robby Findler
      7  *
      8  * Permission to use, copy, modify and distribute this software and
      9  * its documentation is hereby granted, provided that both the copyright
     10  * notice and this permission notice appear in all copies of the
     11  * software, derivative works or modified versions, and any portions
     12  * thereof, and that both notices appear in supporting documentation.
     13  *
     14  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     15  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     16  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     17  *
     18  * Carnegie Mellon requests users of this software to return to
     19  *
     20  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     21  *  School of Computer Science
     22  *  Carnegie Mellon University
     23  *  Pittsburgh PA 15213-3890
     24  *
     25  * any improvements or extensions that they make and grant Carnegie the
     26  * rights to redistribute these changes.
     27  */
     28 
     29 /* :
     30  * Log: rf_states.h,v
     31  * Revision 1.5  1996/05/27 18:56:37  jimz
     32  * more code cleanup
     33  * better typing
     34  * compiles in all 3 environments
     35  *
     36  * Revision 1.4  1996/05/24  04:28:55  jimz
     37  * release cleanup ckpt
     38  *
     39  * Revision 1.3  1996/05/18  19:51:34  jimz
     40  * major code cleanup- fix syntax, make some types consistent,
     41  * add prototypes, clean out dead code, et cetera
     42  *
     43  * Revision 1.2  1996/05/06  22:08:28  wvcii
     44  * added copyright info and change log
     45  *
     46  * Revision 1.1  1995/07/06  14:23:39  robby
     47  * Initial revision
     48  *
     49  */
     50 
     51 #ifndef _RF__RF_STATES_H_
     52 #define _RF__RF_STATES_H_
     53 
     54 #include "rf_types.h"
     55 
     56 void rf_ContinueRaidAccess(RF_RaidAccessDesc_t *desc);
     57 void rf_ContinueDagAccess(RF_DagList_t *dagList);
     58 int rf_State_LastState(RF_RaidAccessDesc_t *desc);
     59 int rf_State_IncrAccessCount(RF_RaidAccessDesc_t *desc);
     60 int rf_State_DecrAccessCount(RF_RaidAccessDesc_t *desc);
     61 int rf_State_Quiesce(RF_RaidAccessDesc_t *desc);
     62 int rf_State_Map(RF_RaidAccessDesc_t *desc);
     63 int rf_State_Lock(RF_RaidAccessDesc_t *desc);
     64 int rf_State_CreateDAG(RF_RaidAccessDesc_t *desc);
     65 int rf_State_ExecuteDAG(RF_RaidAccessDesc_t *desc);
     66 int rf_State_ProcessDAG(RF_RaidAccessDesc_t *desc);
     67 int rf_State_Cleanup(RF_RaidAccessDesc_t *desc);
     68 
     69 #endif /* !_RF__RF_STATES_H_ */
     70