mirror of
https://github.com/zeldaret/ss
synced 2026-05-30 08:56:34 -04:00
29 lines
567 B
C
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
|