我是靠谱客的博主 彩色小土豆,最近开发中收集的这篇文章主要介绍dingming asterisk 单E1 在zaptel-1.2.22.tar.gz下修改的代码,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

$ diff -Naur zaptel-1.2.17.1/wcte11xp.c _patched/wcte11xp.c
--- zaptel-1.2.17.1/wcte11xp.c    Wed Jan 24 05:28:14 2007
+++ _patched/wcte11xp.c    Wed May 23 10:52:08 2007
@@ -652,7 +658,7 @@
     if (wc->spanflags & FLAG_FALC12)
         t1_framer_out(wc, 0x25, 0x04);    /* RC1: The rest of RC0 */
     else
-        t1_framer_out(wc, 0x25, 0x05);    /* RC1: The rest of RC0 */
+        t1_framer_out(wc, 0x25, 0x06/*0x05*/);    /* RC1: The rest of RC0 */
    
     /* Configure ports */
     t1_framer_out(wc, 0x80, 0x00);    /* PC1: SPYR/SPYX input on RPA/XPA */
古语今言 (3555300) 11:40:10
 0x25寄存器值0x05改成0x06

不需要的修改 但是别的卡可能要改
static struct pci_device_id t1xxp_pci_tbl[] =
{
{ 0xe159, 0x0001, 0x71fe, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0xe159, 0x0001, 0x79fe, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0xe159, 0x0001, 0x795e, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0xe159, 0x0001, 0x79de, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0xe159, 0x0001, 0x797e, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0 }
};
修改为
static struct pci_device_id t1xxp_pci_tbl[] = {
 { 0xe159, 0x0001, 0x71fe, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
 { 0xe159, 0x0001, 0x79fe, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
 { 0xe159, 0x0001, 0x795e, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
 { 0xe159, 0x0001, 0x79de, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
 { 0xe159, 0x0001, 0x797e, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
 { 0xe159, 0x0001, 0x8610, PCI_ANY_ID, 0, 0, (unsigned long) "Digium Wildcard TE110P T1/E1 Board" },
{ 0 }};

最后

以上就是彩色小土豆为你收集整理的dingming asterisk 单E1 在zaptel-1.2.22.tar.gz下修改的代码的全部内容,希望文章能够帮你解决dingming asterisk 单E1 在zaptel-1.2.22.tar.gz下修改的代码所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部