Release 4.10 arch/m68k/sun3/sun3ints.c
/*
* linux/arch/m68k/sun3/sun3ints.c -- Sun-3(x) Linux interrupt handling code
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/kernel_stat.h>
#include <linux/interrupt.h>
#include <asm/segment.h>
#include <asm/intersil.h>
#include <asm/oplib.h>
#include <asm/sun3ints.h>
#include <asm/irq_regs.h>
#include <linux/seq_file.h>
extern void sun3_leds (unsigned char);
void sun3_disable_interrupts(void)
{
sun3_disable_irq(0);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
void sun3_enable_interrupts(void)
{
sun3_enable_irq(0);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
static int led_pattern[8] = {
~(0x80), ~(0x01),
~(0x40), ~(0x02),
~(0x20), ~(0x04),
~(0x10), ~(0x08)
};
volatile unsigned char* sun3_intreg;
void sun3_enable_irq(unsigned int irq)
{
*sun3_intreg |= (1 << irq);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
void sun3_disable_irq(unsigned int irq)
{
*sun3_intreg &= ~(1 << irq);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 19 | 100.00% | 1 | 100.00% |
| Total | 19 | 100.00% | 1 | 100.00% |
static irqreturn_t sun3_int7(int irq, void *dev_id)
{
unsigned int cnt;
cnt = kstat_irqs_cpu(irq, 0);
if (!(cnt % 2000))
sun3_leds(led_pattern[cnt % 16000 / 2000]);
return IRQ_HANDLED;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 27 | 54.00% | 1 | 25.00% |
geert uytterhoeven | geert uytterhoeven | 19 | 38.00% | 2 | 50.00% |
linus torvalds | linus torvalds | 4 | 8.00% | 1 | 25.00% |
| Total | 50 | 100.00% | 4 | 100.00% |
static irqreturn_t sun3_int5(int irq, void *dev_id)
{
unsigned int cnt;
#ifdef CONFIG_SUN3
intersil_clear();
#endif
sun3_disable_irq(5);
sun3_enable_irq(5);
#ifdef CONFIG_SUN3
intersil_clear();
#endif
xtime_update(1);
update_process_times(user_mode(get_irq_regs()));
cnt = kstat_irqs_cpu(irq, 0);
if (!(cnt % 20))
sun3_leds(led_pattern[cnt % 160 / 20]);
return IRQ_HANDLED;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 29 | 32.22% | 1 | 11.11% |
linus torvalds | linus torvalds | 21 | 23.33% | 1 | 11.11% |
geert uytterhoeven | geert uytterhoeven | 19 | 21.11% | 2 | 22.22% |
thomas bogendoerfer | thomas bogendoerfer | 10 | 11.11% | 1 | 11.11% |
martin schwidefsky | martin schwidefsky | 7 | 7.78% | 1 | 11.11% |
al viro | al viro | 2 | 2.22% | 1 | 11.11% |
torben hohn | torben hohn | 1 | 1.11% | 1 | 11.11% |
atsushi nemoto | atsushi nemoto | 1 | 1.11% | 1 | 11.11% |
| Total | 90 | 100.00% | 9 | 100.00% |
static irqreturn_t sun3_vec255(int irq, void *dev_id)
{
return IRQ_HANDLED;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
roman zippel | roman zippel | 8 | 50.00% | 1 | 33.33% |
geert uytterhoeven | geert uytterhoeven | 8 | 50.00% | 2 | 66.67% |
| Total | 16 | 100.00% | 3 | 100.00% |
void __init sun3_init_IRQ(void)
{
*sun3_intreg = 1;
m68k_setup_user_interrupt(VEC_USER, 128);
if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "clock", NULL))
pr_err("Couldn't register %s interrupt\n", "int5");
if (request_irq(IRQ_AUTO_7, sun3_int7, 0, "nmi", NULL))
pr_err("Couldn't register %s interrupt\n", "int7");
if (request_irq(IRQ_USER+127, sun3_vec255, 0, "vec255", NULL))
pr_err("Couldn't register %s interrupt\n", "vec255");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
geert uytterhoeven | geert uytterhoeven | 29 | 32.95% | 3 | 30.00% |
roman zippel | roman zippel | 21 | 23.86% | 1 | 10.00% |
pre-git | pre-git | 18 | 20.45% | 2 | 20.00% |
linus torvalds | linus torvalds | 16 | 18.18% | 1 | 10.00% |
thomas bogendoerfer | thomas bogendoerfer | 2 | 2.27% | 1 | 10.00% |
al viro | al viro | 1 | 1.14% | 1 | 10.00% |
sam creasey | sam creasey | 1 | 1.14% | 1 | 10.00% |
| Total | 88 | 100.00% | 10 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 223 | 55.47% | 2 | 11.11% |
geert uytterhoeven | geert uytterhoeven | 75 | 18.66% | 5 | 27.78% |
linus torvalds | linus torvalds | 46 | 11.44% | 2 | 11.11% |
roman zippel | roman zippel | 29 | 7.21% | 1 | 5.56% |
thomas bogendoerfer | thomas bogendoerfer | 12 | 2.99% | 1 | 5.56% |
martin schwidefsky | martin schwidefsky | 7 | 1.74% | 1 | 5.56% |
al viro | al viro | 6 | 1.49% | 2 | 11.11% |
torben hohn | torben hohn | 1 | 0.25% | 1 | 5.56% |
atsushi nemoto | atsushi nemoto | 1 | 0.25% | 1 | 5.56% |
adrian bunk | adrian bunk | 1 | 0.25% | 1 | 5.56% |
sam creasey | sam creasey | 1 | 0.25% | 1 | 5.56% |
| Total | 402 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.