[Asterisk-cvs] zaptel wcfxs.c,1.56,1.57
markster at lists.digium.com
markster at lists.digium.com
Sun May 9 21:36:46 CDT 2004
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv12605
Modified Files:
wcfxs.c
Log Message:
Support unified test/cs register
Index: wcfxs.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcfxs.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- wcfxs.c 5 May 2004 15:03:21 -0000 1.56
+++ wcfxs.c 10 May 2004 01:46:33 -0000 1.57
@@ -1558,8 +1558,13 @@
printk("Freshmaker version: %02x\n", ver);
for (x=0;x<255;x++) {
/* Test registers */
- __wcfxs_setcreg(wc, WC_TEST, x);
- y = __wcfxs_getcreg(wc, WC_TEST);
+ if (ver >= 0x70) {
+ __wcfxs_setcreg(wc, WC_CS, x);
+ y = __wcfxs_getcreg(wc, WC_CS);
+ } else {
+ __wcfxs_setcreg(wc, WC_TEST, x);
+ y = __wcfxs_getcreg(wc, WC_TEST);
+ }
if (x != y) {
printk("%02x != %02x\n", x, y);
failed++;
More information about the svn-commits
mailing list