Changeset f82dabae in rtems


Ignore:
Timestamp:
Nov 4, 2005, 6:09:59 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f6435d36
Parents:
830976c
Message:

Use libcpu/byteorder.h for i386.

Location:
c/src/libchip/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/dec21140.c

    r830976c rf82dabae  
    6262#endif
    6363
     64#if defined(__i386__)
     65#include <libcpu/byteorder.h>
     66#endif
     67
    6468#include <stdlib.h>
    6569#include <stdio.h>
     
    234238#define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
    235239#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
    236 
    237 static inline void st_le32(volatile uint32_t   *addr, uint32_t   value)
    238 {
    239   *(addr)=value ;
    240 }
    241 
    242 static inline uint32_t   ld_le32(volatile uint32_t   *addr)
    243 {
    244   return(*addr);
    245 }
    246 
    247240#endif
    248241
  • c/src/libchip/network/elnk.c

    r830976c rf82dabae  
    9191#endif
    9292
     93#if defined(__i386__)
     94#include <libcpu/byteorder.h>
     95#endif
     96
    9397#include <stdlib.h>
    9498#include <stdio.h>
     
    198202#define rtems_bsp_delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
    199203#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
    200 
    201 static inline void st_le32(volatile uint32_t   *addr, uint32_t   value)
    202 {
    203   *(addr)=value ;
    204 }
    205 
    206 static inline uint32_t   ld_le32(volatile uint32_t   *addr)
    207 {
    208   return(*addr);
    209 }
    210204#endif
    211205
Note: See TracChangeset for help on using the changeset viewer.