diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2001-11-10 01:26:34 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2001-11-10 01:26:34 +0000 |
commit | 2589b9eac4c9786cd363391b42608740efe361ff (patch) | |
tree | b170fb87ec3120a7757cfd5d8b66475560968dd1 | |
parent | c7560004aaa6726490d908eaaedcac62e3118701 (diff) |
Version 0.1.3 from FTP
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@30 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wcfxo.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -247,16 +247,24 @@ static void wcfxo_interrupt(int irq, void *dev_id, struct pt_regs *regs) ints = inb(wc->ioaddr + WC_INTSTAT); outb(ints, wc->ioaddr + WC_INTSTAT); + + if (!ints) + return; + if (ints & 0x0f) { wcfxo_transmitprep(wc, ints); wcfxo_receiveprep(wc, ints); } - if (ints & 0x10) + if (ints & 0x10) { printk("PCI Master abort\n"); - - if (ints & 0x20) + return; + } + + if (ints & 0x20) { printk("PCI Target abort\n"); + return; + } if (1 /* !(wc->report % 0xf) */) { /* Check RING from register and debounce for 8ms */ |