Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243398
b: refs/heads/master
c: 193e7a5
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and David Howells committed Mar 29, 2011
1 parent c96415f commit 209cccb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 303fef9052d90257df3e0e434b834af3938b8a7f
refs/heads/master: 193e7a5f824b54386621df9303053c36ed0d9c16
26 changes: 13 additions & 13 deletions trunk/arch/frv/kernel/irq-mb93091.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,45 +36,45 @@
/*
* on-motherboard FPGA PIC operations
*/
static void frv_fpga_mask(unsigned int irq)
static void frv_fpga_mask(struct irq_data *d)
{
uint16_t imr = __get_IMR();

imr |= 1 << (irq - IRQ_BASE_FPGA);
imr |= 1 << (d->irq - IRQ_BASE_FPGA);

__set_IMR(imr);
}

static void frv_fpga_ack(unsigned int irq)
static void frv_fpga_ack(struct irq_data *d)
{
__clr_IFR(1 << (irq - IRQ_BASE_FPGA));
__clr_IFR(1 << (d->irq - IRQ_BASE_FPGA));
}

static void frv_fpga_mask_ack(unsigned int irq)
static void frv_fpga_mask_ack(struct irq_data *d)
{
uint16_t imr = __get_IMR();

imr |= 1 << (irq - IRQ_BASE_FPGA);
imr |= 1 << (d->irq - IRQ_BASE_FPGA);
__set_IMR(imr);

__clr_IFR(1 << (irq - IRQ_BASE_FPGA));
__clr_IFR(1 << (d->irq - IRQ_BASE_FPGA));
}

static void frv_fpga_unmask(unsigned int irq)
static void frv_fpga_unmask(struct irq_data *d)
{
uint16_t imr = __get_IMR();

imr &= ~(1 << (irq - IRQ_BASE_FPGA));
imr &= ~(1 << (d->irq - IRQ_BASE_FPGA));

__set_IMR(imr);
}

static struct irq_chip frv_fpga_pic = {
.name = "mb93091",
.ack = frv_fpga_ack,
.mask = frv_fpga_mask,
.mask_ack = frv_fpga_mask_ack,
.unmask = frv_fpga_unmask,
.irq_ack = frv_fpga_ack,
.irq_mask = frv_fpga_mask,
.irq_mask_ack = frv_fpga_mask_ack,
.irq_unmask = frv_fpga_unmask,
};

/*
Expand Down

0 comments on commit 209cccb

Please sign in to comment.