diff options
author | jim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-11-23 02:04:12 +0000 |
---|---|---|
committer | jim <jim@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-11-23 02:04:12 +0000 |
commit | 98011d8e4df972c1a2b0ab184f3d04c0ae9583f3 (patch) | |
tree | 42e54a90d40de9f87ccd7fc79d51d6ce0c40b724 /pciradio.c | |
parent | 5528607cba498ef8c2806f99c10ce954ebaec700 (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-x | pciradio.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |