PERFORCE change 105155 for review
Olivier Houchard
cognet at FreeBSD.org
Sat Aug 26 23:47:16 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=105155
Change 105155 by cognet at cognet on 2006/08/26 23:46:40
The PCI bus will do the byte swapping for us, so there's no need to
use le32toh and htole32.
Affected files ...
.. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_pci_space.c#3 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_pci_space.c#3 (text+ko) ====
@@ -295,7 +295,7 @@
u_int32_t data;
data = _bs_r(v, ioh, off, 0);
- return le32toh(data);
+ return (data);
}
#ifdef __ARMEB__
@@ -372,7 +372,7 @@
_pci_io_bs_w_4(void *v, bus_space_handle_t ioh, bus_size_t off,
u_int32_t val)
{
- _bs_w(v, ioh, off, 0, htole32(val));
+ _bs_w(v, ioh, off, 0,val);
}
#ifdef __ARMEB__
@@ -468,7 +468,7 @@
u_int32_t data;
data = ixp425_pci_mem_bs_r_4(v, ioh, off);
- return le32toh(data);
+ return (data);
}
static void
@@ -489,7 +489,7 @@
_pci_mem_bs_w_4(void *v, bus_space_handle_t ioh, bus_size_t off,
u_int32_t val)
{
- ixp425_pci_mem_bs_w_4(v, ioh, off, htole32(val));
+ ixp425_pci_mem_bs_w_4(v, ioh, off, val);
}
#endif /* __ARMEB__ */
More information about the p4-projects
mailing list