intr.h revision 1.26
11.26Sgarbled/* $NetBSD: intr.h,v 1.26 2007/10/17 19:53:59 garbled Exp $ */ 21.1Ssakamoto 31.6Smycroft/*- 41.6Smycroft * Copyright (c) 1998 The NetBSD Foundation, Inc. 51.6Smycroft * All rights reserved. 61.6Smycroft * 71.6Smycroft * This code is derived from software contributed to The NetBSD Foundation 81.6Smycroft * by Charles M. Hannum. 91.1Ssakamoto * 101.1Ssakamoto * Redistribution and use in source and binary forms, with or without 111.1Ssakamoto * modification, are permitted provided that the following conditions 121.1Ssakamoto * are met: 131.1Ssakamoto * 1. Redistributions of source code must retain the above copyright 141.1Ssakamoto * notice, this list of conditions and the following disclaimer. 151.1Ssakamoto * 2. Redistributions in binary form must reproduce the above copyright 161.1Ssakamoto * notice, this list of conditions and the following disclaimer in the 171.1Ssakamoto * documentation and/or other materials provided with the distribution. 181.1Ssakamoto * 3. All advertising materials mentioning features or use of this software 191.1Ssakamoto * must display the following acknowledgement: 201.6Smycroft * This product includes software developed by the NetBSD 211.6Smycroft * Foundation, Inc. and its contributors. 221.6Smycroft * 4. Neither the name of The NetBSD Foundation nor the names of its 231.6Smycroft * contributors may be used to endorse or promote products derived 241.6Smycroft * from this software without specific prior written permission. 251.1Ssakamoto * 261.6Smycroft * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.6Smycroft * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.6Smycroft * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.6Smycroft * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.6Smycroft * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.6Smycroft * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.6Smycroft * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.6Smycroft * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.6Smycroft * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.6Smycroft * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.6Smycroft * POSSIBILITY OF SUCH DAMAGE. 371.1Ssakamoto */ 381.1Ssakamoto 391.26Sgarbled 401.1Ssakamoto#ifndef _BEBOX_INTR_H_ 411.1Ssakamoto#define _BEBOX_INTR_H_ 421.1Ssakamoto 431.26Sgarbled#include <powerpc/intr.h> 441.1Ssakamoto 451.1Ssakamoto#ifndef _LOCORE 461.1Ssakamoto 471.26Sgarbledvoid enable_intr(void); 481.26Sgarbledvoid disable_intr(void); 491.2Ssakamoto 501.2Ssakamotoextern int imask[]; 511.26Sgarbledextern paddr_t bebox_mb_reg; 521.24Syamt 531.26Sgarbled#define ICU_LEN 32 541.26Sgarbled#define IRQ_SLAVE 2 551.26Sgarbled#define LEGAL_IRQ(x) ((x) >= 0 && (x) < ICU_LEN && (x) != IRQ_SLAVE) 561.24Syamt 571.26Sgarbled#define BEBOX_INTR_REG 0xbffff000 581.26Sgarbled#define INTR_VECTOR_REG 0xff0 591.1Ssakamoto 601.1Ssakamoto#endif /* !_LOCORE */ 611.1Ssakamoto 621.1Ssakamoto#endif /* !_BEBOX_INTR_H_ */ 63