forked from luck/tmp_suning_uos_patched
MN10300: Convert ASB2364 FPGA irq_chip to new functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
3ba65467f0
commit
1ddc4a38ca
|
@ -17,38 +17,38 @@
|
||||||
/*
|
/*
|
||||||
* FPGA PIC operations
|
* FPGA PIC operations
|
||||||
*/
|
*/
|
||||||
static void asb2364_fpga_mask(unsigned int irq)
|
static void asb2364_fpga_mask(struct irq_data *d)
|
||||||
{
|
{
|
||||||
ASB2364_FPGA_REG_MASK(irq - NR_CPU_IRQS) = 0x0001;
|
ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0001;
|
||||||
SyncExBus();
|
SyncExBus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void asb2364_fpga_ack(unsigned int irq)
|
static void asb2364_fpga_ack(struct irq_data *d)
|
||||||
{
|
{
|
||||||
ASB2364_FPGA_REG_IRQ(irq - NR_CPU_IRQS) = 0x0001;
|
ASB2364_FPGA_REG_IRQ(d->irq - NR_CPU_IRQS) = 0x0001;
|
||||||
SyncExBus();
|
SyncExBus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void asb2364_fpga_mask_ack(unsigned int irq)
|
static void asb2364_fpga_mask_ack(struct irq_data *d)
|
||||||
{
|
{
|
||||||
ASB2364_FPGA_REG_MASK(irq - NR_CPU_IRQS) = 0x0001;
|
ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0001;
|
||||||
SyncExBus();
|
SyncExBus();
|
||||||
ASB2364_FPGA_REG_IRQ(irq - NR_CPU_IRQS) = 0x0001;
|
ASB2364_FPGA_REG_IRQ(d->irq - NR_CPU_IRQS) = 0x0001;
|
||||||
SyncExBus();
|
SyncExBus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void asb2364_fpga_unmask(unsigned int irq)
|
static void asb2364_fpga_unmask(struct irq_data *d)
|
||||||
{
|
{
|
||||||
ASB2364_FPGA_REG_MASK(irq - NR_CPU_IRQS) = 0x0000;
|
ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0000;
|
||||||
SyncExBus();
|
SyncExBus();
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct irq_chip asb2364_fpga_pic = {
|
static struct irq_chip asb2364_fpga_pic = {
|
||||||
.name = "fpga",
|
.name = "fpga",
|
||||||
.ack = asb2364_fpga_ack,
|
.irq_ack = asb2364_fpga_ack,
|
||||||
.mask = asb2364_fpga_mask,
|
.irq_mask = asb2364_fpga_mask,
|
||||||
.mask_ack = asb2364_fpga_mask_ack,
|
.irq_mask_ack = asb2364_fpga_mask_ack,
|
||||||
.unmask = asb2364_fpga_unmask,
|
.irq_unmask = asb2364_fpga_unmask,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user