at91intr.h revision 1.2
11.2Smatt/* $Id: at91intr.h,v 1.2 2008/07/03 01:15:38 matt Exp $ */ 21.2Smatt/* $NetBSD: at91intr.h,v 1.2 2008/07/03 01:15:38 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 * 3. All advertising materials mentioning features or use of this software 211.2Smatt * must display the following acknowledgement: 221.2Smatt * This product includes software developed for the NetBSD Project by 231.2Smatt * Wasabi Systems, Inc. 241.2Smatt * 4. The name of Wasabi Systems, Inc. may not be used to endorse 251.2Smatt * or promote products derived from this software without specific prior 261.2Smatt * written permission. 271.2Smatt * 281.2Smatt * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 291.2Smatt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 301.2Smatt * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 311.2Smatt * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 321.2Smatt * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 331.2Smatt * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 341.2Smatt * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 351.2Smatt * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 361.2Smatt * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 371.2Smatt * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 381.2Smatt * POSSIBILITY OF SUCH DAMAGE. 391.2Smatt */ 401.2Smatt 411.2Smatt#ifndef _AT91INTR_H_ 421.2Smatt#define _AT91INTR_H_ 431.2Smatt 441.2Smatt#define ARM_IRQ_HANDLER _C_LABEL(at91aic_intr_dispatch) 451.2Smatt 461.2Smatt#ifndef _LOCORE 471.2Smatt 481.2Smattint _splraise(int); 491.2Smattint _spllower(int); 501.2Smattvoid splx(int); 511.2Smattvoid _setsoftintr(int); 521.2Smatt 531.2Smatt#endif /* ! _LOCORE */ 541.2Smatt 551.2Smatt#endif /* _AT91INTR_H_ */ 56