1178173Simp/*	$NetBSD: obiovar.h,v 1.4 2003/06/16 17:40:53 thorpej Exp $	*/
2178173Simp
3178173Simp/*-
4178173Simp * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
5178173Simp * All rights reserved.
6178173Simp *
7178173Simp * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8178173Simp *
9178173Simp * Redistribution and use in source and binary forms, with or without
10178173Simp * modification, are permitted provided that the following conditions
11178173Simp * are met:
12178173Simp * 1. Redistributions of source code must retain the above copyright
13178173Simp *    notice, this list of conditions and the following disclaimer.
14178173Simp * 2. Redistributions in binary form must reproduce the above copyright
15178173Simp *    notice, this list of conditions and the following disclaimer in the
16178173Simp *    documentation and/or other materials provided with the distribution.
17178173Simp * 3. All advertising materials mentioning features or use of this software
18178173Simp *    must display the following acknowledgement:
19178173Simp *	This product includes software developed for the NetBSD Project by
20178173Simp *	Wasabi Systems, Inc.
21178173Simp * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22178173Simp *    or promote products derived from this software without specific prior
23178173Simp *    written permission.
24178173Simp *
25178173Simp * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26178173Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27178173Simp * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28178173Simp * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
29178173Simp * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30178173Simp * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31178173Simp * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32178173Simp * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33178173Simp * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34178173Simp * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35178173Simp * POSSIBILITY OF SUCH DAMAGE.
36178173Simp *
37178173Simp * $FreeBSD$
38178173Simp *
39178173Simp */
40178173Simp
41178173Simp#ifndef _ADM5120_OBIOVAR_H_
42178173Simp#define	_ADM5120_OBIOVAR_H_
43178173Simp
44178173Simp#include <sys/rman.h>
45178173Simp
46178173Simp/* Number of controller's IRQs */
47178173Simp#define	NIRQS	32*5
48178173Simp
49178173Simp/* Number of CPU IRQ lines */
50178173Simp#define	MIPS_IRQS	5
51178173Simp
52178173Simp#define	OBIO_MEM_START	0x18000000L
53178173Simp#define	OBIO_MEM_SIZE	0x200000
54178173Simp
55178173Simpstruct obio_softc {
56178173Simp	struct rman		oba_mem_rman;
57178173Simp	struct rman		oba_irq_rman;
58178173Simp	struct intr_event	*sc_eventstab[NIRQS];	/* IRQ events structs */
59178173Simp	struct resource		*sc_irq[MIPS_IRQS];	/* IRQ resource */
60178173Simp	void			*sc_ih[MIPS_IRQS];	/* interrupt cookie */
61178173Simp};
62178173Simp
63178173Simpstruct obio_ivar {
64178173Simp	struct resource_list	resources;
65178173Simp};
66178173Simp
67178173Simp#endif /* _ADM5120_OBIOVAR_H_ */
68