[Asterisk-cvs] zaptel wct4xxp.c,1.63,1.64

mattf at lists.digium.com mattf at lists.digium.com
Mon May 9 20:16:16 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv32303

Modified Files:
	wct4xxp.c 
Log Message:
PowerPC fixes for the wct4xxp.c card


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- wct4xxp.c	6 May 2005 06:14:18 -0000	1.63
+++ wct4xxp.c	10 May 2005 00:22:30 -0000	1.64
@@ -236,9 +236,9 @@
 static inline void __t4_pci_out(struct t4 *wc, const unsigned int addr, const unsigned int value)
 {
 	unsigned int tmp;
-	wc->membase[addr] = value;
+	wc->membase[addr] = cpu_to_le32(value);
 #if 1
-	tmp = wc->membase[addr];
+	tmp = le32_to_cpu(wc->membase[addr]);
 	if ((value != tmp) && (addr != WC_LEDS) && (addr != WC_LDATA) &&
 		(addr != WC_GPIO) && (addr != WC_INTR))
 		printk("Tried to load %08x into %08x, but got %08x instead\n", value, addr, tmp);
@@ -247,7 +247,7 @@
 
 static inline unsigned int __t4_pci_in(struct t4 *wc, const unsigned int addr)
 {
-	return wc->membase[addr];
+	return le32_to_cpu(wc->membase[addr]);
 }
 
 static inline void t4_pci_out(struct t4 *wc, const unsigned int addr, const unsigned int value)




More information about the svn-commits mailing list