Files
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

30 lines
611 B
C

#ifndef RVL_SDK_IPC_MAIN_H
#define RVL_SDK_IPC_MAIN_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
// Random number for arg typing
u32 IPC_HW_REGS[10] AT_ADDRESS(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