summaryrefslogtreecommitdiff
path: root/pciradio.c
diff options
context:
space:
mode:
authorjim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-23 02:04:12 +0000
committerjim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-23 02:04:12 +0000
commit98011d8e4df972c1a2b0ab184f3d04c0ae9583f3 (patch)
tree42e54a90d40de9f87ccd7fc79d51d6ce0c40b724 /pciradio.c
parent5528607cba498ef8c2806f99c10ce954ebaec700 (diff)
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
Diffstat (limited to 'pciradio.c')
-rwxr-xr-xpciradio.c7
1 files changed, 5 insertions, 2 deletions
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)