irq.c 905 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*
 * linux/arch/sh/boards/se/7751/irq.c
 *
 * Copyright (C) 2000  Kazumoto Kojima
 *
 * Hitachi SolutionEngine Support.
 *
 * Modified for 7751 Solution Engine by
 * Ian da Silva and Jeremy Siegel, 2001.
 */

#include <linux/init.h>
#include <linux/irq.h>
#include <asm/irq.h>
15
#include <mach-se/mach/se7751.h>
L
Linus Torvalds 已提交
16

M
Magnus Damm 已提交
17 18 19 20
static struct ipr_data ipr_irq_table[] = {
	{ 13, 3, 3, 2 },
	/* Add additional entries here as drivers are added and tested. */
};
21

M
Magnus Damm 已提交
22 23 24 25 26 27 28 29 30
static unsigned long ipr_offsets[] = {
	BCR_ILCRA,
	BCR_ILCRB,
	BCR_ILCRC,
	BCR_ILCRD,
	BCR_ILCRE,
	BCR_ILCRF,
	BCR_ILCRG,
};
31

M
Magnus Damm 已提交
32 33 34
static struct ipr_desc ipr_irq_desc = {
	.ipr_offsets	= ipr_offsets,
	.nr_offsets	= ARRAY_SIZE(ipr_offsets),
35

M
Magnus Damm 已提交
36 37 38 39 40 41
	.ipr_data	= ipr_irq_table,
	.nr_irqs	= ARRAY_SIZE(ipr_irq_table),

	.chip = {
		.name	= "IPR-se7751",
	},
42
};
L
Linus Torvalds 已提交
43

44 45 46 47 48
/*
 * Initialize IRQ setting
 */
void __init init_7751se_IRQ(void)
{
M
Magnus Damm 已提交
49
	register_ipr_controller(&ipr_irq_desc);
L
Linus Torvalds 已提交
50
}