* [PATCH 2.6.21] NetXen: Fix hardware access for ppc architecture.
@ 2007-03-23 15:21 Linsys Contractor Adhiraj Joshi
2007-03-29 12:27 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Linsys Contractor Adhiraj Joshi @ 2007-03-23 15:21 UTC (permalink / raw)
To: netdev; +Cc: amitkale, jeff, netxenproj, rob
NetXen: Fix for hardware access on big endian machine.
Signed-off-by: Adhiraj Joshi <adhiraj@netxen.com>
---
netxen_nic_init.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index 229aa1c..eff965d 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -438,6 +438,7 @@ do_rom_fast_read_words(struct netxen_ada
for (addridx = addr; addridx < (addr + size); addridx += 4) {
ret = do_rom_fast_read(adapter, addridx, (int *)bytes);
+ *(int *)bytes = cpu_to_le32(*(int *)bytes);
if (ret != 0)
break;
bytes += 4;
@@ -497,7 +498,7 @@ static inline int do_rom_fast_write_word
int timeout = 0;
int data;
- data = *(u32*)bytes;
+ data = le32_to_cpu((*(u32*)bytes));
ret = do_rom_fast_write(adapter, addridx, data);
if (ret < 0)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-29 12:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-23 15:21 [PATCH 2.6.21] NetXen: Fix hardware access for ppc architecture Linsys Contractor Adhiraj Joshi
2007-03-29 12:27 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).