diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:50 -0400 |
commit | 9ba02bec3888d391bad0fb0a8dd584f88eed6c8d (patch) | |
tree | c57f93b56dfed5b45735cc558b739c8986b4dfdd /drivers/isdn/hisax/elsa.c | |
parent | 272ee69c653d4b4f15049ed956554085d4bdaa44 (diff) |
[PATCH] irq-flags: isdn: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/elsa.c')
-rw-r--r-- | drivers/isdn/hisax/elsa.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/isdn/hisax/elsa.c b/drivers/isdn/hisax/elsa.c index 7a5cdb1dee1e..3b3e318f6076 100644 --- a/drivers/isdn/hisax/elsa.c +++ b/drivers/isdn/hisax/elsa.c | |||
@@ -85,8 +85,8 @@ static const char *ITACVer[] = | |||
85 | *** ***/ | 85 | *** ***/ |
86 | 86 | ||
87 | /* Config-Register (Read) */ | 87 | /* Config-Register (Read) */ |
88 | #define ELSA_TIMER_RUN 0x02 /* Bit 1 des Config-Reg */ | 88 | #define ELIRQF_TIMER_RUN 0x02 /* Bit 1 des Config-Reg */ |
89 | #define ELSA_TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */ | 89 | #define ELIRQF_TIMER_RUN_PCC8 0x01 /* Bit 0 des Config-Reg bei PCC */ |
90 | #define ELSA_IRQ_IDX 0x38 /* Bit 3,4,5 des Config-Reg */ | 90 | #define ELSA_IRQ_IDX 0x38 /* Bit 3,4,5 des Config-Reg */ |
91 | #define ELSA_IRQ_IDX_PCC8 0x30 /* Bit 4,5 des Config-Reg */ | 91 | #define ELSA_IRQ_IDX_PCC8 0x30 /* Bit 4,5 des Config-Reg */ |
92 | #define ELSA_IRQ_IDX_PC 0x0c /* Bit 2,3 des Config-Reg */ | 92 | #define ELSA_IRQ_IDX_PC 0x0c /* Bit 2,3 des Config-Reg */ |
@@ -102,7 +102,7 @@ static const char *ITACVer[] = | |||
102 | #define ELSA_S0_POWER_BAD 0x08 /* Bit 3 S0-Bus Spannung fehlt */ | 102 | #define ELSA_S0_POWER_BAD 0x08 /* Bit 3 S0-Bus Spannung fehlt */ |
103 | 103 | ||
104 | /* Status Flags */ | 104 | /* Status Flags */ |
105 | #define ELSA_TIMER_AKTIV 1 | 105 | #define ELIRQF_TIMER_AKTIV 1 |
106 | #define ELSA_BAD_PWR 2 | 106 | #define ELSA_BAD_PWR 2 |
107 | #define ELSA_ASSIGN 4 | 107 | #define ELSA_ASSIGN 4 |
108 | 108 | ||
@@ -259,10 +259,10 @@ TimerRun(struct IsdnCardState *cs) | |||
259 | 259 | ||
260 | v = bytein(cs->hw.elsa.cfg); | 260 | v = bytein(cs->hw.elsa.cfg); |
261 | if ((cs->subtyp == ELSA_QS1000) || (cs->subtyp == ELSA_QS3000)) | 261 | if ((cs->subtyp == ELSA_QS1000) || (cs->subtyp == ELSA_QS3000)) |
262 | return (0 == (v & ELSA_TIMER_RUN)); | 262 | return (0 == (v & ELIRQF_TIMER_RUN)); |
263 | else if (cs->subtyp == ELSA_PCC8) | 263 | else if (cs->subtyp == ELSA_PCC8) |
264 | return (v & ELSA_TIMER_RUN_PCC8); | 264 | return (v & ELIRQF_TIMER_RUN_PCC8); |
265 | return (v & ELSA_TIMER_RUN); | 265 | return (v & ELIRQF_TIMER_RUN); |
266 | } | 266 | } |
267 | /* | 267 | /* |
268 | * fast interrupt HSCX stuff goes here | 268 | * fast interrupt HSCX stuff goes here |
@@ -334,7 +334,7 @@ elsa_interrupt(int intno, void *dev_id, struct pt_regs *regs) | |||
334 | writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK, 0xFF); | 334 | writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK, 0xFF); |
335 | writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK + 0x40, 0xFF); | 335 | writereg(cs->hw.elsa.ale, cs->hw.elsa.hscx, HSCX_MASK + 0x40, 0xFF); |
336 | writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, ISAC_MASK, 0xFF); | 336 | writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, ISAC_MASK, 0xFF); |
337 | if (cs->hw.elsa.status & ELSA_TIMER_AKTIV) { | 337 | if (cs->hw.elsa.status & ELIRQF_TIMER_AKTIV) { |
338 | if (!TimerRun(cs)) { | 338 | if (!TimerRun(cs)) { |
339 | /* Timer Restart */ | 339 | /* Timer Restart */ |
340 | byteout(cs->hw.elsa.timer, 0); | 340 | byteout(cs->hw.elsa.timer, 0); |
@@ -685,7 +685,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg) | |||
685 | spin_lock_irqsave(&cs->lock, flags); | 685 | spin_lock_irqsave(&cs->lock, flags); |
686 | cs->hw.elsa.counter = 0; | 686 | cs->hw.elsa.counter = 0; |
687 | cs->hw.elsa.ctrl_reg |= ELSA_ENA_TIMER_INT; | 687 | cs->hw.elsa.ctrl_reg |= ELSA_ENA_TIMER_INT; |
688 | cs->hw.elsa.status |= ELSA_TIMER_AKTIV; | 688 | cs->hw.elsa.status |= ELIRQF_TIMER_AKTIV; |
689 | byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); | 689 | byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); |
690 | byteout(cs->hw.elsa.timer, 0); | 690 | byteout(cs->hw.elsa.timer, 0); |
691 | spin_unlock_irqrestore(&cs->lock, flags); | 691 | spin_unlock_irqrestore(&cs->lock, flags); |
@@ -693,7 +693,7 @@ Elsa_card_msg(struct IsdnCardState *cs, int mt, void *arg) | |||
693 | spin_lock_irqsave(&cs->lock, flags); | 693 | spin_lock_irqsave(&cs->lock, flags); |
694 | cs->hw.elsa.ctrl_reg &= ~ELSA_ENA_TIMER_INT; | 694 | cs->hw.elsa.ctrl_reg &= ~ELSA_ENA_TIMER_INT; |
695 | byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); | 695 | byteout(cs->hw.elsa.ctrl, cs->hw.elsa.ctrl_reg); |
696 | cs->hw.elsa.status &= ~ELSA_TIMER_AKTIV; | 696 | cs->hw.elsa.status &= ~ELIRQF_TIMER_AKTIV; |
697 | spin_unlock_irqrestore(&cs->lock, flags); | 697 | spin_unlock_irqrestore(&cs->lock, flags); |
698 | printk(KERN_INFO "Elsa: %d timer tics in 110 msek\n", | 698 | printk(KERN_INFO "Elsa: %d timer tics in 110 msek\n", |
699 | cs->hw.elsa.counter); | 699 | cs->hw.elsa.counter); |
@@ -1012,7 +1012,7 @@ setup_elsa(struct IsdnCard *card) | |||
1012 | cs->hw.elsa.timer = 0; | 1012 | cs->hw.elsa.timer = 0; |
1013 | cs->hw.elsa.trig = 0; | 1013 | cs->hw.elsa.trig = 0; |
1014 | cs->hw.elsa.ctrl = 0; | 1014 | cs->hw.elsa.ctrl = 0; |
1015 | cs->irq_flags |= SA_SHIRQ; | 1015 | cs->irq_flags |= IRQF_SHARED; |
1016 | printk(KERN_INFO | 1016 | printk(KERN_INFO |
1017 | "Elsa: %s defined at %#lx IRQ %d\n", | 1017 | "Elsa: %s defined at %#lx IRQ %d\n", |
1018 | Elsa_Types[cs->subtyp], | 1018 | Elsa_Types[cs->subtyp], |
@@ -1061,7 +1061,7 @@ setup_elsa(struct IsdnCard *card) | |||
1061 | test_and_set_bit(HW_IPAC, &cs->HW_Flags); | 1061 | test_and_set_bit(HW_IPAC, &cs->HW_Flags); |
1062 | cs->hw.elsa.timer = 0; | 1062 | cs->hw.elsa.timer = 0; |
1063 | cs->hw.elsa.trig = 0; | 1063 | cs->hw.elsa.trig = 0; |
1064 | cs->irq_flags |= SA_SHIRQ; | 1064 | cs->irq_flags |= IRQF_SHARED; |
1065 | printk(KERN_INFO | 1065 | printk(KERN_INFO |
1066 | "Elsa: %s defined at %#lx/0x%x IRQ %d\n", | 1066 | "Elsa: %s defined at %#lx/0x%x IRQ %d\n", |
1067 | Elsa_Types[cs->subtyp], | 1067 | Elsa_Types[cs->subtyp], |