Home | History | Annotate | Line # | Download | only in raidframe
rf_kintf.h revision 1.1
      1 /*	$NetBSD: rf_kintf.h,v 1.1 1998/11/13 04:20:30 oster Exp $	*/
      2 /*
      3  * rf_kintf.h
      4  *
      5  * RAIDframe exported kernel interface
      6  */
      7 /*
      8  * Copyright (c) 1995 Carnegie-Mellon University.
      9  * All rights reserved.
     10  *
     11  * Author: Jim Zelenka
     12  *
     13  * Permission to use, copy, modify and distribute this software and
     14  * its documentation is hereby granted, provided that both the copyright
     15  * notice and this permission notice appear in all copies of the
     16  * software, derivative works or modified versions, and any portions
     17  * thereof, and that both notices appear in supporting documentation.
     18  *
     19  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     20  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     21  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     22  *
     23  * Carnegie Mellon requests users of this software to return to
     24  *
     25  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     26  *  School of Computer Science
     27  *  Carnegie Mellon University
     28  *  Pittsburgh PA 15213-3890
     29  *
     30  * any improvements or extensions that they make and grant Carnegie the
     31  * rights to redistribute these changes.
     32  */
     33 /*
     34  * :
     35  * Log: rf_kintf.h,v
     36  * Revision 1.2  1996/06/03 23:28:26  jimz
     37  * more bugfixes
     38  * check in tree to sync for IPDS runs with current bugfixes
     39  * there still may be a problem with threads in the script test
     40  * getting I/Os stuck- not trivially reproducible (runs ~50 times
     41  * in a row without getting stuck)
     42  *
     43  * Revision 1.1  1996/05/31  18:59:14  jimz
     44  * Initial revision
     45  *
     46  */
     47 
     48 #ifndef _RF__RF_KINTF_H_
     49 #define _RF__RF_KINTF_H_
     50 
     51 #include "rf_types.h"
     52 
     53 int rf_boot(void);
     54 int rf_open(dev_t dev, int flag, int fmt);
     55 int rf_close(dev_t dev, int flag, int fmt);
     56 void rf_strategy(struct buf *bp);
     57 void rf_minphys(struct buf *bp);
     58 int rf_read(dev_t dev, struct uio *uio);
     59 int rf_write(dev_t dev, struct uio *uio);
     60 int rf_size(dev_t dev);
     61 int rf_ioctl(dev_t dev, int cmd, caddr_t data, int flag);
     62 void rf_ReconKernelThread(void);
     63 int rf_GetSpareTableFromDaemon(RF_SparetWait_t *req);
     64 caddr_t rf_MapToKernelSpace(struct buf *bp, caddr_t addr);
     65 int rf_BzeroWithRemap(struct buf *bp, char *databuf, int len);
     66 int rf_DoAccessKernel(RF_Raid_t *raidPtr, struct buf *bp,
     67 	RF_RaidAccessFlags_t flags, void (*cbFunc)(struct buf *), void *cbArg);
     68 int rf_DispatchKernelIO(RF_DiskQueue_t *queue, RF_DiskQueueData_t *req);
     69 
     70 #endif /* _RF__RF_KINTF_H_ */
     71