Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231333
b: refs/heads/master
c: 4f8d754
h: refs/heads/master
i:
  231331: 2383bc8
v: v3
  • Loading branch information
Lennert Buytenhek committed Jan 13, 2011
1 parent 40c8ab7 commit e8268a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 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: e981a30209c77dab6e594ac454f8ff49cdcb0c20
refs/heads/master: 4f8d7541b591883ff25ab1e0146f72e533f6183f
30 changes: 15 additions & 15 deletions trunk/arch/arm/mach-netx/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ netx_hif_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
}

static int
netx_hif_irq_type(unsigned int _irq, unsigned int type)
netx_hif_irq_type(struct irq_data *d, unsigned int type)
{
unsigned int val, irq;

val = readl(NETX_DPMAS_IF_CONF1);

irq = _irq - NETX_IRQ_HIF_CHAINED(0);
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);

if (type & IRQ_TYPE_EDGE_RISING) {
DEBUG_IRQ("rising edges\n");
Expand All @@ -119,49 +119,49 @@ netx_hif_irq_type(unsigned int _irq, unsigned int type)
}

static void
netx_hif_ack_irq(unsigned int _irq)
netx_hif_ack_irq(struct irq_data *d)
{
unsigned int val, irq;

irq = _irq - NETX_IRQ_HIF_CHAINED(0);
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);
writel((1 << 24) << irq, NETX_DPMAS_INT_STAT);

val = readl(NETX_DPMAS_INT_EN);
val &= ~((1 << 24) << irq);
writel(val, NETX_DPMAS_INT_EN);

DEBUG_IRQ("%s: irq %d\n", __func__, _irq);
DEBUG_IRQ("%s: irq %d\n", __func__, d->irq);
}

static void
netx_hif_mask_irq(unsigned int _irq)
netx_hif_mask_irq(struct irq_data *d)
{
unsigned int val, irq;

irq = _irq - NETX_IRQ_HIF_CHAINED(0);
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);
val = readl(NETX_DPMAS_INT_EN);
val &= ~((1 << 24) << irq);
writel(val, NETX_DPMAS_INT_EN);
DEBUG_IRQ("%s: irq %d\n", __func__, _irq);
DEBUG_IRQ("%s: irq %d\n", __func__, d->irq);
}

static void
netx_hif_unmask_irq(unsigned int _irq)
netx_hif_unmask_irq(struct irq_data *d)
{
unsigned int val, irq;

irq = _irq - NETX_IRQ_HIF_CHAINED(0);
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);
val = readl(NETX_DPMAS_INT_EN);
val |= (1 << 24) << irq;
writel(val, NETX_DPMAS_INT_EN);
DEBUG_IRQ("%s: irq %d\n", __func__, _irq);
DEBUG_IRQ("%s: irq %d\n", __func__, d->irq);
}

static struct irq_chip netx_hif_chip = {
.ack = netx_hif_ack_irq,
.mask = netx_hif_mask_irq,
.unmask = netx_hif_unmask_irq,
.set_type = netx_hif_irq_type,
.irq_ack = netx_hif_ack_irq,
.irq_mask = netx_hif_mask_irq,
.irq_unmask = netx_hif_unmask_irq,
.irq_set_type = netx_hif_irq_type,
};

void __init netx_init_irq(void)
Expand Down

0 comments on commit e8268a7

Please sign in to comment.