diff options
Diffstat (limited to 'c/src/libchip/network/elnk.c')
-rw-r--r-- | c/src/libchip/network/elnk.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/c/src/libchip/network/elnk.c b/c/src/libchip/network/elnk.c index 4f3066924f..b77dcd1bf7 100644 --- a/c/src/libchip/network/elnk.c +++ b/c/src/libchip/network/elnk.c @@ -90,6 +90,10 @@ #include <libcpu/io.h> #endif +#if defined(__i386__) +#include <libcpu/byteorder.h> +#endif + #include <stdlib.h> #include <stdio.h> #include <stdarg.h> @@ -197,16 +201,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 /* the actual duration waited in DELAY is not especially predictable, |