Files
ss/include/rvl/IPC/ipcMain.h
T
2023-12-24 09:59:13 -05:00

29 lines
567 B
C

#ifndef RVL_SDK_IPC_MAIN_H
#define RVL_SDK_IPC_MAIN_H
#include <common.h>
#ifdef __cplusplus
extern "C" {
#endif
u32 IPC_HW_REGS[] : 0xCD000000;
static inline u32 ACRReadReg(u32 reg) {
return *(u32 *)((char *)IPC_HW_REGS + (reg & ~0x3));
}
static inline void ACRWriteReg(u32 reg, u32 val) {
*(u32 *)((char *)IPC_HW_REGS + (reg & ~0x3)) = val;
}
void IPCInit(void);
u32 IPCReadReg(s32 index);
void IPCWriteReg(s32 index, u32 value);
void *IPCGetBufferHi(void);
void *IPCGetBufferLo(void);
void IPCSetBufferLo(void *lo);
#ifdef __cplusplus
}
#endif
#endif