1281494Sandrew/*-
2281494Sandrew * Copyright (c) 2014 Andrew Turner <andrew@FreeBSD.org>
3281494Sandrew * All rights reserved.
4281494Sandrew *
5281494Sandrew * Redistribution and use in source and binary forms, with or without
6281494Sandrew * modification, are permitted provided that the following conditions
7281494Sandrew * are met:
8281494Sandrew * 1. Redistributions of source code must retain the above copyright
9281494Sandrew *    notice, this list of conditions and the following disclaimer.
10281494Sandrew * 2. Redistributions in binary form must reproduce the above copyright
11281494Sandrew *    notice, this list of conditions and the following disclaimer in the
12281494Sandrew *    documentation and/or other materials provided with the distribution.
13281494Sandrew *
14281494Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15281494Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16281494Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17281494Sandrew * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18281494Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19281494Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20281494Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21281494Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22281494Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23281494Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24281494Sandrew * SUCH DAMAGE.
25281494Sandrew *
26281494Sandrew * $FreeBSD$
27281494Sandrew */
28281494Sandrew
29281494Sandrew#ifndef _MACHINE_INTR_H_
30281494Sandrew#define	_MACHINE_INTR_H_
31281494Sandrew
32299936Sandrew#ifdef FDT
33299936Sandrew#include <dev/ofw/openfirm.h>
34299936Sandrew#endif
35299936Sandrew
36299936Sandrew#include <sys/intr.h>
37299936Sandrew
38299936Sandrew#ifndef NIRQ
39301265Sandrew#define	NIRQ		2048	/* XXX - It should be an option. */
40299936Sandrew#endif
41299936Sandrew
42299936Sandrewstatic inline void
43299936Sandrewarm_irq_memory_barrier(uintptr_t irq)
44299936Sandrew{
45299936Sandrew}
46299936Sandrew
47299936Sandrew#ifdef SMP
48299936Sandrewvoid intr_ipi_dispatch(u_int, struct trapframe *);
49299936Sandrew#endif
50299936Sandrew
51281494Sandrew#endif	/* _MACHINE_INTR_H */
52