pic.c (b27df67248d3ae61d7814f18e363954254935090) pic.c (40d50cf7ca956183f3a573bc21082e1c7d04fa7b)
1/*
2 * Support for the interrupt controllers found on Power Macintosh,
3 * currently Apple's "Grand Central" interrupt controller in all
4 * it's incarnations. OpenPIC support used on newer machines is
5 * in a separate file
6 *
7 * Copyright (C) 1997 Paul Mackerras (paulus@samba.org)
8 * Copyright (C) 2005 Benjamin Herrenschmidt (benh@kernel.crashing.org)

--- 289 unchanged lines hidden (view full) ---

298 if (level)
299 desc->status |= IRQ_LEVEL;
300 set_irq_chip_and_handler(virq, &pmac_pic, level ?
301 handle_level_irq : handle_edge_irq);
302 return 0;
303}
304
305static int pmac_pic_host_xlate(struct irq_host *h, struct device_node *ct,
1/*
2 * Support for the interrupt controllers found on Power Macintosh,
3 * currently Apple's "Grand Central" interrupt controller in all
4 * it's incarnations. OpenPIC support used on newer machines is
5 * in a separate file
6 *
7 * Copyright (C) 1997 Paul Mackerras (paulus@samba.org)
8 * Copyright (C) 2005 Benjamin Herrenschmidt (benh@kernel.crashing.org)

--- 289 unchanged lines hidden (view full) ---

298 if (level)
299 desc->status |= IRQ_LEVEL;
300 set_irq_chip_and_handler(virq, &pmac_pic, level ?
301 handle_level_irq : handle_edge_irq);
302 return 0;
303}
304
305static int pmac_pic_host_xlate(struct irq_host *h, struct device_node *ct,
306 u32 *intspec, unsigned int intsize,
306 const u32 *intspec, unsigned int intsize,
307 irq_hw_number_t *out_hwirq,
308 unsigned int *out_flags)
309
310{
311 *out_flags = IRQ_TYPE_NONE;
312 *out_hwirq = *intspec;
313 return 0;
314}

--- 372 unchanged lines hidden ---
307 irq_hw_number_t *out_hwirq,
308 unsigned int *out_flags)
309
310{
311 *out_flags = IRQ_TYPE_NONE;
312 *out_hwirq = *intspec;
313 return 0;
314}

--- 372 unchanged lines hidden ---