diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-10 00:22:30 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-05-10 00:22:30 +0000 |
commit | 843057361949da7fa48bb6dd77b0d277b5ead98b (patch) | |
tree | cbbd95aaf054b4b4865c7f6bb692791b9c620d6b | |
parent | fdc628010d190660fbc291504aa6be6fd095abfd (diff) |
PowerPC fixes for the wct4xxp.c card
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@639 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | wct4xxp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -236,9 +236,9 @@ static struct t4 *cards[MAX_T4_CARDS]; 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 void __t4_pci_out(struct t4 *wc, const unsigned int addr, const un 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) |