xref: /netbsd-src/sys/arch/macppc/include/intr.h (revision 04df369c97efcfef0785dc898b6c3dcb43f77652)
1*04df369cSmacallan /*	$NetBSD: intr.h,v 1.32 2013/04/20 13:32:40 macallan Exp $	*/
22be6df07Stsubai 
36dc90320Smycroft /*-
46dc90320Smycroft  * Copyright (c) 1998 The NetBSD Foundation, Inc.
56dc90320Smycroft  * All rights reserved.
66dc90320Smycroft  *
76dc90320Smycroft  * This code is derived from software contributed to The NetBSD Foundation
86dc90320Smycroft  * by Charles M. Hannum.
92be6df07Stsubai  *
102be6df07Stsubai  * Redistribution and use in source and binary forms, with or without
112be6df07Stsubai  * modification, are permitted provided that the following conditions
122be6df07Stsubai  * are met:
132be6df07Stsubai  * 1. Redistributions of source code must retain the above copyright
142be6df07Stsubai  *    notice, this list of conditions and the following disclaimer.
152be6df07Stsubai  * 2. Redistributions in binary form must reproduce the above copyright
162be6df07Stsubai  *    notice, this list of conditions and the following disclaimer in the
172be6df07Stsubai  *    documentation and/or other materials provided with the distribution.
182be6df07Stsubai  *
196dc90320Smycroft  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
206dc90320Smycroft  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
216dc90320Smycroft  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
226dc90320Smycroft  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
236dc90320Smycroft  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
246dc90320Smycroft  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
256dc90320Smycroft  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
266dc90320Smycroft  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
276dc90320Smycroft  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
286dc90320Smycroft  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
296dc90320Smycroft  * POSSIBILITY OF SUCH DAMAGE.
302be6df07Stsubai  */
312be6df07Stsubai 
32c91ac313Stsubai #ifndef _MACPPC_INTR_H_
33c91ac313Stsubai #define _MACPPC_INTR_H_
342be6df07Stsubai 
35eb4a83a0Sdyoung #ifdef _KERNEL_OPT
36d505b189Smartin #include "opt_multiprocessor.h"
37eb4a83a0Sdyoung #endif
38d505b189Smartin 
392be6df07Stsubai #ifndef _LOCORE
402be6df07Stsubai 
41*04df369cSmacallan #define ICU_LEN		128
422be6df07Stsubai 
43ce8902b7Stsubai #ifdef MULTIPROCESSOR
44ce8902b7Stsubai struct cpu_info;
4501fd9255Smatt 
4601fd9255Smatt #include <powerpc/pic/ipivar.h>
47d974db0aSgarbled #endif /* MULTIPROCESSOR */
48ce8902b7Stsubai 
49ce8902b7Stsubai 
5001fd9255Smatt #ifdef _KERNEL
5101fd9255Smatt 
52d974db0aSgarbled /* probe for a PIC and set it up, return TRUE on success */
53d974db0aSgarbled int init_ohare(void);
54d974db0aSgarbled int init_heathrow(void);
55b762205fSmacallan int init_u3_ht(void);
56d974db0aSgarbled int init_grandcentral(void);
57d974db0aSgarbled void setup_hammerhead_ipi(void);
5801fd9255Smatt #endif
590cdfe4f5Smatt #endif /* _LOCORE */
60d974db0aSgarbled 
61e2a71f6cSmatt #include <powerpc/intr.h>
62e2a71f6cSmatt 
63ce8902b7Stsubai #endif /* _MACPPC_INTR_H_ */
64