ciu.c (216092) | ciu.c (217214) |
---|---|
1/*- 2 * Copyright (c) 2010 Juli Mallett <jmallett@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2010 Juli Mallett <jmallett@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/mips/cavium/ciu.c 216092 2010-12-01 05:24:29Z jmallett $ | 26 * $FreeBSD: head/sys/mips/cavium/ciu.c 217214 2011-01-10 03:48:41Z jmallett $ |
27 */ 28 29#include <sys/cdefs.h> | 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/mips/cavium/ciu.c 216092 2010-12-01 05:24:29Z jmallett $"); | 30__FBSDID("$FreeBSD: head/sys/mips/cavium/ciu.c 217214 2011-01-10 03:48:41Z jmallett $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/interrupt.h> 36#include <sys/kernel.h> 37#include <sys/module.h> 38#include <sys/rman.h> --- 14 unchanged lines hidden (view full) --- 53 54#define CIU_IRQ_HARD (0) 55 56#define CIU_IRQ_EN0_BEGIN CVMX_IRQ_WORKQ0 57#define CIU_IRQ_EN0_END CVMX_IRQ_BOOTDMA 58#define CIU_IRQ_EN0_COUNT ((CIU_IRQ_EN0_END - CIU_IRQ_EN0_BEGIN) + 1) 59 60#define CIU_IRQ_EN1_BEGIN CVMX_IRQ_WDOG0 | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/bus.h> 35#include <sys/interrupt.h> 36#include <sys/kernel.h> 37#include <sys/module.h> 38#include <sys/rman.h> --- 14 unchanged lines hidden (view full) --- 53 54#define CIU_IRQ_HARD (0) 55 56#define CIU_IRQ_EN0_BEGIN CVMX_IRQ_WORKQ0 57#define CIU_IRQ_EN0_END CVMX_IRQ_BOOTDMA 58#define CIU_IRQ_EN0_COUNT ((CIU_IRQ_EN0_END - CIU_IRQ_EN0_BEGIN) + 1) 59 60#define CIU_IRQ_EN1_BEGIN CVMX_IRQ_WDOG0 |
61#define CIU_IRQ_EN1_END CVMX_IRQ_WDOG15 | 61#define CIU_IRQ_EN1_END CVMX_IRQ_DFM |
62#define CIU_IRQ_EN1_COUNT ((CIU_IRQ_EN1_END - CIU_IRQ_EN1_BEGIN) + 1) 63 64struct ciu_softc { 65 struct rman irq_rman; 66 struct resource *ciu_irq; 67}; 68 69static mips_intrcnt_t ciu_en0_intrcnt[CIU_IRQ_EN0_COUNT]; --- 419 unchanged lines hidden --- | 62#define CIU_IRQ_EN1_COUNT ((CIU_IRQ_EN1_END - CIU_IRQ_EN1_BEGIN) + 1) 63 64struct ciu_softc { 65 struct rman irq_rman; 66 struct resource *ciu_irq; 67}; 68 69static mips_intrcnt_t ciu_en0_intrcnt[CIU_IRQ_EN0_COUNT]; --- 419 unchanged lines hidden --- |