From 98011d8e4df972c1a2b0ab184f3d04c0ae9583f3 Mon Sep 17 00:00:00 2001 From: jim Date: Tue, 23 Nov 2004 02:04:12 +0000 Subject: Added input for UIO lines in vhdl and properly support exttone in driver git-svn-id: http://svn.digium.com/svn/zaptel/trunk@501 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- pciradio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pciradio.c') diff --git a/pciradio.c b/pciradio.c index e2e0fee..3351bb7 100755 --- a/pciradio.c +++ b/pciradio.c @@ -806,11 +806,14 @@ static void pciradio_interrupt(int irq, void *dev_id, struct pt_regs *regs) if (rad->radmode[x] & RADMODE_EXTTONE) { unsigned mask = 1 << (x + 4); + unsigned char byteuio; + /* get UIO input */ + byteuio = __pciradio_getcreg(rad,1); if (rad->radmode[x] & RADMODE_EXTINVERT) - gotctcss = gotslowctcss = ((byte2 & mask) == 0); + gotctcss = gotslowctcss = ((byteuio & mask) == 0); else - gotctcss = gotslowctcss = ((byte2 & mask) != 0); + gotctcss = gotslowctcss = ((byteuio & mask) != 0); } rad->gotct[x] = gotslowctcss; if (rad->radmode[x] & RADMODE_IGNORECT) -- cgit v1.2.3