1230557Sjimharris/*- 2230557Sjimharris * Copyright (c) 2014 Andrew Turner <andrew@FreeBSD.org> 3230557Sjimharris * All rights reserved. 4230557Sjimharris * 5230557Sjimharris * Redistribution and use in source and binary forms, with or without 6230557Sjimharris * modification, are permitted provided that the following conditions 7230557Sjimharris * are met: 8230557Sjimharris * 1. Redistributions of source code must retain the above copyright 9230557Sjimharris * notice, this list of conditions and the following disclaimer. 10230557Sjimharris * 2. Redistributions in binary form must reproduce the above copyright 11230557Sjimharris * notice, this list of conditions and the following disclaimer in the 12230557Sjimharris * documentation and/or other materials provided with the distribution. 13230557Sjimharris * 14230557Sjimharris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15230557Sjimharris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16230557Sjimharris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17230557Sjimharris * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18230557Sjimharris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19230557Sjimharris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20230557Sjimharris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21230557Sjimharris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22230557Sjimharris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23230557Sjimharris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24230557Sjimharris * SUCH DAMAGE. 25230557Sjimharris * 26230557Sjimharris * $FreeBSD$ 27230557Sjimharris */ 28230557Sjimharris 29230557Sjimharris#ifndef _MACHINE_INTR_H_ 30230557Sjimharris#define _MACHINE_INTR_H_ 31230557Sjimharris 32230557Sjimharris#ifdef FDT 33230557Sjimharris#include <dev/ofw/openfirm.h> 34230557Sjimharris#endif 35230557Sjimharris 36230557Sjimharris#include <sys/intr.h> 37230557Sjimharris 38230557Sjimharris#ifndef NIRQ 39230557Sjimharris#define NIRQ 2048 /* XXX - It should be an option. */ 40230557Sjimharris#endif 41230557Sjimharris 42230557Sjimharrisstatic inline void 43230557Sjimharrisarm_irq_memory_barrier(uintptr_t irq) 44230557Sjimharris{ 45230557Sjimharris} 46230557Sjimharris 47230557Sjimharris#ifdef SMP 48230557Sjimharrisvoid intr_ipi_dispatch(u_int, struct trapframe *); 49230557Sjimharris#endif 50230557Sjimharris 51230557Sjimharris#endif /* _MACHINE_INTR_H */ 52230557Sjimharris