[zaptel-commits] mattf: trunk r1812 - /trunk/wct4xxp/base.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sat Jan 13 13:05:29 MST 2007


Author: mattf
Date: Sat Jan 13 14:05:28 2007
New Revision: 1812

URL: http://svn.digium.com/view/zaptel?view=rev&rev=1812
Log:
Portability update for quad span driver.

Modified:
    trunk/wct4xxp/base.c

Modified: trunk/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp/base.c?view=diff&rev=1812&r1=1811&r2=1812
==============================================================================
--- trunk/wct4xxp/base.c (original)
+++ trunk/wct4xxp/base.c Sat Jan 13 14:05:28 2007
@@ -430,14 +430,14 @@
 
 static inline unsigned int __t4_pci_in(struct t4 *wc, const unsigned int addr)
 {
-	unsigned int res = le32_to_cpu(wc->membase[addr]);
+	unsigned int res = readl(&wc->membase[addr]);
 	return res;
 }
 
 static inline void __t4_pci_out(struct t4 *wc, const unsigned int addr, const unsigned int value)
 {
 	unsigned int tmp;
-	wc->membase[addr] = cpu_to_le32(value);
+	writel(value, &wc->membase[addr]);
 	tmp = __t4_pci_in(wc, WC_VERSION);
 	if ((tmp & 0xffff0000) != 0xc01a0000)
 		printk("TE4XXP: Version Synchronization Error!\n");



More information about the zaptel-commits mailing list