change everything to use a common types file

This commit is contained in:
Elijah Thomas
2023-12-24 09:59:13 -05:00
parent d8362c1004
commit e32db6f07a
213 changed files with 3516 additions and 3277 deletions
+7 -7
View File
@@ -1,20 +1,20 @@
#ifndef RVL_SDK_OS_ADDRESS_H
#define RVL_SDK_OS_ADDRESS_H
#include "rvl/types.h"
#include <common.h>
#ifdef __cplusplus
extern "C" {
#endif
static inline void* OSPhysicalToCached(u32 ofs) {
return (void*)(ofs + 0x80000000);
static inline void *OSPhysicalToCached(u32 ofs) {
return (void *)(ofs + 0x80000000);
}
static inline void* OSPhysicalToUncached(u32 ofs) {
return (void*)(ofs + 0xC0000000);
static inline void *OSPhysicalToUncached(u32 ofs) {
return (void *)(ofs + 0xC0000000);
}
static inline void* OSCachedToPhysical(const void* ofs) {
return (char*)ofs - 0x80000000;
static inline void *OSCachedToPhysical(const void *ofs) {
return (char *)ofs - 0x80000000;
}
#ifdef __cplusplus