octeon_ciu.c revision 1.4
11.4Ssimonb/* $NetBSD: octeon_ciu.c,v 1.4 2020/06/23 05:14:18 simonb Exp $ */ 21.1Shikaru 31.1Shikaru/* 41.1Shikaru * Copyright (c) 2008 Internet Initiative Japan, Inc. 51.1Shikaru * All rights reserved. 61.1Shikaru * 71.1Shikaru * Redistribution and use in source and binary forms, with or without 81.1Shikaru * modification, are permitted provided that the following conditions 91.1Shikaru * are met: 101.1Shikaru * 1. Redistributions of source code must retain the above copyright 111.1Shikaru * notice, this list of conditions and the following disclaimer. 121.1Shikaru * 2. Redistributions in binary form must reproduce the above copyright 131.1Shikaru * notice, this list of conditions and the following disclaimer in the 141.1Shikaru * documentation and/or other materials provided with the distribution. 151.1Shikaru * 161.1Shikaru * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 171.1Shikaru * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 181.1Shikaru * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 191.1Shikaru * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 201.1Shikaru * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 211.1Shikaru * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 221.1Shikaru * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 231.1Shikaru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 241.1Shikaru * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 251.1Shikaru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 261.1Shikaru * SUCH DAMAGE. 271.1Shikaru */ 281.1Shikaru 291.1Shikaru#include <sys/cdefs.h> 301.4Ssimonb__KERNEL_RCSID(0, "$NetBSD: octeon_ciu.c,v 1.4 2020/06/23 05:14:18 simonb Exp $"); 311.1Shikaru 321.1Shikaru#include "opt_octeon.h" 331.1Shikaru 341.1Shikaru#include <sys/param.h> 351.1Shikaru#include <sys/systm.h> 361.1Shikaru#include <sys/types.h> 371.1Shikaru#include <sys/malloc.h> 381.1Shikaru 391.1Shikaru#include <sys/bus.h> 401.1Shikaru#include <machine/locore.h> 411.1Shikaru#include <machine/vmparam.h> 421.1Shikaru 431.1Shikaru#include <mips/cavium/octeonvar.h> 441.1Shikaru#include <mips/cavium/dev/octeon_ciureg.h> 451.1Shikaru 461.4Ssimonb/* XXX Add MP IPI interrupt support */ 47