Date: Sat, 26 Aug 2006 23:47:16 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 105155 for review Message-ID: <200608262347.k7QNlGve033313@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105155 Change 105155 by cognet@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__ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608262347.k7QNlGve033313>