Commit 9a364da7 authored by Lennert Buytenhek's avatar Lennert Buytenhek

ARM: rpc: irq_data conversion.

Signed-off-by: default avatarLennert Buytenhek <buytenh@secretlab.ca>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent a3f4c927
...@@ -6,110 +6,110 @@ ...@@ -6,110 +6,110 @@
#include <asm/hardware/iomd.h> #include <asm/hardware/iomd.h>
#include <asm/irq.h> #include <asm/irq.h>
static void iomd_ack_irq_a(unsigned int irq) static void iomd_ack_irq_a(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << irq; mask = 1 << d->irq;
val = iomd_readb(IOMD_IRQMASKA); val = iomd_readb(IOMD_IRQMASKA);
iomd_writeb(val & ~mask, IOMD_IRQMASKA); iomd_writeb(val & ~mask, IOMD_IRQMASKA);
iomd_writeb(mask, IOMD_IRQCLRA); iomd_writeb(mask, IOMD_IRQCLRA);
} }
static void iomd_mask_irq_a(unsigned int irq) static void iomd_mask_irq_a(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << irq; mask = 1 << d->irq;
val = iomd_readb(IOMD_IRQMASKA); val = iomd_readb(IOMD_IRQMASKA);
iomd_writeb(val & ~mask, IOMD_IRQMASKA); iomd_writeb(val & ~mask, IOMD_IRQMASKA);
} }
static void iomd_unmask_irq_a(unsigned int irq) static void iomd_unmask_irq_a(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << irq; mask = 1 << d->irq;
val = iomd_readb(IOMD_IRQMASKA); val = iomd_readb(IOMD_IRQMASKA);
iomd_writeb(val | mask, IOMD_IRQMASKA); iomd_writeb(val | mask, IOMD_IRQMASKA);
} }
static struct irq_chip iomd_a_chip = { static struct irq_chip iomd_a_chip = {
.ack = iomd_ack_irq_a, .irq_ack = iomd_ack_irq_a,
.mask = iomd_mask_irq_a, .irq_mask = iomd_mask_irq_a,
.unmask = iomd_unmask_irq_a, .irq_unmask = iomd_unmask_irq_a,
}; };
static void iomd_mask_irq_b(unsigned int irq) static void iomd_mask_irq_b(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_IRQMASKB); val = iomd_readb(IOMD_IRQMASKB);
iomd_writeb(val & ~mask, IOMD_IRQMASKB); iomd_writeb(val & ~mask, IOMD_IRQMASKB);
} }
static void iomd_unmask_irq_b(unsigned int irq) static void iomd_unmask_irq_b(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_IRQMASKB); val = iomd_readb(IOMD_IRQMASKB);
iomd_writeb(val | mask, IOMD_IRQMASKB); iomd_writeb(val | mask, IOMD_IRQMASKB);
} }
static struct irq_chip iomd_b_chip = { static struct irq_chip iomd_b_chip = {
.ack = iomd_mask_irq_b, .irq_ack = iomd_mask_irq_b,
.mask = iomd_mask_irq_b, .irq_mask = iomd_mask_irq_b,
.unmask = iomd_unmask_irq_b, .irq_unmask = iomd_unmask_irq_b,
}; };
static void iomd_mask_irq_dma(unsigned int irq) static void iomd_mask_irq_dma(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_DMAMASK); val = iomd_readb(IOMD_DMAMASK);
iomd_writeb(val & ~mask, IOMD_DMAMASK); iomd_writeb(val & ~mask, IOMD_DMAMASK);
} }
static void iomd_unmask_irq_dma(unsigned int irq) static void iomd_unmask_irq_dma(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_DMAMASK); val = iomd_readb(IOMD_DMAMASK);
iomd_writeb(val | mask, IOMD_DMAMASK); iomd_writeb(val | mask, IOMD_DMAMASK);
} }
static struct irq_chip iomd_dma_chip = { static struct irq_chip iomd_dma_chip = {
.ack = iomd_mask_irq_dma, .irq_ack = iomd_mask_irq_dma,
.mask = iomd_mask_irq_dma, .irq_mask = iomd_mask_irq_dma,
.unmask = iomd_unmask_irq_dma, .irq_unmask = iomd_unmask_irq_dma,
}; };
static void iomd_mask_irq_fiq(unsigned int irq) static void iomd_mask_irq_fiq(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_FIQMASK); val = iomd_readb(IOMD_FIQMASK);
iomd_writeb(val & ~mask, IOMD_FIQMASK); iomd_writeb(val & ~mask, IOMD_FIQMASK);
} }
static void iomd_unmask_irq_fiq(unsigned int irq) static void iomd_unmask_irq_fiq(struct irq_data *d)
{ {
unsigned int val, mask; unsigned int val, mask;
mask = 1 << (irq & 7); mask = 1 << (d->irq & 7);
val = iomd_readb(IOMD_FIQMASK); val = iomd_readb(IOMD_FIQMASK);
iomd_writeb(val | mask, IOMD_FIQMASK); iomd_writeb(val | mask, IOMD_FIQMASK);
} }
static struct irq_chip iomd_fiq_chip = { static struct irq_chip iomd_fiq_chip = {
.ack = iomd_mask_irq_fiq, .irq_ack = iomd_mask_irq_fiq,
.mask = iomd_mask_irq_fiq, .irq_mask = iomd_mask_irq_fiq,
.unmask = iomd_unmask_irq_fiq, .irq_unmask = iomd_unmask_irq_fiq,
}; };
void __init rpc_init_irq(void) void __init rpc_init_irq(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment