changeset 2018:975b261a7619

* include/moab_eth_dp83816.inl: Remove unneeded _h2le and _le2h functions.
author asl
date Thu, 21 Jul 2005 18:10:08 +0000
parents 024bed9cc2c8
children ec659f224fe7
files packages/devs/eth/powerpc/moab/current/ChangeLog packages/devs/eth/powerpc/moab/current/include/moab_eth_dp83816.inl
diffstat 2 files changed, 5 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/eth/powerpc/moab/current/ChangeLog
+++ b/packages/devs/eth/powerpc/moab/current/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-18  David Vrabel  <dvrabel@arcom.com>
+
+	* include/moab_eth_dp83816.inl: Remove unneeded _h2le and _le2h
+	functions.
+
 2003-10-02  Gary Thomas  <gary@mlbassoc.com>
 
 	* include/moab_eth_dp83816.inl: 
--- a/packages/devs/eth/powerpc/moab/current/include/moab_eth_dp83816.inl
+++ b/packages/devs/eth/powerpc/moab/current/include/moab_eth_dp83816.inl
@@ -80,26 +80,6 @@ static void
 #undef  CYGHWR_NS_DP83816_PLF_INIT
 #define CYGHWR_NS_DP83816_PLF_INIT(dp) _moab_eth_init(dp)
 
-// Map a 32 bit host quantity to little endian
-unsigned long
-_h2le(unsigned long val)
-{
-    unsigned long res; 
-    unsigned long *addr = &val;
-    __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (res) : "r" (addr), "m" (*addr));
-    return res;
-}
-
-// Map a 32 bit little endian quantity to host representation
-unsigned long
-_le2h(unsigned long val)
-{
-    unsigned long res; 
-    unsigned long *addr = &val;
-    __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (res) : "r" (addr), "m" (*addr));
-    return res;
-}
-
 // Align buffers on a cache boundary
 #define RxBUFSIZE CYGNUM_DEVS_ETH_MOAB_DP83816_RxNUM*_DP83816_BUFSIZE
 #define TxBUFSIZE CYGNUM_DEVS_ETH_MOAB_DP83816_TxNUM*_DP83816_BUFSIZE