xref: /netbsd-src/sys/arch/x68k/dev/slhci_intio_var.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: slhci_intio_var.h,v 1.2 2008/04/28 20:23:39 martin Exp $	*/
2dd0e0396Sisaki 
3dd0e0396Sisaki /*
4dd0e0396Sisaki  * Copyright (c) 2001 The NetBSD Foundation, Inc.
5dd0e0396Sisaki  * All rights reserved.
6dd0e0396Sisaki  *
7dd0e0396Sisaki  * This code is derived from software contributed to The NetBSD Foundation
8dd0e0396Sisaki  * by Tetsuya Isaki.
9dd0e0396Sisaki  *
10dd0e0396Sisaki  * Redistribution and use in source and binary forms, with or without
11dd0e0396Sisaki  * modification, are permitted provided that the following conditions
12dd0e0396Sisaki  * are met:
13dd0e0396Sisaki  * 1. Redistributions of source code must retain the above copyright
14dd0e0396Sisaki  *    notice, this list of conditions and the following disclaimer.
15dd0e0396Sisaki  * 2. Redistributions in binary form must reproduce the above copyright
16dd0e0396Sisaki  *    notice, this list of conditions and the following disclaimer in the
17dd0e0396Sisaki  *    documentation and/or other materials provided with the distribution.
18dd0e0396Sisaki  *
19dd0e0396Sisaki  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20dd0e0396Sisaki  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21dd0e0396Sisaki  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22dd0e0396Sisaki  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23dd0e0396Sisaki  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24dd0e0396Sisaki  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25dd0e0396Sisaki  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26dd0e0396Sisaki  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27dd0e0396Sisaki  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28dd0e0396Sisaki  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29dd0e0396Sisaki  * POSSIBILITY OF SUCH DAMAGE.
30dd0e0396Sisaki  */
31dd0e0396Sisaki 
32dd0e0396Sisaki /*
33dd0e0396Sisaki  * USB part of Nereid Ethernet/USB/Memory board
34dd0e0396Sisaki  */
35dd0e0396Sisaki 
36dd0e0396Sisaki #define SLHCI_INTIO_ADDR1	(0xece380)
37dd0e0396Sisaki #define SLHCI_INTIO_ADDR2	(0xeceb80)
38dd0e0396Sisaki #define SLHCI_INTIO_INTR1	(0xfb)
39dd0e0396Sisaki #define SLHCI_INTIO_INTR2	(0xfa)
40dd0e0396Sisaki 
41dd0e0396Sisaki #define NEREID_ADDR_OFFSET	(0xece3f0 - 0xece380)	/* Nereid control port */
42dd0e0396Sisaki #define NEREID_CTRL		(0)
43dd0e0396Sisaki #define NEREID_CTRL_RESET	(0x01)
44dd0e0396Sisaki #define NEREID_CTRL_POWER	(0x02)
45dd0e0396Sisaki #define NEREID_CTRL_INTR	(0x04)
46dd0e0396Sisaki #define NEREID_CTRL_DIPSW	(0x08)
47dd0e0396Sisaki 
48dd0e0396Sisaki struct slhci_intio_softc {
49dd0e0396Sisaki 	struct slhci_softc sc_sc;
50dd0e0396Sisaki 
51dd0e0396Sisaki 	bus_space_handle_t sc_nch;	/* Nereid control port handle */
52dd0e0396Sisaki };
53