11.4Smatt/*	$Id: at91intr.h,v 1.4 2014/02/04 18:51:16 matt Exp $	*/
21.4Smatt/*	$NetBSD: at91intr.h,v 1.4 2014/02/04 18:51:16 matt Exp $	*/
31.2Smatt
41.2Smatt/*
51.2Smatt * Copyright (c) 2007 Embedtronics Oy.
61.2Smatt * All rights reserved.
71.2Smatt *
81.2Smatt * Based on ep93xx_intr.h,
91.2Smatt * Copyright (c) 2004 Jesse Off
101.2Smatt * All rights reserved.
111.2Smatt *
121.2Smatt * Redistribution and use in source and binary forms, with or without
131.2Smatt * modification, are permitted provided that the following conditions
141.2Smatt * are met:
151.2Smatt * 1. Redistributions of source code must retain the above copyright
161.2Smatt *    notice, this list of conditions and the following disclaimer.
171.2Smatt * 2. Redistributions in binary form must reproduce the above copyright
181.2Smatt *    notice, this list of conditions and the following disclaimer in the
191.2Smatt *    documentation and/or other materials provided with the distribution.
201.2Smatt *
211.2Smatt * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
221.2Smatt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
231.2Smatt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
241.2Smatt * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
251.2Smatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
261.2Smatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
271.2Smatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
281.2Smatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
291.2Smatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
301.2Smatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
311.2Smatt * POSSIBILITY OF SUCH DAMAGE.
321.2Smatt */
331.2Smatt
341.2Smatt#ifndef _AT91INTR_H_
351.2Smatt#define _AT91INTR_H_
361.2Smatt
371.2Smatt#define	ARM_IRQ_HANDLER	_C_LABEL(at91aic_intr_dispatch)
381.2Smatt
391.2Smatt#ifndef _LOCORE
401.2Smatt
411.2Smattint	_splraise(int);
421.2Smattint	_spllower(int);
431.2Smattvoid	splx(int);
441.2Smatt
451.2Smatt#endif /* ! _LOCORE */
461.2Smatt
471.2Smatt#endif /* _AT91INTR_H_ */
48