intr.h revision 1.26
11.26Sgarbled/* $NetBSD: intr.h,v 1.26 2007/10/17 19:55:31 garbled 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 * 3. All advertising materials mentioning features or use of this software 191.1Stsubai * must display the following acknowledgement: 201.3Smycroft * This product includes software developed by the NetBSD 211.3Smycroft * Foundation, Inc. and its contributors. 221.3Smycroft * 4. Neither the name of The NetBSD Foundation nor the names of its 231.3Smycroft * contributors may be used to endorse or promote products derived 241.3Smycroft * from this software without specific prior written permission. 251.1Stsubai * 261.3Smycroft * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.3Smycroft * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.3Smycroft * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.3Smycroft * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.3Smycroft * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.3Smycroft * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.3Smycroft * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.3Smycroft * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.3Smycroft * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.3Smycroft * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.3Smycroft * POSSIBILITY OF SUCH DAMAGE. 371.1Stsubai */ 381.1Stsubai 391.4Stsubai#ifndef _MACPPC_INTR_H_ 401.4Stsubai#define _MACPPC_INTR_H_ 411.18Smartin 421.26Sgarbled#include <powerpc/intr.h> 431.26Sgarbled 441.19Sdyoung#ifdef _KERNEL_OPT 451.18Smartin#include "opt_multiprocessor.h" 461.19Sdyoung#endif 471.1Stsubai 481.1Stsubai#ifndef _LOCORE 491.1Stsubai 501.6Stsubai#define ICU_LEN 64 511.1Stsubai 521.15Schs#ifdef MULTIPROCESSOR 531.11Stsubaistruct cpu_info; 541.26Sgarbled#endif /* MULTIPROCESSOR */ 551.20Smatt 561.11Stsubai#endif /* _LOCORE */ 571.11Stsubai 581.26Sgarbled/* probe for a PIC and set it up, return TRUE on success */ 591.26Sgarbledint init_ohare(void); 601.26Sgarbledint init_heathrow(void); 611.26Sgarbledint init_grandcentral(void); 621.26Sgarbledvoid setup_hammerhead_ipi(void); 631.26Sgarbled 641.11Stsubai#endif /* _MACPPC_INTR_H_ */ 65