intr.h revision 1.28
11.28Smatt/*	$NetBSD: intr.h,v 1.28 2011/06/05 16:52:23 matt 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.26Sgarbled#include <powerpc/intr.h>
361.26Sgarbled
371.19Sdyoung#ifdef _KERNEL_OPT
381.18Smartin#include "opt_multiprocessor.h"
391.19Sdyoung#endif
401.1Stsubai
411.1Stsubai#ifndef _LOCORE
421.1Stsubai
431.6Stsubai#define ICU_LEN		64
441.1Stsubai
451.15Schs#ifdef MULTIPROCESSOR
461.11Stsubaistruct cpu_info;
471.28Smatt
481.28Smatt#include <powerpc/pic/ipivar.h>
491.26Sgarbled#endif /* MULTIPROCESSOR */
501.20Smatt
511.11Stsubai#endif /* _LOCORE */
521.11Stsubai
531.28Smatt#ifdef _KERNEL
541.28Smatt
551.26Sgarbled/* probe for a PIC and set it up, return TRUE on success */
561.26Sgarbledint init_ohare(void);
571.26Sgarbledint init_heathrow(void);
581.26Sgarbledint init_grandcentral(void);
591.26Sgarbledvoid setup_hammerhead_ipi(void);
601.28Smatt#endif
611.26Sgarbled
621.11Stsubai#endif /* _MACPPC_INTR_H_ */
63