blob: f5fc51cc3b55a79cd862102dca7418ad7c153c21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef RVL_SDK_OS_ADDRESS_H
#define RVL_SDK_OS_ADDRESS_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
static inline void *OSPhysicalToCached(u32 ofs) {
return (void *)(ofs + 0x80000000);
}
static inline void *OSPhysicalToUncached(u32 ofs) {
return (void *)(ofs + 0xC0000000);
}
static inline void *OSCachedToPhysical(const void *ofs) {
return (char *)ofs - 0x80000000;
}
#ifdef __cplusplus
}
#endif
#endif
|