Release coccinelle-0.1
[bpt/coccinelle.git] / tests / rule19a.c
1 static void
2 gazel_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
3 {
4 struct IsdnCardState *cs = dev_id;
5 u_char ista, val;
6 int count = 0;
7
8 if (!cs) {
9 printk(KERN_WARNING "Gazel: Spurious interrupt!\n");
10 return;
11 }
12 do {
13 if (ista & 0x10) {
14 val = 0x01;
15 isac_interrupt(cs, val);
16 }
17 }
18 while ((ista & 0x3f) && (count < MAXCOUNT));
19
20 WriteISAC(cs, IPAC_MASK - 0x80, 0xFF);
21 WriteISAC(cs, IPAC_MASK - 0x80, 0xC0);
22 }
23