Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231342
b: refs/heads/master
c: aab0c63
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek committed Jan 13, 2011
1 parent daa5182 commit b209f39
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: c4e8964e4eb3ea4edc34e1832d1691468f326beb
refs/heads/master: aab0c637f37950abd083d34e9f89311b0af61c96
26 changes: 13 additions & 13 deletions trunk/arch/arm/mach-shark/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,35 @@ static unsigned char cached_irq_mask[2] = { 0xfb, 0xff };
* These have to be protected by the irq controller spinlock
* before being called.
*/
static void shark_disable_8259A_irq(unsigned int irq)
static void shark_disable_8259A_irq(struct irq_data *d)
{
unsigned int mask;
if (irq<8) {
mask = 1 << irq;
if (d->irq<8) {
mask = 1 << d->irq;
cached_irq_mask[0] |= mask;
outb(cached_irq_mask[1],0xA1);
} else {
mask = 1 << (irq-8);
mask = 1 << (d->irq-8);
cached_irq_mask[1] |= mask;
outb(cached_irq_mask[0],0x21);
}
}

static void shark_enable_8259A_irq(unsigned int irq)
static void shark_enable_8259A_irq(struct irq_data *d)
{
unsigned int mask;
if (irq<8) {
mask = ~(1 << irq);
if (d->irq<8) {
mask = ~(1 << d->irq);
cached_irq_mask[0] &= mask;
outb(cached_irq_mask[0],0x21);
} else {
mask = ~(1 << (irq-8));
mask = ~(1 << (d->irq-8));
cached_irq_mask[1] &= mask;
outb(cached_irq_mask[1],0xA1);
}
}

static void shark_ack_8259A_irq(unsigned int irq){}
static void shark_ack_8259A_irq(struct irq_data *d){}

static irqreturn_t bogus_int(int irq, void *dev_id)
{
Expand All @@ -69,10 +69,10 @@ static irqreturn_t bogus_int(int irq, void *dev_id)
static struct irqaction cascade;

static struct irq_chip fb_chip = {
.name = "XT-PIC",
.ack = shark_ack_8259A_irq,
.mask = shark_disable_8259A_irq,
.unmask = shark_enable_8259A_irq,
.name = "XT-PIC",
.irq_ack = shark_ack_8259A_irq,
.irq_mask = shark_disable_8259A_irq,
.irq_unmask = shark_enable_8259A_irq,
};

void __init shark_init_irq(void)
Expand Down

0 comments on commit b209f39

Please sign in to comment.