Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233788
b: refs/heads/master
c: 67436ce
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Matt Turner committed Mar 2, 2011
1 parent 2b4d7f2 commit fa20d6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: a326526360622825fd98c05a0eae3087efb0df81
refs/heads/master: 67436cef1926cbb2f0b4dabed5aa7fcba8a70891
17 changes: 10 additions & 7 deletions trunk/arch/alpha/kernel/sys_rawhide.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ rawhide_update_irq_hw(int hose, int mask)
(((h) < MCPCIA_MAX_HOSES) && (cached_irq_masks[(h)] != 0))

static inline void
rawhide_enable_irq(unsigned int irq)
rawhide_enable_irq(struct irq_data *d)
{
unsigned int mask, hose;
unsigned int irq = d->irq;

irq -= 16;
hose = irq / 24;
Expand All @@ -76,9 +77,10 @@ rawhide_enable_irq(unsigned int irq)
}

static void
rawhide_disable_irq(unsigned int irq)
rawhide_disable_irq(struct irq_data *d)
{
unsigned int mask, hose;
unsigned int irq = d->irq;

irq -= 16;
hose = irq / 24;
Expand All @@ -96,9 +98,10 @@ rawhide_disable_irq(unsigned int irq)
}

static void
rawhide_mask_and_ack_irq(unsigned int irq)
rawhide_mask_and_ack_irq(struct irq_data *d)
{
unsigned int mask, mask1, hose;
unsigned int irq = d->irq;

irq -= 16;
hose = irq / 24;
Expand All @@ -123,9 +126,9 @@ rawhide_mask_and_ack_irq(unsigned int irq)

static struct irq_chip rawhide_irq_type = {
.name = "RAWHIDE",
.unmask = rawhide_enable_irq,
.mask = rawhide_disable_irq,
.mask_ack = rawhide_mask_and_ack_irq,
.irq_unmask = rawhide_enable_irq,
.irq_mask = rawhide_disable_irq,
.irq_mask_ack = rawhide_mask_and_ack_irq,
};

static void
Expand Down Expand Up @@ -177,8 +180,8 @@ rawhide_init_irq(void)
}

for (i = 16; i < 128; ++i) {
irq_to_desc(i)->status |= IRQ_LEVEL;
set_irq_chip_and_handler(i, &rawhide_irq_type, handle_level_irq);
irq_set_status_flags(i, IRQ_LEVEL);
}

init_i8259a_irqs();
Expand Down

0 comments on commit fa20d6a

Please sign in to comment.