mach_intr.c revision 1.1 1 1.1 gdamore /* $NetBSD: mach_intr.c,v 1.1 2006/02/07 18:57:12 gdamore Exp $ */
2 1.1 gdamore
3 1.1 gdamore /*-
4 1.1 gdamore * Copyright (c) 2001 The NetBSD Foundation, Inc.
5 1.1 gdamore * All rights reserved.
6 1.1 gdamore *
7 1.1 gdamore * This code is derived from software contributed to The NetBSD Foundation
8 1.1 gdamore * by Jason R. Thorpe.
9 1.1 gdamore *
10 1.1 gdamore * Redistribution and use in source and binary forms, with or without
11 1.1 gdamore * modification, are permitted provided that the following conditions
12 1.1 gdamore * are met:
13 1.1 gdamore * 1. Redistributions of source code must retain the above copyright
14 1.1 gdamore * notice, this list of conditions and the following disclaimer.
15 1.1 gdamore * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 gdamore * notice, this list of conditions and the following disclaimer in the
17 1.1 gdamore * documentation and/or other materials provided with the distribution.
18 1.1 gdamore * 3. All advertising materials mentioning features or use of this software
19 1.1 gdamore * must display the following acknowledgement:
20 1.1 gdamore * This product includes software developed by the NetBSD
21 1.1 gdamore * Foundation, Inc. and its contributors.
22 1.1 gdamore * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.1 gdamore * contributors may be used to endorse or promote products derived
24 1.1 gdamore * from this software without specific prior written permission.
25 1.1 gdamore *
26 1.1 gdamore * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.1 gdamore * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.1 gdamore * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.1 gdamore * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.1 gdamore * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.1 gdamore * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.1 gdamore * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.1 gdamore * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.1 gdamore * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.1 gdamore * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.1 gdamore * POSSIBILITY OF SUCH DAMAGE.
37 1.1 gdamore */
38 1.1 gdamore
39 1.1 gdamore /*
40 1.1 gdamore * Platform-specific interrupt support for the Alchemy parts.
41 1.1 gdamore *
42 1.1 gdamore * These boards just use the interrupt controller built into the
43 1.1 gdamore * Alchemy processors, so we just provide evbmips-compliant wrapper
44 1.1 gdamore * routines.
45 1.1 gdamore */
46 1.1 gdamore
47 1.1 gdamore #include <sys/cdefs.h>
48 1.1 gdamore __KERNEL_RCSID(0, "$NetBSD: mach_intr.c,v 1.1 2006/02/07 18:57:12 gdamore Exp $");
49 1.1 gdamore
50 1.1 gdamore #include "opt_ddb.h"
51 1.1 gdamore
52 1.1 gdamore #include <sys/param.h>
53 1.1 gdamore #include <sys/queue.h>
54 1.1 gdamore #include <sys/malloc.h>
55 1.1 gdamore #include <sys/systm.h>
56 1.1 gdamore #include <sys/device.h>
57 1.1 gdamore #include <sys/kernel.h>
58 1.1 gdamore
59 1.1 gdamore #include <machine/bus.h>
60 1.1 gdamore #include <machine/intr.h>
61 1.1 gdamore
62 1.1 gdamore #include <mips/locore.h>
63 1.1 gdamore #include <mips/alchemy/include/auvar.h>
64 1.1 gdamore #include <mips/alchemy/include/aubusvar.h>
65 1.1 gdamore
66 1.1 gdamore void
67 1.1 gdamore evbmips_intr_init(void)
68 1.1 gdamore {
69 1.1 gdamore au_intr_init();
70 1.1 gdamore }
71 1.1 gdamore
72 1.1 gdamore void
73 1.1 gdamore evbmips_iointr(u_int32_t status, u_int32_t cause, u_int32_t pc,
74 1.1 gdamore u_int32_t ipending)
75 1.1 gdamore {
76 1.1 gdamore
77 1.1 gdamore au_iointr(status, cause, pc, ipending);
78 1.1 gdamore }
79