You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[ARM] Remove compatibility layer for ARM irqs
set_irq_chipdata -> set_irq_chip_data get_irq_chipdata -> get_irq_chip_data do_level_IRQ -> handle_level_irq do_edge_IRQ -> handle_edge_irq do_simple_IRQ -> handle_simple_irq irqdesc -> irq_desc irqchip -> irq_chip Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
127e477e0c
commit
10dd5ce28d
@@ -160,7 +160,7 @@ void __init gic_dist_init(void __iomem *base)
|
||||
*/
|
||||
for (i = 29; i < max_irq; i++) {
|
||||
set_irq_chip(i, &gic_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
|
||||
+42
-42
@@ -163,11 +163,11 @@ static struct locomo_dev_info locomo_devices[] = {
|
||||
#define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT)
|
||||
#define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR)
|
||||
|
||||
static void locomo_handler(unsigned int irq, struct irqdesc *desc)
|
||||
static void locomo_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
int req, i;
|
||||
struct irqdesc *d;
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
struct irq_desc *d;
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
|
||||
/* Acknowledge the parent IRQ */
|
||||
desc->chip->ack(irq);
|
||||
@@ -194,7 +194,7 @@ static void locomo_ack_irq(unsigned int irq)
|
||||
|
||||
static void locomo_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_ICR);
|
||||
r &= ~(0x0010 << (irq - LOCOMO_IRQ_START));
|
||||
@@ -203,7 +203,7 @@ static void locomo_mask_irq(unsigned int irq)
|
||||
|
||||
static void locomo_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_ICR);
|
||||
r |= (0x0010 << (irq - LOCOMO_IRQ_START));
|
||||
@@ -217,10 +217,10 @@ static struct irq_chip locomo_chip = {
|
||||
.unmask = locomo_unmask_irq,
|
||||
};
|
||||
|
||||
static void locomo_key_handler(unsigned int irq, struct irqdesc *desc)
|
||||
static void locomo_key_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
struct irqdesc *d;
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
struct irq_desc *d;
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
|
||||
if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) {
|
||||
d = irq_desc + LOCOMO_IRQ_KEY_START;
|
||||
@@ -230,7 +230,7 @@ static void locomo_key_handler(unsigned int irq, struct irqdesc *desc)
|
||||
|
||||
static void locomo_key_ack_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC);
|
||||
r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START));
|
||||
@@ -239,7 +239,7 @@ static void locomo_key_ack_irq(unsigned int irq)
|
||||
|
||||
static void locomo_key_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC);
|
||||
r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START));
|
||||
@@ -248,7 +248,7 @@ static void locomo_key_mask_irq(unsigned int irq)
|
||||
|
||||
static void locomo_key_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC);
|
||||
r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START));
|
||||
@@ -262,11 +262,11 @@ static struct irq_chip locomo_key_chip = {
|
||||
.unmask = locomo_key_unmask_irq,
|
||||
};
|
||||
|
||||
static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc)
|
||||
static void locomo_gpio_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
int req, i;
|
||||
struct irqdesc *d;
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
struct irq_desc *d;
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
|
||||
req = locomo_readl(mapbase + LOCOMO_GIR) &
|
||||
locomo_readl(mapbase + LOCOMO_GPD) &
|
||||
@@ -285,7 +285,7 @@ static void locomo_gpio_handler(unsigned int irq, struct irqdesc *desc)
|
||||
|
||||
static void locomo_gpio_ack_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_GWE);
|
||||
r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START));
|
||||
@@ -302,7 +302,7 @@ static void locomo_gpio_ack_irq(unsigned int irq)
|
||||
|
||||
static void locomo_gpio_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_GIE);
|
||||
r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START));
|
||||
@@ -311,7 +311,7 @@ static void locomo_gpio_mask_irq(unsigned int irq)
|
||||
|
||||
static void locomo_gpio_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_GIE);
|
||||
r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START));
|
||||
@@ -325,10 +325,10 @@ static struct irq_chip locomo_gpio_chip = {
|
||||
.unmask = locomo_gpio_unmask_irq,
|
||||
};
|
||||
|
||||
static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc)
|
||||
static void locomo_lt_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
struct irqdesc *d;
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
struct irq_desc *d;
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
|
||||
if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) {
|
||||
d = irq_desc + LOCOMO_IRQ_LT_START;
|
||||
@@ -338,7 +338,7 @@ static void locomo_lt_handler(unsigned int irq, struct irqdesc *desc)
|
||||
|
||||
static void locomo_lt_ack_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_LTINT);
|
||||
r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START));
|
||||
@@ -347,7 +347,7 @@ static void locomo_lt_ack_irq(unsigned int irq)
|
||||
|
||||
static void locomo_lt_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_LTINT);
|
||||
r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START));
|
||||
@@ -356,7 +356,7 @@ static void locomo_lt_mask_irq(unsigned int irq)
|
||||
|
||||
static void locomo_lt_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_LTINT);
|
||||
r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START));
|
||||
@@ -370,11 +370,11 @@ static struct irq_chip locomo_lt_chip = {
|
||||
.unmask = locomo_lt_unmask_irq,
|
||||
};
|
||||
|
||||
static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc)
|
||||
static void locomo_spi_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
int req, i;
|
||||
struct irqdesc *d;
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
struct irq_desc *d;
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
|
||||
req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F;
|
||||
if (req) {
|
||||
@@ -391,7 +391,7 @@ static void locomo_spi_handler(unsigned int irq, struct irqdesc *desc)
|
||||
|
||||
static void locomo_spi_ack_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE);
|
||||
r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START));
|
||||
@@ -408,7 +408,7 @@ static void locomo_spi_ack_irq(unsigned int irq)
|
||||
|
||||
static void locomo_spi_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE);
|
||||
r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START));
|
||||
@@ -417,7 +417,7 @@ static void locomo_spi_mask_irq(unsigned int irq)
|
||||
|
||||
static void locomo_spi_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned int r;
|
||||
r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE);
|
||||
r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START));
|
||||
@@ -440,55 +440,55 @@ static void locomo_setup_irq(struct locomo *lchip)
|
||||
* Install handler for IRQ_LOCOMO_HW.
|
||||
*/
|
||||
set_irq_type(lchip->irq, IRQT_FALLING);
|
||||
set_irq_chipdata(lchip->irq, irqbase);
|
||||
set_irq_chip_data(lchip->irq, irqbase);
|
||||
set_irq_chained_handler(lchip->irq, locomo_handler);
|
||||
|
||||
/* Install handlers for IRQ_LOCOMO_*_BASE */
|
||||
set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip);
|
||||
set_irq_chipdata(IRQ_LOCOMO_KEY_BASE, irqbase);
|
||||
set_irq_chip_data(IRQ_LOCOMO_KEY_BASE, irqbase);
|
||||
set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler);
|
||||
set_irq_flags(IRQ_LOCOMO_KEY_BASE, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip);
|
||||
set_irq_chipdata(IRQ_LOCOMO_GPIO_BASE, irqbase);
|
||||
set_irq_chip_data(IRQ_LOCOMO_GPIO_BASE, irqbase);
|
||||
set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler);
|
||||
set_irq_flags(IRQ_LOCOMO_GPIO_BASE, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip);
|
||||
set_irq_chipdata(IRQ_LOCOMO_LT_BASE, irqbase);
|
||||
set_irq_chip_data(IRQ_LOCOMO_LT_BASE, irqbase);
|
||||
set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler);
|
||||
set_irq_flags(IRQ_LOCOMO_LT_BASE, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip);
|
||||
set_irq_chipdata(IRQ_LOCOMO_SPI_BASE, irqbase);
|
||||
set_irq_chip_data(IRQ_LOCOMO_SPI_BASE, irqbase);
|
||||
set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler);
|
||||
set_irq_flags(IRQ_LOCOMO_SPI_BASE, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
/* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */
|
||||
set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip);
|
||||
set_irq_chipdata(LOCOMO_IRQ_KEY_START, irqbase);
|
||||
set_irq_handler(LOCOMO_IRQ_KEY_START, do_edge_IRQ);
|
||||
set_irq_chip_data(LOCOMO_IRQ_KEY_START, irqbase);
|
||||
set_irq_handler(LOCOMO_IRQ_KEY_START, handle_edge_irq);
|
||||
set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
/* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */
|
||||
for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) {
|
||||
set_irq_chip(irq, &locomo_gpio_chip);
|
||||
set_irq_chipdata(irq, irqbase);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_chip_data(irq, irqbase);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
/* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */
|
||||
set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip);
|
||||
set_irq_chipdata(LOCOMO_IRQ_LT_START, irqbase);
|
||||
set_irq_handler(LOCOMO_IRQ_LT_START, do_edge_IRQ);
|
||||
set_irq_chip_data(LOCOMO_IRQ_LT_START, irqbase);
|
||||
set_irq_handler(LOCOMO_IRQ_LT_START, handle_edge_irq);
|
||||
set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
/* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */
|
||||
for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 3; irq++) {
|
||||
set_irq_chip(irq, &locomo_spi_chip);
|
||||
set_irq_chipdata(irq, irqbase);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_chip_data(irq, irqbase);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
}
|
||||
|
||||
+15
-15
@@ -147,7 +147,7 @@ void __init sa1111_adjust_zones(int node, unsigned long *size, unsigned long *ho
|
||||
* will call us again if there are more interrupts to process.
|
||||
*/
|
||||
static void
|
||||
sa1111_irq_handler(unsigned int irq, struct irqdesc *desc)
|
||||
sa1111_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int stat0, stat1, i;
|
||||
void __iomem *base = get_irq_data(irq);
|
||||
@@ -187,7 +187,7 @@ static void sa1111_ack_irq(unsigned int irq)
|
||||
|
||||
static void sa1111_mask_lowirq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ie0;
|
||||
|
||||
ie0 = sa1111_readl(mapbase + SA1111_INTEN0);
|
||||
@@ -197,7 +197,7 @@ static void sa1111_mask_lowirq(unsigned int irq)
|
||||
|
||||
static void sa1111_unmask_lowirq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ie0;
|
||||
|
||||
ie0 = sa1111_readl(mapbase + SA1111_INTEN0);
|
||||
@@ -215,7 +215,7 @@ static void sa1111_unmask_lowirq(unsigned int irq)
|
||||
static int sa1111_retrigger_lowirq(unsigned int irq)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_LO(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ip0;
|
||||
int i;
|
||||
|
||||
@@ -236,7 +236,7 @@ static int sa1111_retrigger_lowirq(unsigned int irq)
|
||||
static int sa1111_type_lowirq(unsigned int irq, unsigned int flags)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_LO(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ip0;
|
||||
|
||||
if (flags == IRQT_PROBE)
|
||||
@@ -259,7 +259,7 @@ static int sa1111_type_lowirq(unsigned int irq, unsigned int flags)
|
||||
static int sa1111_wake_lowirq(unsigned int irq, unsigned int on)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_LO(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long we0;
|
||||
|
||||
we0 = sa1111_readl(mapbase + SA1111_WAKEEN0);
|
||||
@@ -284,7 +284,7 @@ static struct irq_chip sa1111_low_chip = {
|
||||
|
||||
static void sa1111_mask_highirq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ie1;
|
||||
|
||||
ie1 = sa1111_readl(mapbase + SA1111_INTEN1);
|
||||
@@ -294,7 +294,7 @@ static void sa1111_mask_highirq(unsigned int irq)
|
||||
|
||||
static void sa1111_unmask_highirq(unsigned int irq)
|
||||
{
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ie1;
|
||||
|
||||
ie1 = sa1111_readl(mapbase + SA1111_INTEN1);
|
||||
@@ -312,7 +312,7 @@ static void sa1111_unmask_highirq(unsigned int irq)
|
||||
static int sa1111_retrigger_highirq(unsigned int irq)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_HI(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ip1;
|
||||
int i;
|
||||
|
||||
@@ -333,7 +333,7 @@ static int sa1111_retrigger_highirq(unsigned int irq)
|
||||
static int sa1111_type_highirq(unsigned int irq, unsigned int flags)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_HI(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long ip1;
|
||||
|
||||
if (flags == IRQT_PROBE)
|
||||
@@ -356,7 +356,7 @@ static int sa1111_type_highirq(unsigned int irq, unsigned int flags)
|
||||
static int sa1111_wake_highirq(unsigned int irq, unsigned int on)
|
||||
{
|
||||
unsigned int mask = SA1111_IRQMASK_HI(irq);
|
||||
void __iomem *mapbase = get_irq_chipdata(irq);
|
||||
void __iomem *mapbase = get_irq_chip_data(irq);
|
||||
unsigned long we1;
|
||||
|
||||
we1 = sa1111_readl(mapbase + SA1111_WAKEEN1);
|
||||
@@ -410,15 +410,15 @@ static void sa1111_setup_irq(struct sa1111 *sachip)
|
||||
|
||||
for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) {
|
||||
set_irq_chip(irq, &sa1111_low_chip);
|
||||
set_irq_chipdata(irq, irqbase);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_chip_data(irq, irqbase);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) {
|
||||
set_irq_chip(irq, &sa1111_high_chip);
|
||||
set_irq_chipdata(irq, irqbase);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_chip_data(irq, irqbase);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,14 +27,14 @@
|
||||
|
||||
static void vic_mask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *base = get_irq_chipdata(irq);
|
||||
void __iomem *base = get_irq_chip_data(irq);
|
||||
irq &= 31;
|
||||
writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
|
||||
}
|
||||
|
||||
static void vic_unmask_irq(unsigned int irq)
|
||||
{
|
||||
void __iomem *base = get_irq_chipdata(irq);
|
||||
void __iomem *base = get_irq_chip_data(irq);
|
||||
irq &= 31;
|
||||
writel(1 << irq, base + VIC_INT_ENABLE);
|
||||
}
|
||||
@@ -88,10 +88,10 @@ void __init vic_init(void __iomem *base, unsigned int irq_start,
|
||||
unsigned int irq = irq_start + i;
|
||||
|
||||
set_irq_chip(irq, &vic_chip);
|
||||
set_irq_chipdata(irq, base);
|
||||
set_irq_chip_data(irq, base);
|
||||
|
||||
if (vic_sources & (1 << i)) {
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -529,7 +529,7 @@ static void ecard_dump_irq_state(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void ecard_check_lockup(struct irqdesc *desc)
|
||||
static void ecard_check_lockup(struct irq_desc *desc)
|
||||
{
|
||||
static unsigned long last;
|
||||
static int lockup;
|
||||
@@ -567,7 +567,7 @@ static void ecard_check_lockup(struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
ecard_irq_handler(unsigned int irq, struct irqdesc *desc)
|
||||
ecard_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
ecard_t *ec;
|
||||
int called = 0;
|
||||
@@ -585,7 +585,7 @@ ecard_irq_handler(unsigned int irq, struct irqdesc *desc)
|
||||
pending = ecard_default_ops.irqpending(ec);
|
||||
|
||||
if (pending) {
|
||||
struct irqdesc *d = irq_desc + ec->irq;
|
||||
struct irq_desc *d = irq_desc + ec->irq;
|
||||
desc_handle_irq(ec->irq, d);
|
||||
called ++;
|
||||
}
|
||||
@@ -609,7 +609,7 @@ static unsigned char first_set[] =
|
||||
};
|
||||
|
||||
static void
|
||||
ecard_irqexp_handler(unsigned int irq, struct irqdesc *desc)
|
||||
ecard_irqexp_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
const unsigned int statusmask = 15;
|
||||
unsigned int status;
|
||||
@@ -1022,7 +1022,7 @@ ecard_probe(int slot, card_type_t type)
|
||||
if (slot < 8) {
|
||||
ec->irq = 32 + slot;
|
||||
set_irq_chip(ec->irq, &ecard_chip);
|
||||
set_irq_handler(ec->irq, do_level_IRQ);
|
||||
set_irq_handler(ec->irq, handle_level_irq);
|
||||
set_irq_flags(ec->irq, IRQF_VALID);
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ static struct irq_desc bad_irq_desc = {
|
||||
asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs)
|
||||
{
|
||||
struct pt_regs *old_regs = set_irq_regs(regs);
|
||||
struct irqdesc *desc = irq_desc + irq;
|
||||
struct irq_desc *desc = irq_desc + irq;
|
||||
|
||||
/*
|
||||
* Some hardware gives randomly wrong interrupts. Rather
|
||||
@@ -134,7 +134,7 @@ asmlinkage void asm_do_IRQ(unsigned int irq, struct pt_regs *regs)
|
||||
|
||||
void set_irq_flags(unsigned int irq, unsigned int iflags)
|
||||
{
|
||||
struct irqdesc *desc;
|
||||
struct irq_desc *desc;
|
||||
unsigned long flags;
|
||||
|
||||
if (irq >= NR_IRQS) {
|
||||
@@ -171,7 +171,7 @@ void __init init_IRQ(void)
|
||||
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
|
||||
static void route_irq(struct irqdesc *desc, unsigned int irq, unsigned int cpu)
|
||||
static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu)
|
||||
{
|
||||
pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu);
|
||||
|
||||
@@ -190,7 +190,7 @@ void migrate_irqs(void)
|
||||
unsigned int i, cpu = smp_processor_id();
|
||||
|
||||
for (i = 0; i < NR_IRQS; i++) {
|
||||
struct irqdesc *desc = irq_desc + i;
|
||||
struct irq_desc *desc = irq_desc + i;
|
||||
|
||||
if (desc->cpu == cpu) {
|
||||
unsigned int newcpu = any_online_cpu(desc->affinity);
|
||||
|
||||
@@ -82,7 +82,7 @@ static void aaec2000_int_unmask(unsigned int irq)
|
||||
IRQ_INTENS |= (1 << irq);
|
||||
}
|
||||
|
||||
static struct irqchip aaec2000_irq_chip = {
|
||||
static struct irq_chip aaec2000_irq_chip = {
|
||||
.ack = aaec2000_int_ack,
|
||||
.mask = aaec2000_int_mask,
|
||||
.unmask = aaec2000_int_unmask,
|
||||
@@ -93,7 +93,7 @@ void __init aaec2000_init_irq(void)
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < NR_IRQS; i++) {
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_chip(i, &aaec2000_irq_chip);
|
||||
set_irq_flags(i, IRQF_VALID);
|
||||
}
|
||||
|
||||
@@ -332,10 +332,10 @@ static struct irq_chip gpio_irqchip = {
|
||||
.set_wake = gpio_irq_set_wake,
|
||||
};
|
||||
|
||||
static void gpio_irq_handler(unsigned irq, struct irqdesc *desc)
|
||||
static void gpio_irq_handler(unsigned irq, struct irq_desc *desc)
|
||||
{
|
||||
unsigned pin;
|
||||
struct irqdesc *gpio;
|
||||
struct irq_desc *gpio;
|
||||
void __iomem *pio;
|
||||
u32 isr;
|
||||
|
||||
@@ -396,7 +396,7 @@ void __init at91_gpio_irq_setup(void)
|
||||
__raw_writel(~0, controller + PIO_IDR);
|
||||
|
||||
set_irq_data(id, (void *) pin);
|
||||
set_irq_chipdata(id, controller);
|
||||
set_irq_chip_data(id, controller);
|
||||
|
||||
for (i = 0; i < 32; i++, pin++) {
|
||||
/*
|
||||
@@ -404,7 +404,7 @@ void __init at91_gpio_irq_setup(void)
|
||||
* shorter, and the AIC handles interupts sanely.
|
||||
*/
|
||||
set_irq_chip(pin, &gpio_irqchip);
|
||||
set_irq_handler(pin, do_simple_IRQ);
|
||||
set_irq_handler(pin, handle_simple_irq);
|
||||
set_irq_flags(pin, IRQF_VALID);
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ void __init at91_aic_init(unsigned int priority[NR_AIC_IRQS])
|
||||
at91_sys_write(AT91_AIC_SMR(i), AT91_AIC_SRCTYPE_LOW | priority[i]);
|
||||
|
||||
set_irq_chip(i, &at91_aic_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
|
||||
/* Perform 8 End Of Interrupt Command to make sure AIC will not Lock out nIRQ */
|
||||
|
||||
@@ -63,7 +63,7 @@ static void int1_unmask(unsigned int irq)
|
||||
clps_writel(intmr1, INTMR1);
|
||||
}
|
||||
|
||||
static struct irqchip int1_chip = {
|
||||
static struct irq_chip int1_chip = {
|
||||
.ack = int1_ack,
|
||||
.mask = int1_mask,
|
||||
.unmask = int1_unmask,
|
||||
@@ -100,7 +100,7 @@ static void int2_unmask(unsigned int irq)
|
||||
clps_writel(intmr2, INTMR2);
|
||||
}
|
||||
|
||||
static struct irqchip int2_chip = {
|
||||
static struct irq_chip int2_chip = {
|
||||
.ack = int2_ack,
|
||||
.mask = int2_mask,
|
||||
.unmask = int2_unmask,
|
||||
@@ -112,12 +112,12 @@ void __init clps711x_init_irq(void)
|
||||
|
||||
for (i = 0; i < NR_IRQS; i++) {
|
||||
if (INT1_IRQS & (1 << i)) {
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_chip(i, &int1_chip);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
if (INT2_IRQS & (1 << i)) {
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_chip(i, &int2_chip);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ static void cl7500_unmask_irq_a(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_IRQMASKA);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_a_chip = {
|
||||
static struct irq_chip clps7500_a_chip = {
|
||||
.ack = cl7500_ack_irq_a,
|
||||
.mask = cl7500_mask_irq_a,
|
||||
.unmask = cl7500_unmask_irq_a,
|
||||
@@ -81,7 +81,7 @@ static void cl7500_unmask_irq_b(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_IRQMASKB);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_b_chip = {
|
||||
static struct irq_chip clps7500_b_chip = {
|
||||
.ack = cl7500_mask_irq_b,
|
||||
.mask = cl7500_mask_irq_b,
|
||||
.unmask = cl7500_unmask_irq_b,
|
||||
@@ -105,7 +105,7 @@ static void cl7500_unmask_irq_c(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_IRQMASKC);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_c_chip = {
|
||||
static struct irq_chip clps7500_c_chip = {
|
||||
.ack = cl7500_mask_irq_c,
|
||||
.mask = cl7500_mask_irq_c,
|
||||
.unmask = cl7500_unmask_irq_c,
|
||||
@@ -129,7 +129,7 @@ static void cl7500_unmask_irq_d(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_IRQMASKD);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_d_chip = {
|
||||
static struct irq_chip clps7500_d_chip = {
|
||||
.ack = cl7500_mask_irq_d,
|
||||
.mask = cl7500_mask_irq_d,
|
||||
.unmask = cl7500_unmask_irq_d,
|
||||
@@ -153,7 +153,7 @@ static void cl7500_unmask_irq_dma(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_DMAMASK);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_dma_chip = {
|
||||
static struct irq_chip clps7500_dma_chip = {
|
||||
.ack = cl7500_mask_irq_dma,
|
||||
.mask = cl7500_mask_irq_dma,
|
||||
.unmask = cl7500_unmask_irq_dma,
|
||||
@@ -177,7 +177,7 @@ static void cl7500_unmask_irq_fiq(unsigned int irq)
|
||||
iomd_writeb(val | mask, IOMD_FIQMASK);
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_fiq_chip = {
|
||||
static struct irq_chip clps7500_fiq_chip = {
|
||||
.ack = cl7500_mask_irq_fiq,
|
||||
.mask = cl7500_mask_irq_fiq,
|
||||
.unmask = cl7500_unmask_irq_fiq,
|
||||
@@ -187,7 +187,7 @@ static void cl7500_no_action(unsigned int irq)
|
||||
{
|
||||
}
|
||||
|
||||
static struct irqchip clps7500_no_chip = {
|
||||
static struct irq_chip clps7500_no_chip = {
|
||||
.ack = cl7500_no_action,
|
||||
.mask = cl7500_no_action,
|
||||
.unmask = cl7500_no_action,
|
||||
@@ -214,43 +214,43 @@ static void __init clps7500_init_irq(void)
|
||||
switch (irq) {
|
||||
case 0 ... 7:
|
||||
set_irq_chip(irq, &clps7500_a_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 8 ... 15:
|
||||
set_irq_chip(irq, &clps7500_b_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 16 ... 22:
|
||||
set_irq_chip(irq, &clps7500_dma_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 24 ... 31:
|
||||
set_irq_chip(irq, &clps7500_c_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 40 ... 47:
|
||||
set_irq_chip(irq, &clps7500_d_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 48 ... 55:
|
||||
set_irq_chip(irq, &clps7500_no_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
|
||||
case 64 ... 72:
|
||||
set_irq_chip(irq, &clps7500_fiq_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, flags);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ static void ebsa110_unmask_irq(unsigned int irq)
|
||||
__raw_writeb(1 << irq, IRQ_MSET);
|
||||
}
|
||||
|
||||
static struct irqchip ebsa110_irq_chip = {
|
||||
static struct irq_chip ebsa110_irq_chip = {
|
||||
.ack = ebsa110_mask_irq,
|
||||
.mask = ebsa110_mask_irq,
|
||||
.unmask = ebsa110_unmask_irq,
|
||||
@@ -67,7 +67,7 @@ static void __init ebsa110_init_irq(void)
|
||||
|
||||
for (irq = 0; irq < NR_IRQS; irq++) {
|
||||
set_irq_chip(irq, &ebsa110_irq_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ EXPORT_SYMBOL(gpio_line_set);
|
||||
* EP93xx IRQ handling
|
||||
*************************************************************************/
|
||||
static void ep93xx_gpio_ab_irq_handler(unsigned int irq,
|
||||
struct irqdesc *desc)
|
||||
struct irq_desc *desc)
|
||||
{
|
||||
unsigned char status;
|
||||
int i;
|
||||
@@ -335,7 +335,7 @@ static int ep93xx_gpio_ab_irq_type(unsigned int irq, unsigned int type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct irqchip ep93xx_gpio_ab_irq_chip = {
|
||||
static struct irq_chip ep93xx_gpio_ab_irq_chip = {
|
||||
.ack = ep93xx_gpio_ab_irq_mask_ack,
|
||||
.mask = ep93xx_gpio_ab_irq_mask,
|
||||
.unmask = ep93xx_gpio_ab_irq_unmask,
|
||||
@@ -352,7 +352,7 @@ void __init ep93xx_init_irq(void)
|
||||
|
||||
for (irq = IRQ_EP93XX_GPIO(0) ; irq <= IRQ_EP93XX_GPIO(15); irq++) {
|
||||
set_irq_chip(irq, &ep93xx_gpio_ab_irq_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID);
|
||||
}
|
||||
set_irq_chained_handler(IRQ_EP93XX_GPIO_AB, ep93xx_gpio_ab_irq_handler);
|
||||
|
||||
@@ -78,7 +78,7 @@ static void fb_unmask_irq(unsigned int irq)
|
||||
*CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)];
|
||||
}
|
||||
|
||||
static struct irqchip fb_chip = {
|
||||
static struct irq_chip fb_chip = {
|
||||
.ack = fb_mask_irq,
|
||||
.mask = fb_mask_irq,
|
||||
.unmask = fb_unmask_irq,
|
||||
@@ -96,7 +96,7 @@ static void __init __fb_init_irq(void)
|
||||
|
||||
for (irq = _DC21285_IRQ(0); irq < _DC21285_IRQ(20); irq++) {
|
||||
set_irq_chip(irq, &fb_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ static void isa_unmask_pic_lo_irq(unsigned int irq)
|
||||
outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO);
|
||||
}
|
||||
|
||||
static struct irqchip isa_lo_chip = {
|
||||
static struct irq_chip isa_lo_chip = {
|
||||
.ack = isa_ack_pic_lo_irq,
|
||||
.mask = isa_mask_pic_lo_irq,
|
||||
.unmask = isa_unmask_pic_lo_irq,
|
||||
@@ -78,14 +78,14 @@ static void isa_unmask_pic_hi_irq(unsigned int irq)
|
||||
outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI);
|
||||
}
|
||||
|
||||
static struct irqchip isa_hi_chip = {
|
||||
static struct irq_chip isa_hi_chip = {
|
||||
.ack = isa_ack_pic_hi_irq,
|
||||
.mask = isa_mask_pic_hi_irq,
|
||||
.unmask = isa_unmask_pic_hi_irq,
|
||||
};
|
||||
|
||||
static void
|
||||
isa_irq_handler(unsigned int irq, struct irqdesc *desc)
|
||||
isa_irq_handler(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int isa_irq = *(unsigned char *)PCIIACK_BASE;
|
||||
|
||||
@@ -150,13 +150,13 @@ void __init isa_init_irq(unsigned int host_irq)
|
||||
if (host_irq != (unsigned int)-1) {
|
||||
for (irq = _ISA_IRQ(0); irq < _ISA_IRQ(8); irq++) {
|
||||
set_irq_chip(irq, &isa_lo_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
for (irq = _ISA_IRQ(8); irq < _ISA_IRQ(16); irq++) {
|
||||
set_irq_chip(irq, &isa_hi_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ static void inline unmask_gpio_irq(u32 irq)
|
||||
|
||||
static void
|
||||
h720x_gpio_handler(unsigned int mask, unsigned int irq,
|
||||
struct irqdesc *desc)
|
||||
struct irq_desc *desc)
|
||||
{
|
||||
IRQDBG("%s irq: %d\n",__FUNCTION__,irq);
|
||||
desc = irq_desc + irq;
|
||||
@@ -117,7 +117,7 @@ h720x_gpio_handler(unsigned int mask, unsigned int irq,
|
||||
}
|
||||
|
||||
static void
|
||||
h720x_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h720x_gpioa_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -128,7 +128,7 @@ h720x_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
h720x_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h720x_gpiob_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
mask = CPU_REG(GPIO_B_VIRT,GPIO_STAT);
|
||||
@@ -138,7 +138,7 @@ h720x_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
h720x_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h720x_gpioc_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -149,7 +149,7 @@ h720x_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
h720x_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h720x_gpiod_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -161,7 +161,7 @@ h720x_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
|
||||
#ifdef CONFIG_CPU_H7202
|
||||
static void
|
||||
h720x_gpioe_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h720x_gpioe_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -172,13 +172,13 @@ h720x_gpioe_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
#endif
|
||||
|
||||
static struct irqchip h720x_global_chip = {
|
||||
static struct irq_chip h720x_global_chip = {
|
||||
.ack = mask_global_irq,
|
||||
.mask = mask_global_irq,
|
||||
.unmask = unmask_global_irq,
|
||||
};
|
||||
|
||||
static struct irqchip h720x_gpio_chip = {
|
||||
static struct irq_chip h720x_gpio_chip = {
|
||||
.ack = ack_gpio_irq,
|
||||
.mask = mask_gpio_irq,
|
||||
.unmask = unmask_gpio_irq,
|
||||
@@ -203,14 +203,14 @@ void __init h720x_init_irq (void)
|
||||
/* Initialize global IRQ's, fast path */
|
||||
for (irq = 0; irq < NR_GLBL_IRQS; irq++) {
|
||||
set_irq_chip(irq, &h720x_global_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
/* Initialize multiplexed IRQ's, slow path */
|
||||
for (irq = IRQ_CHAINED_GPIOA(0) ; irq <= IRQ_CHAINED_GPIOD(31); irq++) {
|
||||
set_irq_chip(irq, &h720x_gpio_chip);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID );
|
||||
}
|
||||
set_irq_chained_handler(IRQ_GPIOA, h720x_gpioa_demux_handler);
|
||||
@@ -221,7 +221,7 @@ void __init h720x_init_irq (void)
|
||||
#ifdef CONFIG_CPU_H7202
|
||||
for (irq = IRQ_CHAINED_GPIOE(0) ; irq <= IRQ_CHAINED_GPIOE(31); irq++) {
|
||||
set_irq_chip(irq, &h720x_gpio_chip);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID );
|
||||
}
|
||||
set_irq_chained_handler(IRQ_GPIOE, h720x_gpioe_demux_handler);
|
||||
|
||||
@@ -106,7 +106,7 @@ static struct platform_device *devices[] __initdata = {
|
||||
* we have to handle all timer interrupts in one place.
|
||||
*/
|
||||
static void
|
||||
h7202_timerx_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
h7202_timerx_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -162,7 +162,7 @@ static void inline unmask_timerx_irq (u32 irq)
|
||||
CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit;
|
||||
}
|
||||
|
||||
static struct irqchip h7202_timerx_chip = {
|
||||
static struct irq_chip h7202_timerx_chip = {
|
||||
.ack = mask_timerx_irq,
|
||||
.mask = mask_timerx_irq,
|
||||
.unmask = unmask_timerx_irq,
|
||||
@@ -202,7 +202,7 @@ void __init h7202_init_irq (void)
|
||||
irq < IRQ_CHAINED_TIMERX(NR_TIMERX_IRQS); irq++) {
|
||||
mask_timerx_irq(irq);
|
||||
set_irq_chip(irq, &h7202_timerx_chip);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID );
|
||||
}
|
||||
set_irq_chained_handler(IRQ_TIMERX, h7202_timerx_demux_handler);
|
||||
|
||||
@@ -146,7 +146,7 @@ imx_gpio_unmask_irq(unsigned int irq)
|
||||
|
||||
static void
|
||||
imx_gpio_handler(unsigned int mask, unsigned int irq,
|
||||
struct irqdesc *desc)
|
||||
struct irq_desc *desc)
|
||||
{
|
||||
desc = irq_desc + irq;
|
||||
while (mask) {
|
||||
@@ -161,7 +161,7 @@ imx_gpio_handler(unsigned int mask, unsigned int irq,
|
||||
}
|
||||
|
||||
static void
|
||||
imx_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
imx_gpioa_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -171,7 +171,7 @@ imx_gpioa_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
imx_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
imx_gpiob_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -181,7 +181,7 @@ imx_gpiob_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
imx_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
imx_gpioc_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -191,7 +191,7 @@ imx_gpioc_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
}
|
||||
|
||||
static void
|
||||
imx_gpiod_demux_handler(unsigned int irq_unused, struct irqdesc *desc)
|
||||
imx_gpiod_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
||||
{
|
||||
unsigned int mask, irq;
|
||||
|
||||
@@ -230,13 +230,13 @@ imx_init_irq(void)
|
||||
|
||||
for (irq = 0; irq < IMX_IRQS; irq++) {
|
||||
set_irq_chip(irq, &imx_internal_chip);
|
||||
set_irq_handler(irq, do_level_IRQ);
|
||||
set_irq_handler(irq, handle_level_irq);
|
||||
set_irq_flags(irq, IRQF_VALID);
|
||||
}
|
||||
|
||||
for (irq = IRQ_GPIOA(0); irq < IRQ_GPIOD(32); irq++) {
|
||||
set_irq_chip(irq, &imx_gpio_chip);
|
||||
set_irq_handler(irq, do_edge_IRQ);
|
||||
set_irq_handler(irq, handle_edge_irq);
|
||||
set_irq_flags(irq, IRQF_VALID);
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ static void __init ap_init_irq(void)
|
||||
for (i = 0; i < NR_IRQS; i++) {
|
||||
if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) {
|
||||
set_irq_chip(i, &sc_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ static struct irq_chip sic_chip = {
|
||||
};
|
||||
|
||||
static void
|
||||
sic_handle_irq(unsigned int irq, struct irqdesc *desc)
|
||||
sic_handle_irq(unsigned int irq, struct irq_desc *desc)
|
||||
{
|
||||
unsigned long status = sic_readl(INTCP_VA_SIC_BASE + IRQ_STATUS);
|
||||
|
||||
@@ -238,7 +238,7 @@ static void __init intcp_init_irq(void)
|
||||
if (i == 29)
|
||||
break;
|
||||
set_irq_chip(i, &pic_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ static void __init intcp_init_irq(void)
|
||||
|
||||
for (i = IRQ_CIC_START; i <= IRQ_CIC_END; i++) {
|
||||
set_irq_chip(i, &cic_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID);
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ static void __init intcp_init_irq(void)
|
||||
|
||||
for (i = IRQ_SIC_START; i <= IRQ_SIC_END; i++) {
|
||||
set_irq_chip(i, &sic_chip);
|
||||
set_irq_handler(i, do_level_IRQ);
|
||||
set_irq_handler(i, handle_level_irq);
|
||||
set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user