summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-05-06 06:14:18 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-05-06 06:14:18 +0000
commite2e9e5d030b4a7b451056d73a1d9ef4db33ec952 (patch)
tree662940270b624476417dd9a282a32520b87f5b0b
parentb6c9e790a3a83a17dc3dea3f57073e10875359c2 (diff)
Fix behavior on 1st gen T4 cards (oops)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@637 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xwct4xxp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 5bd71ad..bace301 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -1184,7 +1184,10 @@ static int t4_startup(struct zt_span *span)
wc->spansstarted++;
/* enable interrupts */
/* Start DMA, enabling DMA interrupts on read only */
- wc->dmactrl = 0xc0000000 | (1 << 29) | wc->vpm;
+ if (wc->spanflags[0] & FLAG_2NDGEN)
+ wc->dmactrl = 0xc0000000 | (1 << 29) | wc->vpm;
+ else
+ wc->dmactrl = 0xc0000003 | (1 << 29) | wc->vpm;
if (noburst)
wc->dmactrl |= (1 << 26);
__t4_pci_out(wc, WC_DMACTRL, wc->dmactrl);