11.32Smacallan/*	$NetBSD: intr.h,v 1.32 2013/04/20 13:32:40 macallan Exp $	*/
21.1Stsubai
31.3Smycroft/*-
41.3Smycroft * Copyright (c) 1998 The NetBSD Foundation, Inc.
51.3Smycroft * All rights reserved.
61.3Smycroft *
71.3Smycroft * This code is derived from software contributed to The NetBSD Foundation
81.3Smycroft * by Charles M. Hannum.
91.1Stsubai *
101.1Stsubai * Redistribution and use in source and binary forms, with or without
111.1Stsubai * modification, are permitted provided that the following conditions
121.1Stsubai * are met:
131.1Stsubai * 1. Redistributions of source code must retain the above copyright
141.1Stsubai *    notice, this list of conditions and the following disclaimer.
151.1Stsubai * 2. Redistributions in binary form must reproduce the above copyright
161.1Stsubai *    notice, this list of conditions and the following disclaimer in the
171.1Stsubai *    documentation and/or other materials provided with the distribution.
181.1Stsubai *
191.3Smycroft * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.3Smycroft * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.3Smycroft * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.3Smycroft * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.3Smycroft * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.3Smycroft * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.3Smycroft * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.3Smycroft * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.3Smycroft * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.3Smycroft * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.3Smycroft * POSSIBILITY OF SUCH DAMAGE.
301.1Stsubai */
311.1Stsubai
321.4Stsubai#ifndef _MACPPC_INTR_H_
331.4Stsubai#define _MACPPC_INTR_H_
341.18Smartin
351.19Sdyoung#ifdef _KERNEL_OPT
361.18Smartin#include "opt_multiprocessor.h"
371.19Sdyoung#endif
381.1Stsubai
391.1Stsubai#ifndef _LOCORE
401.1Stsubai
411.32Smacallan#define ICU_LEN		128
421.1Stsubai
431.15Schs#ifdef MULTIPROCESSOR
441.11Stsubaistruct cpu_info;
451.28Smatt
461.28Smatt#include <powerpc/pic/ipivar.h>
471.26Sgarbled#endif /* MULTIPROCESSOR */
481.20Smatt
491.11Stsubai
501.28Smatt#ifdef _KERNEL
511.28Smatt
521.26Sgarbled/* probe for a PIC and set it up, return TRUE on success */
531.26Sgarbledint init_ohare(void);
541.26Sgarbledint init_heathrow(void);
551.31Smacallanint init_u3_ht(void);
561.26Sgarbledint init_grandcentral(void);
571.26Sgarbledvoid setup_hammerhead_ipi(void);
581.28Smatt#endif
591.29Smatt#endif /* _LOCORE */
601.26Sgarbled
611.30Smatt#include <powerpc/intr.h>
621.30Smatt
631.11Stsubai#endif /* _MACPPC_INTR_H_ */
64