xref: /netbsd-src/sys/arch/sun3/dev/sevar.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: sevar.h,v 1.4 2008/04/28 20:23:37 martin Exp $	*/
298eb63d8Sgwr 
398eb63d8Sgwr /*-
498eb63d8Sgwr  * Copyright (c) 1997 The NetBSD Foundation, Inc.
598eb63d8Sgwr  * All rights reserved.
698eb63d8Sgwr  *
798eb63d8Sgwr  * This code is derived from software contributed to The NetBSD Foundation
898eb63d8Sgwr  * by Gordon W. Ross.
998eb63d8Sgwr  *
1098eb63d8Sgwr  * Redistribution and use in source and binary forms, with or without
1198eb63d8Sgwr  * modification, are permitted provided that the following conditions
1298eb63d8Sgwr  * are met:
1398eb63d8Sgwr  * 1. Redistributions of source code must retain the above copyright
1498eb63d8Sgwr  *    notice, this list of conditions and the following disclaimer.
1598eb63d8Sgwr  * 2. Redistributions in binary form must reproduce the above copyright
1698eb63d8Sgwr  *    notice, this list of conditions and the following disclaimer in the
1798eb63d8Sgwr  *    documentation and/or other materials provided with the distribution.
1898eb63d8Sgwr  *
1998eb63d8Sgwr  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2098eb63d8Sgwr  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2198eb63d8Sgwr  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2298eb63d8Sgwr  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2398eb63d8Sgwr  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2498eb63d8Sgwr  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2598eb63d8Sgwr  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2698eb63d8Sgwr  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2798eb63d8Sgwr  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2898eb63d8Sgwr  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2998eb63d8Sgwr  * POSSIBILITY OF SUCH DAMAGE.
3098eb63d8Sgwr  */
3198eb63d8Sgwr 
3298eb63d8Sgwr /*
3398eb63d8Sgwr  * Data structures shared between "sebuf" and its children.
3498eb63d8Sgwr  */
3598eb63d8Sgwr 
3698eb63d8Sgwr struct sebuf_attach_args {
3798eb63d8Sgwr 	struct confargs ca;
3803aea31dStsutsui 	const char *name; /* name of child (se, ie) */
3998eb63d8Sgwr 	char *buf;	/* KVA, pre-mapped. */
4098eb63d8Sgwr 	int blen;  	/* length of above */
4198eb63d8Sgwr 	void *regs;	/* KVA of regs. */
4298eb63d8Sgwr };
43