mach_intr.c revision 1.7 1 1.7 skrll /* $NetBSD: mach_intr.c,v 1.7 2016/08/26 15:45:47 skrll 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 *
19 1.1 gdamore * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.1 gdamore * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.1 gdamore * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.1 gdamore * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.1 gdamore * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.1 gdamore * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.1 gdamore * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.1 gdamore * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.1 gdamore * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.1 gdamore * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 gdamore * POSSIBILITY OF SUCH DAMAGE.
30 1.1 gdamore */
31 1.1 gdamore
32 1.1 gdamore /*
33 1.1 gdamore * Platform-specific interrupt support for the Alchemy parts.
34 1.1 gdamore *
35 1.1 gdamore * These boards just use the interrupt controller built into the
36 1.1 gdamore * Alchemy processors, so we just provide evbmips-compliant wrapper
37 1.1 gdamore * routines.
38 1.1 gdamore */
39 1.1 gdamore
40 1.1 gdamore #include <sys/cdefs.h>
41 1.7 skrll __KERNEL_RCSID(0, "$NetBSD: mach_intr.c,v 1.7 2016/08/26 15:45:47 skrll Exp $");
42 1.1 gdamore
43 1.1 gdamore #include "opt_ddb.h"
44 1.1 gdamore
45 1.1 gdamore #include <sys/param.h>
46 1.6 matt #include <sys/bus.h>
47 1.6 matt #include <sys/device.h>
48 1.6 matt #include <sys/intr.h>
49 1.6 matt #include <sys/kernel.h>
50 1.1 gdamore #include <sys/malloc.h>
51 1.1 gdamore #include <sys/systm.h>
52 1.1 gdamore
53 1.1 gdamore #include <mips/locore.h>
54 1.1 gdamore #include <mips/alchemy/include/auvar.h>
55 1.1 gdamore #include <mips/alchemy/include/aubusvar.h>
56 1.1 gdamore
57 1.1 gdamore void
58 1.1 gdamore evbmips_intr_init(void)
59 1.1 gdamore {
60 1.1 gdamore au_intr_init();
61 1.1 gdamore }
62 1.1 gdamore
63 1.1 gdamore void
64 1.7 skrll evbmips_iointr(int ipl, uint32_t ipending, struct clockframe *cf)
65 1.1 gdamore {
66 1.1 gdamore
67 1.7 skrll au_iointr(ipl, cf->pc, ipending);
68 1.1 gdamore }
69