11.7Sskrll/*	$NetBSD: mach_intr.c,v 1.7 2016/08/26 15:45:47 skrll 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.7Sskrll__KERNEL_RCSID(0, "$NetBSD: mach_intr.c,v 1.7 2016/08/26 15:45:47 skrll Exp $");
381.1Sgdamore
391.1Sgdamore#include "opt_ddb.h"
401.1Sgdamore
411.1Sgdamore#include <sys/param.h>
421.6Smatt#include <sys/bus.h>
431.1Sgdamore#include <sys/device.h>
441.6Smatt#include <sys/intr.h>
451.1Sgdamore#include <sys/kernel.h>
461.6Smatt#include <sys/systm.h>
471.1Sgdamore
481.1Sgdamore#include <mips/locore.h>
491.5Smatt#include <mips/atheros/include/platform.h>
501.1Sgdamore
511.1Sgdamorevoid
521.1Sgdamoreevbmips_intr_init(void)
531.1Sgdamore{
541.5Smatt	(*platformsw->apsw_intr_init)();
551.1Sgdamore}
561.1Sgdamore
571.1Sgdamorevoid
581.7Sskrllevbmips_iointr(int ipl, uint32_t ipending, struct clockframe *cf)
591.1Sgdamore{
601.1Sgdamore
611.7Sskrll	(*platformsw->apsw_intrsw->aisw_iointr)(ipl, cf->pc, ipending);
621.1Sgdamore}
63