/* $NetBSD: intr.h,v 1.7 2003/06/16 20:01:00 thorpej Exp $ */12/*-3* SPDX-License-Identifier: BSD-4-Clause4*5* Copyright (c) 1997 Mark Brinicombe.6* All rights reserved.7*8* Redistribution and use in source and binary forms, with or without9* modification, are permitted provided that the following conditions10* are met:11* 1. Redistributions of source code must retain the above copyright12* notice, this list of conditions and the following disclaimer.13* 2. Redistributions in binary form must reproduce the above copyright14* notice, this list of conditions and the following disclaimer in the15* documentation and/or other materials provided with the distribution.16* 3. All advertising materials mentioning features or use of this software17* must display the following acknowledgement:18* This product includes software developed by Mark Brinicombe19* for the NetBSD Project.20* 4. The name of the company nor the name of the author may be used to21* endorse or promote products derived from this software without specific22* prior written permission.23*24* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED25* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF26* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.27* IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,28* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES29* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR30* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)31* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT32* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY33* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF34* SUCH DAMAGE.35*36*/3738#ifndef _MACHINE_INTR_H_39#define _MACHINE_INTR_H_4041#ifndef LOCORE42#ifdef FDT43#include <dev/ofw/openfirm.h>44#endif4546void arm_irq_memory_barrier(uintptr_t);47#endif /* !LOCORE */4849#ifndef NIRQ50#define NIRQ 1024 /* XXX - It should be an option. */51#endif5253#define INTR_ROOT_IRQ 054#define INTR_ROOT_COUNT 15556#endif /* _MACHINE_INTR_H */575859