From 2589b9eac4c9786cd363391b42608740efe361ff Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 10 Nov 2001 01:26:34 +0000 Subject: Version 0.1.3 from FTP git-svn-id: http://svn.digium.com/svn/zaptel/trunk@30 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wcfxo.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'wcfxo.c') diff --git a/wcfxo.c b/wcfxo.c index 017ec5a..c820248 100755 --- a/wcfxo.c +++ b/wcfxo.c @@ -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 */ -- cgit v1.2.3