aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
desc netx_io_desc[] __initdata = { { .virtual = NETX_IO_VIRT, .pfn = __phys_to_pfn(NETX_IO_PHYS), .length = NETX_IO_SIZE, .type = MT_DEVICE } }; void __init netx_map_io(void) { iotable_init(netx_io_desc, ARRAY_SIZE(netx_io_desc)); } static struct resource netx_rtc_resources[] = { [0] = { .start = 0x00101200, .end = 0x00101220, .flags = IORESOURCE_MEM, }, }; static struct platform_device netx_rtc_device = { .name = "netx-rtc", .id = 0, .num_resources = ARRAY_SIZE(netx_rtc_resources), .resource = netx_rtc_resources, }; static struct platform_device *devices[] __initdata = { &netx_rtc_device, }; #if 0 #define DEBUG_IRQ(fmt...) printk(fmt) #else #define DEBUG_IRQ(fmt...) while (0) {} #endif static void netx_hif_demux_handler(unsigned int irq_unused, struct irq_desc *desc) { unsigned int irq = NETX_IRQ_HIF_CHAINED(0); unsigned int stat; stat = ((readl(NETX_DPMAS_INT_EN) & readl(NETX_DPMAS_INT_STAT)) >> 24) & 0x1f; desc = irq_desc + NETX_IRQ_HIF_CHAINED(0); while (stat) { if (stat & 1) { DEBUG_IRQ("handling irq %d\n", irq); desc_handle_irq(irq, desc); } irq++; desc++; stat >>= 1; } } static int netx_hif_irq_type(unsigned int _irq, unsigned int type) {