URL
https://opencores.org/ocsvn/c0or1k/c0or1k/trunk
Subversion Repositories c0or1k
[/] [c0or1k/] [trunk/] [src/] [platform/] [pba9/] [irq.c] - Rev 6
Go to most recent revision | Compare with Previous | Blame | View Log
/* * Platform generic irq handling * * Copyright (C) 2007 Bahadir Balban */ #include <l4/generic/platform.h> #include <l4/generic/irq.h> #include <l4/generic/time.h> #include INC_PLAT(irq.h) #include INC_PLAT(platform.h) #include INC_ARCH(exception.h) #include <l4/lib/bit.h> #include <l4/drivers/irq/gic/gic.h> #include <l4/platform/realview/irq.h> extern struct gic_data gic_data[IRQ_CHIPS_MAX]; struct irq_chip irq_chip_array[IRQ_CHIPS_MAX] = { [0] = { .name = "VX-A9 GIC", .level = 0, .cascade = IRQ_NIL, .start = 0, .end = IRQ_OFFSET + IRQS_MAX, .data = &gic_data[0], .ops = { .init = gic_dummy_init, .read_irq = gic_read_irq, .ack_and_mask = gic_ack_and_mask, .unmask = gic_unmask_irq, .set_cpu = gic_set_target, }, }, }; /* * Built-in irq handlers initialised at compile time. * Else register with register_irq() */ struct irq_desc irq_desc_array[IRQS_MAX] = { [IRQ_TIMER0] = { .name = "Timer0", .chip = &irq_chip_array[0], .handler = platform_timer_handler, }, [IRQ_TIMER1] = { .name = "Timer1", .chip = &irq_chip_array[0], .handler = platform_timer_user_handler, }, [IRQ_KEYBOARD0] = { .name = "Keyboard", .chip = &irq_chip_array[0], .handler = platform_keyboard_user_handler, }, [IRQ_MOUSE0] = { .name = "Mouse", .chip = &irq_chip_array[0], .handler = platform_mouse_user_handler, }, };
Go to most recent revision | Compare with Previous | Blame | View Log