1*e2a71f6cSmatt /* $NetBSD: intr.h,v 1.15 2011/06/17 23:36:17 matt Exp $ */ 24c447e53Sscw 34c447e53Sscw /*- 4bd9412dfSscw * Copyright (c) 1998 The NetBSD Foundation, Inc. 54c447e53Sscw * All rights reserved. 64c447e53Sscw * 74c447e53Sscw * This code is derived from software contributed to The NetBSD Foundation 84c447e53Sscw * by Charles M. Hannum. 94c447e53Sscw * 104c447e53Sscw * Redistribution and use in source and binary forms, with or without 114c447e53Sscw * modification, are permitted provided that the following conditions 124c447e53Sscw * are met: 134c447e53Sscw * 1. Redistributions of source code must retain the above copyright 144c447e53Sscw * notice, this list of conditions and the following disclaimer. 154c447e53Sscw * 2. Redistributions in binary form must reproduce the above copyright 164c447e53Sscw * notice, this list of conditions and the following disclaimer in the 174c447e53Sscw * documentation and/or other materials provided with the distribution. 184c447e53Sscw * 194c447e53Sscw * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 204c447e53Sscw * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 214c447e53Sscw * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 224c447e53Sscw * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 234c447e53Sscw * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 244c447e53Sscw * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 254c447e53Sscw * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 264c447e53Sscw * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 274c447e53Sscw * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 284c447e53Sscw * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 294c447e53Sscw * POSSIBILITY OF SUCH DAMAGE. 304c447e53Sscw */ 314c447e53Sscw 324c447e53Sscw #ifndef _MVMEPPC_INTR_H_ 334c447e53Sscw #define _MVMEPPC_INTR_H_ 344c447e53Sscw 354c447e53Sscw #ifndef _LOCORE 364c447e53Sscw 37bd9412dfSscw void enable_intr(void); 38bd9412dfSscw void disable_intr(void); 39bd9412dfSscw 40bd9412dfSscw extern vaddr_t mvmeppc_intr_reg; 414c447e53Sscw 424c447e53Sscw #define ICU_LEN 32 434c447e53Sscw #define IRQ_SLAVE 2 44*e2a71f6cSmatt #define LEGAL_HWIRQ_P(x) ((u_int)(x) < ICU_LEN && (x) != IRQ_SLAVE) 454c447e53Sscw 464c447e53Sscw #define MVMEPPC_INTR_REG 0xbffff000 474c447e53Sscw #define INTR_VECTOR_REG 0xff0 484c447e53Sscw 494c447e53Sscw #endif /* !_LOCORE */ 504c447e53Sscw 51*e2a71f6cSmatt #include <powerpc/intr.h> 52*e2a71f6cSmatt 534c447e53Sscw #endif /* !_MVMEPPC_INTR_H_ */ 54