73 |
|
static inline void WriteMacInt8(uint32 addr, uint32 b) {put_byte(addr, b);} |
74 |
|
static inline uint8 *Mac2HostAddr(uint32 addr) {return get_real_address(addr);} |
75 |
|
#endif |
76 |
+ |
static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);} |
77 |
+ |
static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);} |
78 |
+ |
static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);} |
79 |
+ |
static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);} |
80 |
|
|
81 |
|
|
82 |
|
/* |