diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-11-04 18:09:59 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-11-04 18:09:59 +0000 |
commit | f82dabae42c10bb31c3881af0954bea5d340db09 (patch) | |
tree | 99e58154fd148cb0a7f750e39b53fd627aca0bc6 /c/src/libchip/network/dec21140.c | |
parent | 2005-11-04 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f82dabae42c10bb31c3881af0954bea5d340db09.tar.bz2 |
Use libcpu/byteorder.h for i386.
Diffstat (limited to '')
-rw-r--r-- | c/src/libchip/network/dec21140.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c index 2a904fa64b..f5a7dc792b 100644 --- a/c/src/libchip/network/dec21140.c +++ b/c/src/libchip/network/dec21140.c @@ -61,6 +61,10 @@ #include <libcpu/io.h> #endif +#if defined(__i386__) +#include <libcpu/byteorder.h> +#endif + #include <stdlib.h> #include <stdio.h> #include <stdarg.h> @@ -233,17 +237,6 @@ extern void Wait_X_ms( unsigned int timeToWait ); #define bus_to_phys(address) ((unsigned int) ((address))) #define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 ) #define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE - -static inline void st_le32(volatile uint32_t *addr, uint32_t value) -{ - *(addr)=value ; -} - -static inline uint32_t ld_le32(volatile uint32_t *addr) -{ - return(*addr); -} - #endif #if (MCLBYTES < RBUF_SIZE) |