Home | History | Annotate | Line # | Download | only in raidframe
rf_netbsd.h revision 1.3
      1  1.3  oster /*	$NetBSD: rf_netbsd.h,v 1.3 1999/02/05 00:06:13 oster Exp $	*/
      2  1.1  oster /*-
      3  1.1  oster  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
      4  1.1  oster  * All rights reserved.
      5  1.1  oster  *
      6  1.1  oster  * This code is derived from software contributed to The NetBSD Foundation
      7  1.1  oster  * by Greg Oster
      8  1.1  oster  *
      9  1.1  oster  * Redistribution and use in source and binary forms, with or without
     10  1.1  oster  * modification, are permitted provided that the following conditions
     11  1.1  oster  * are met:
     12  1.1  oster  * 1. Redistributions of source code must retain the above copyright
     13  1.1  oster  *    notice, this list of conditions and the following disclaimer.
     14  1.1  oster  * 2. Redistributions in binary form must reproduce the above copyright
     15  1.1  oster  *    notice, this list of conditions and the following disclaimer in the
     16  1.1  oster  *    documentation and/or other materials provided with the distribution.
     17  1.1  oster  * 3. All advertising materials mentioning features or use of this software
     18  1.1  oster  *    must display the following acknowledgement:
     19  1.1  oster  *        This product includes software developed by the NetBSD
     20  1.1  oster  *        Foundation, Inc. and its contributors.
     21  1.1  oster  * 4. Neither the name of The NetBSD Foundation nor the names of its
     22  1.1  oster  *    contributors may be used to endorse or promote products derived
     23  1.1  oster  *    from this software without specific prior written permission.
     24  1.1  oster  *
     25  1.1  oster  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     26  1.1  oster  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     27  1.1  oster  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     28  1.1  oster  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     29  1.1  oster  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     30  1.1  oster  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     31  1.1  oster  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     32  1.1  oster  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     33  1.1  oster  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     34  1.1  oster  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35  1.1  oster  * POSSIBILITY OF SUCH DAMAGE.
     36  1.1  oster  */
     37  1.1  oster 
     38  1.1  oster /*-
     39  1.1  oster  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
     40  1.1  oster  * All rights reserved.
     41  1.1  oster  *
     42  1.1  oster  * This code is derived from software contributed to The NetBSD Foundation
     43  1.1  oster  * by Jason R. Thorpe.
     44  1.1  oster  *
     45  1.1  oster  * Redistribution and use in source and binary forms, with or without
     46  1.1  oster  * modification, are permitted provided that the following conditions
     47  1.1  oster  * are met:
     48  1.1  oster  * 1. Redistributions of source code must retain the above copyright
     49  1.1  oster  *    notice, this list of conditions and the following disclaimer.
     50  1.1  oster  * 2. Redistributions in binary form must reproduce the above copyright
     51  1.1  oster  *    notice, this list of conditions and the following disclaimer in the
     52  1.1  oster  *    documentation and/or other materials provided with the distribution.
     53  1.1  oster  * 3. All advertising materials mentioning features or use of this software
     54  1.1  oster  *    must display the following acknowledgement:
     55  1.1  oster  *        This product includes software developed by the NetBSD
     56  1.1  oster  *        Foundation, Inc. and its contributors.
     57  1.1  oster  * 4. Neither the name of The NetBSD Foundation nor the names of its
     58  1.1  oster  *    contributors may be used to endorse or promote products derived
     59  1.1  oster  *    from this software without specific prior written permission.
     60  1.1  oster  *
     61  1.1  oster  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     62  1.1  oster  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     63  1.1  oster  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     64  1.1  oster  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     65  1.1  oster  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     66  1.1  oster  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     67  1.1  oster  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     68  1.1  oster  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     69  1.1  oster  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     70  1.1  oster  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     71  1.1  oster  * POSSIBILITY OF SUCH DAMAGE.
     72  1.1  oster  */
     73  1.1  oster 
     74  1.1  oster 
     75  1.1  oster #ifndef _RF__RF_NETBSDSTUFF_H_
     76  1.1  oster #define _RF__RF_NETBSDSTUFF_H_
     77  1.1  oster 
     78  1.2  oster #ifdef _KERNEL
     79  1.1  oster #include <sys/fcntl.h>
     80  1.1  oster #include <sys/systm.h>
     81  1.1  oster #include <sys/namei.h>
     82  1.1  oster #include <sys/vnode.h>
     83  1.1  oster 
     84  1.1  oster 
     85  1.1  oster 
     86  1.1  oster struct raidcinfo {
     87  1.3  oster 	struct vnode *ci_vp;	/* device's vnode */
     88  1.3  oster 	dev_t   ci_dev;		/* XXX: device's dev_t */
     89  1.1  oster #if 0
     90  1.3  oster 	size_t  ci_size;	/* size */
     91  1.3  oster 	char   *ci_path;	/* path to component */
     92  1.3  oster 	size_t  ci_pathlen;	/* length of component path */
     93  1.1  oster #endif
     94  1.1  oster };
     95  1.3  oster #endif				/* _KERNEL */
     96  1.3  oster #endif				/* _RF__RF_NETBSDSTUFF_H_ */
     97