Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219577
b: refs/heads/master
c: 0d33807
h: refs/heads/master
i:
  219575: d00fc80
v: v3
  • Loading branch information
Paul Mundt committed Oct 27, 2010
1 parent 7e521d9 commit 7120370
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: c053784454550cf750399caa65482b31ffbe3c57
refs/heads/master: 0d338071f2fff7551f9afe22016d9b34b45900b5
17 changes: 10 additions & 7 deletions trunk/arch/sh/boards/mach-dreamcast/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
*/

/* Disable the hardware event by masking its bit in its EMR */
static inline void disable_systemasic_irq(unsigned int irq)
static inline void disable_systemasic_irq(struct irq_data *data)
{
unsigned int irq = data->irq;
__u32 emr = EMR_BASE + (LEVEL(irq) << 4) + (LEVEL(irq) << 2);
__u32 mask;

Expand All @@ -71,8 +72,9 @@ static inline void disable_systemasic_irq(unsigned int irq)
}

/* Enable the hardware event by setting its bit in its EMR */
static inline void enable_systemasic_irq(unsigned int irq)
static inline void enable_systemasic_irq(struct irq_data *data)
{
unsigned int irq = data->irq;
__u32 emr = EMR_BASE + (LEVEL(irq) << 4) + (LEVEL(irq) << 2);
__u32 mask;

Expand All @@ -82,18 +84,19 @@ static inline void enable_systemasic_irq(unsigned int irq)
}

/* Acknowledge a hardware event by writing its bit back to its ESR */
static void mask_ack_systemasic_irq(unsigned int irq)
static void mask_ack_systemasic_irq(struct irq_data *data)
{
unsigned int irq = data->irq;
__u32 esr = ESR_BASE + (LEVEL(irq) << 2);
disable_systemasic_irq(irq);
disable_systemasic_irq(data);
outl((1 << EVENT_BIT(irq)), esr);
}

struct irq_chip systemasic_int = {
.name = "System ASIC",
.mask = disable_systemasic_irq,
.mask_ack = mask_ack_systemasic_irq,
.unmask = enable_systemasic_irq,
.irq_mask = disable_systemasic_irq,
.irq_mask_ack = mask_ack_systemasic_irq,
.irq_unmask = enable_systemasic_irq,
};

/*
Expand Down

0 comments on commit 7120370

Please sign in to comment.