[zaptel-commits] mattf: branch 1.4 r2634 - in /branches/1.4: ./ wct4xxp/base.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Jun 11 15:12:04 MST 2007


Author: mattf
Date: Mon Jun 11 17:12:04 2007
New Revision: 2634

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2634
Log:
Merged revisions 2633 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

........
r2633 | mattf | 2007-06-11 17:10:59 -0500 (Mon, 11 Jun 2007) | 1 line

Make the version check optional
........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/wct4xxp/base.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wct4xxp/base.c?view=diff&rev=2634&r1=2633&r2=2634
==============================================================================
--- branches/1.4/wct4xxp/base.c (original)
+++ branches/1.4/wct4xxp/base.c Mon Jun 11 17:12:04 2007
@@ -171,6 +171,7 @@
 
 #endif
 
+static int pedanticpci = 1;
 static int debug=0;
 static int timingcable = 0;
 static int highestorder;
@@ -429,9 +430,11 @@
 {
 	unsigned int tmp;
 	writel(value, &wc->membase[addr]);
-	tmp = __t4_pci_in(wc, WC_VERSION);
-	if ((tmp & 0xffff0000) != 0xc01a0000)
-		printk("TE4XXP: Version Synchronization Error!\n");
+	if (pedanticpci) {
+		tmp = __t4_pci_in(wc, WC_VERSION);
+		if ((tmp & 0xffff0000) != 0xc01a0000)
+			printk("TE4XXP: Version Synchronization Error!\n");
+	}
 #if 0
 	tmp = __t4_pci_in(wc, addr);
 	if ((value != tmp) && (addr != WC_LEDS) && (addr != WC_LDATA) &&
@@ -518,7 +521,9 @@
 	unit &= 0x3;
 	__t4_pci_out(wc, WC_LADDR, (unit << 8) | (addr & 0xff));
 	__t4_pci_out(wc, WC_LADDR, (unit << 8) | (addr & 0xff) | WC_LFRMR_CS | WC_LREAD);
-	__t4_pci_out(wc, WC_VERSION, 0);
+	if (pedanticpci) {
+		__t4_pci_out(wc, WC_VERSION, 0);
+	}
 	ret = __t4_pci_in(wc, WC_LDATA);
  	__t4_pci_out(wc, WC_LADDR, (unit << 8) | (addr & 0xff));
 	return ret & 0xff;
@@ -3880,6 +3885,7 @@
 MODULE_LICENSE("GPL");
 #endif
 #ifdef LINUX26
+module_param(pedanticpci, int, 0600);
 module_param(debug, int, 0600);
 module_param(loopback, int, 0600);
 module_param(noburst, int, 0600);
@@ -3897,6 +3903,7 @@
 module_param(dtmfthreshold, int, 0600);
 #endif
 #else
+MODULE_PARM(pedanticpci, "i");
 MODULE_PARM(debug, "i");
 MODULE_PARM(loopback, "i");
 MODULE_PARM(noburst, "i");



More information about the zaptel-commits mailing list