xref: /netbsd-src/sys/arch/prep/stand/boot/conf.c (revision 158f609ada1db7f3804af6fced5cde3ae33a24e5)
1*158f609aSkiyohara /*	$NetBSD: conf.c,v 1.6 2012/05/19 14:40:13 kiyohara Exp $	*/
237eb9eebSnonaka 
337eb9eebSnonaka /*
437eb9eebSnonaka  * Copyright (c) 1982, 1986, 1990, 1993
537eb9eebSnonaka  *	The Regents of the University of California.  All rights reserved.
637eb9eebSnonaka  *
737eb9eebSnonaka  * Redistribution and use in source and binary forms, with or without
837eb9eebSnonaka  * modification, are permitted provided that the following conditions
937eb9eebSnonaka  * are met:
1037eb9eebSnonaka  * 1. Redistributions of source code must retain the above copyright
1137eb9eebSnonaka  *    notice, this list of conditions and the following disclaimer.
1237eb9eebSnonaka  * 2. Redistributions in binary form must reproduce the above copyright
1337eb9eebSnonaka  *    notice, this list of conditions and the following disclaimer in the
1437eb9eebSnonaka  *    documentation and/or other materials provided with the distribution.
15aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
1637eb9eebSnonaka  *    may be used to endorse or promote products derived from this software
1737eb9eebSnonaka  *    without specific prior written permission.
1837eb9eebSnonaka  *
1937eb9eebSnonaka  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2037eb9eebSnonaka  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2137eb9eebSnonaka  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2237eb9eebSnonaka  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2337eb9eebSnonaka  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2437eb9eebSnonaka  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2537eb9eebSnonaka  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2637eb9eebSnonaka  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2737eb9eebSnonaka  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2837eb9eebSnonaka  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2937eb9eebSnonaka  * SUCH DAMAGE.
3037eb9eebSnonaka  *
3137eb9eebSnonaka  *	@(#)conf.c	8.1 (Berkeley) 6/10/93
3237eb9eebSnonaka  */
3337eb9eebSnonaka 
3437eb9eebSnonaka #include <lib/libsa/stand.h>
3537eb9eebSnonaka 
3678fba760Sgarbled int instrategy(void *, int , daddr_t, size_t, void *, size_t *);
3778fba760Sgarbled int inopen(struct open_file *, ...);
3878fba760Sgarbled int inclose(struct open_file *);
3937eb9eebSnonaka 
40*158f609aSkiyohara int sdstrategy(void *, int , daddr_t, size_t, void *, size_t *);
41*158f609aSkiyohara int sdopen(struct open_file *, ...);
42*158f609aSkiyohara int sdclose(struct open_file *);
43*158f609aSkiyohara 
4437eb9eebSnonaka struct devsw devsw[] = {
45*158f609aSkiyohara 	{ "sd",	sdstrategy, sdopen, sdclose, noioctl },
46*158f609aSkiyohara 	{ NULL,	NULL,       NULL,   NULL,    NULL },
4737eb9eebSnonaka };
48*158f609aSkiyohara struct devsw pseudo_devsw = { "in", instrategy, inopen, inclose, noioctl };
4937eb9eebSnonaka 
5037eb9eebSnonaka int ndevs = (sizeof (devsw) / sizeof (devsw[0]));
51