xref: /netbsd-src/sys/arch/x68k/dev/neptunevar.h (revision 2830b81addf6ae22bd8befea2eb329a0488120b1)
1*2830b81aSisaki /*	$NetBSD: neptunevar.h,v 1.5 2008/06/25 08:14:59 isaki Exp $	*/
2ba80d2c6Sminoura 
3ba80d2c6Sminoura /*
4ba80d2c6Sminoura  *
5673523f5Smartin  * Copyright (c) 1998 The NetBSD Foundation, Inc.
6ba80d2c6Sminoura  * All rights reserved.
7ba80d2c6Sminoura  *
8ba80d2c6Sminoura  * This code is derived from software contributed to The NetBSD Foundation
9ba80d2c6Sminoura  * by Minoura Makoto.
10ba80d2c6Sminoura  *
11ba80d2c6Sminoura  * Redistribution and use in source and binary forms, with or without
12ba80d2c6Sminoura  * modification, are permitted provided that the following conditions
13ba80d2c6Sminoura  * are met:
14ba80d2c6Sminoura  * 1. Redistributions of source code must retain the above copyright
15ba80d2c6Sminoura  *    notice, this list of conditions and the following disclaimer.
16ba80d2c6Sminoura  * 2. Redistributions in binary form must reproduce the above copyright
17ba80d2c6Sminoura  *    notice, this list of conditions and the following disclaimer in the
18ba80d2c6Sminoura  *    documentation and/or other materials provided with the distribution.
19ba80d2c6Sminoura  *
20673523f5Smartin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21673523f5Smartin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22673523f5Smartin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23673523f5Smartin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24673523f5Smartin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25673523f5Smartin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26673523f5Smartin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27673523f5Smartin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28673523f5Smartin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29673523f5Smartin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30673523f5Smartin  * POSSIBILITY OF SUCH DAMAGE.
31ba80d2c6Sminoura  */
32ba80d2c6Sminoura 
33ba80d2c6Sminoura /*
34ba80d2c6Sminoura  * Neptune-X -- X68k-ISA Bus Bridge
35ba80d2c6Sminoura  */
36ba80d2c6Sminoura 
37ba80d2c6Sminoura #ifndef _NEPTUNEVAR_H_
38ba80d2c6Sminoura #define _NEPTUNEVAR_H_
39ba80d2c6Sminoura 
40ba80d2c6Sminoura #include <sys/malloc.h>
41ba80d2c6Sminoura #include <sys/extent.h>
42a76b0b1bSminoura #include <machine/frame.h>
43a76b0b1bSminoura #include <arch/x68k/dev/intiovar.h>
44ba80d2c6Sminoura #include "locators.h"
45ba80d2c6Sminoura 
46ba80d2c6Sminoura #define neptune_cf_addr	cf_loc[NEPTUNECF_ADDR]
47ba80d2c6Sminoura 
48ba80d2c6Sminoura 
49ba80d2c6Sminoura struct neptune_attach_args {
50ba80d2c6Sminoura 	bus_space_tag_t	na_bst;	/* bus_space tag */
51ba80d2c6Sminoura 
52ba80d2c6Sminoura 	int		na_addr; /* addr */
53ba80d2c6Sminoura 	int		na_intr; /* intr */
54ba80d2c6Sminoura };
55ba80d2c6Sminoura 
56ba80d2c6Sminoura struct neptune_softc {
57ba80d2c6Sminoura 	bus_space_tag_t	sc_bst;
58ba80d2c6Sminoura 	vaddr_t		sc_addr;
59ba80d2c6Sminoura };
60ba80d2c6Sminoura 
61ba80d2c6Sminoura #define neptune_intr_establish intio_intr_establish
62ba80d2c6Sminoura #endif
63