text
stringlengths 0
14.1k
|
---|
#endif
|
static void
|
netx_hif_demux_handler(unsigned int irq_unused, struct irq_desc *desc)
|
{
|
unsigned int irq = NETX_IRQ_HIF_CHAINED(0);
|
unsigned int stat;
|
stat = ((readl(NETX_DPMAS_INT_EN) &
|
readl(NETX_DPMAS_INT_STAT)) >> 24) & 0x1f;
|
while (stat) {
|
if (stat & 1) {
|
DEBUG_IRQ(""handling irq %d\n"", irq);
|
generic_handle_irq(irq);
|
}
|
irq++;
|
stat >>= 1;
|
}
|
}
|
static int
|
<<<<<<< HEAD
|
netx_hif_irq_type(struct irq_data *d, unsigned int type)
|
=======
|
netx_hif_irq_type(unsigned int _irq, unsigned int type)
|
>>>>>>> 296c66da8a02d52243f45b80521febece5ed498a
|
{
|
unsigned int val, irq;
|
val = readl(NETX_DPMAS_IF_CONF1);
|
<<<<<<< HEAD
|
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);
|
=======
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
>>>>>>> 296c66da8a02d52243f45b80521febece5ed498a
|
if (type & IRQ_TYPE_EDGE_RISING) {
|
DEBUG_IRQ(""rising edges\n"");
|
val |= (1 << 26) << irq;
|
}
|
if (type & IRQ_TYPE_EDGE_FALLING) {
|
DEBUG_IRQ(""falling edges\n"");
|
val &= ~((1 << 26) << irq);
|
}
|
if (type & IRQ_TYPE_LEVEL_LOW) {
|
DEBUG_IRQ(""low level\n"");
|
val &= ~((1 << 26) << irq);
|
}
|
if (type & IRQ_TYPE_LEVEL_HIGH) {
|
DEBUG_IRQ(""high level\n"");
|
val |= (1 << 26) << irq;
|
}
|
writel(val, NETX_DPMAS_IF_CONF1);
|
return 0;
|
}
|
static void
|
<<<<<<< HEAD
|
netx_hif_ack_irq(struct irq_data *d)
|
{
|
unsigned int val, irq;
|
irq = d->irq - NETX_IRQ_HIF_CHAINED(0);
|
=======
|
netx_hif_ack_irq(unsigned int _irq)
|
{
|
unsigned int val, irq;
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
>>>>>>> 296c66da8a02d52243f45b80521febece5ed498a
|
writel((1 << 24) << irq, NETX_DPMAS_INT_STAT);
|
val = readl(NETX_DPMAS_INT_EN);
|
val &= ~((1 << 24) << irq);
|
writel(val, NETX_DPMAS_INT_EN);
|
<<<<<<< HEAD
|
DEBUG_IRQ(""%s: irq %d\n"", __func__, d->irq);
|
}
|
static void
|
netx_hif_mask_irq(struct irq_data *d)
|
{
|
unsigned int val, irq;
|
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__, d->irq);
|
}
|
static void
|
netx_hif_unmask_irq(struct irq_data *d)
|
{
|
unsigned int val, irq;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.