mach_intr.c revision 1.3
11.3Smatt/* $NetBSD: mach_intr.c,v 1.3 2011/02/20 07:48:33 matt Exp $ */ 21.1Sgdamore 31.1Sgdamore/*- 41.1Sgdamore * Copyright (c) 2001 The NetBSD Foundation, Inc. 51.1Sgdamore * All rights reserved. 61.1Sgdamore * 71.1Sgdamore * This code is derived from software contributed to The NetBSD Foundation 81.1Sgdamore * by Jason R. Thorpe. 91.1Sgdamore * 101.1Sgdamore * Redistribution and use in source and binary forms, with or without 111.1Sgdamore * modification, are permitted provided that the following conditions 121.1Sgdamore * are met: 131.1Sgdamore * 1. Redistributions of source code must retain the above copyright 141.1Sgdamore * notice, this list of conditions and the following disclaimer. 151.1Sgdamore * 2. Redistributions in binary form must reproduce the above copyright 161.1Sgdamore * notice, this list of conditions and the following disclaimer in the 171.1Sgdamore * documentation and/or other materials provided with the distribution. 181.1Sgdamore * 191.1Sgdamore * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Sgdamore * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Sgdamore * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Sgdamore * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Sgdamore * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Sgdamore * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Sgdamore * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Sgdamore * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Sgdamore * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Sgdamore * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Sgdamore * POSSIBILITY OF SUCH DAMAGE. 301.1Sgdamore */ 311.1Sgdamore 321.1Sgdamore/* 331.1Sgdamore * Platform-specific interrupt support for the Atheros parts. 341.1Sgdamore */ 351.1Sgdamore 361.1Sgdamore#include <sys/cdefs.h> 371.3Smatt__KERNEL_RCSID(0, "$NetBSD: mach_intr.c,v 1.3 2011/02/20 07:48:33 matt Exp $"); 381.1Sgdamore 391.1Sgdamore#include "opt_ddb.h" 401.1Sgdamore 411.1Sgdamore#include <sys/param.h> 421.1Sgdamore#include <sys/queue.h> 431.1Sgdamore#include <sys/systm.h> 441.1Sgdamore#include <sys/device.h> 451.1Sgdamore#include <sys/kernel.h> 461.1Sgdamore 471.1Sgdamore#include <machine/bus.h> 481.1Sgdamore#include <machine/intr.h> 491.1Sgdamore 501.1Sgdamore#include <mips/locore.h> 511.1Sgdamore#include <mips/atheros/include/ar531xvar.h> 521.1Sgdamore 531.1Sgdamorevoid 541.1Sgdamoreevbmips_intr_init(void) 551.1Sgdamore{ 561.1Sgdamore ar531x_intr_init(); 571.1Sgdamore} 581.1Sgdamore 591.1Sgdamorevoid 601.3Smattevbmips_iointr(int ipl, vaddr_t pc, uint32_t ipending) 611.1Sgdamore{ 621.1Sgdamore 631.3Smatt ar531x_cpuintr(ipl, pc, ipending); 641.1Sgdamore} 65