xref: /netbsd-src/sbin/raidctl/rf_configure.h (revision 6937a5d56db8898587cf125ec1882d6b3354d3e8)
1*6937a5d5Schristos /*	$NetBSD: rf_configure.h,v 1.2 2017/11/20 19:10:45 christos Exp $	*/
275d30c89Soster /*
375d30c89Soster  * Copyright (c) 1995 Carnegie-Mellon University.
475d30c89Soster  * All rights reserved.
575d30c89Soster  *
675d30c89Soster  * Author: Mark Holland
775d30c89Soster  *
875d30c89Soster  * Permission to use, copy, modify and distribute this software and
975d30c89Soster  * its documentation is hereby granted, provided that both the copyright
1075d30c89Soster  * notice and this permission notice appear in all copies of the
1175d30c89Soster  * software, derivative works or modified versions, and any portions
1275d30c89Soster  * thereof, and that both notices appear in supporting documentation.
1375d30c89Soster  *
1475d30c89Soster  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1575d30c89Soster  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1675d30c89Soster  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1775d30c89Soster  *
1875d30c89Soster  * Carnegie Mellon requests users of this software to return to
1975d30c89Soster  *
2075d30c89Soster  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2175d30c89Soster  *  School of Computer Science
2275d30c89Soster  *  Carnegie Mellon University
2375d30c89Soster  *  Pittsburgh PA 15213-3890
2475d30c89Soster  *
2575d30c89Soster  * any improvements or extensions that they make and grant Carnegie the
2675d30c89Soster  * rights to redistribute these changes.
2775d30c89Soster  */
2875d30c89Soster 
2975d30c89Soster /********************************
3075d30c89Soster  *
3175d30c89Soster  * rf_configure.h
3275d30c89Soster  *
3375d30c89Soster  * header file for raidframe configuration in the kernel version only.
3475d30c89Soster  * configuration is invoked via ioctl rather than at boot time
3575d30c89Soster  *
3675d30c89Soster  *******************************/
3775d30c89Soster 
3875d30c89Soster 
3975d30c89Soster #ifndef _RF__RF_CONFIGURE_H_
4075d30c89Soster #define _RF__RF_CONFIGURE_H_
4175d30c89Soster 
4275d30c89Soster #include <dev/raidframe/raidframevar.h>
4375d30c89Soster 
4475d30c89Soster #include <sys/param.h>
4575d30c89Soster #include <sys/proc.h>
4675d30c89Soster #include <sys/ioctl.h>
4775d30c89Soster 
48*6937a5d5Schristos int     rf_MakeConfig(char *, RF_Config_t *);
49*6937a5d5Schristos int     rf_MakeLayoutSpecificNULL(FILE *, RF_Config_t *, void *);
50*6937a5d5Schristos int     rf_MakeLayoutSpecificDeclustered(FILE *, RF_Config_t *, void *);
51*6937a5d5Schristos void   *rf_ReadSpareTable(RF_SparetWait_t *, char *);
5275d30c89Soster 
5375d30c89Soster #endif /* !_RF__RF_CONFIGURE_H_ */
54