mirror of
https://github.com/zeldaret/ss
synced 2026-09-03 01:54:18 -04:00
Fix includes and removed libs folder
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef RVL_SDK_NDEV_EXI2_AD_DEBUGGER_DRIVER_H
|
||||
#define RVL_SDK_NDEV_EXI2_AD_DEBUGGER_DRIVER_H
|
||||
#include "rvl/NdevExi2AD/exi2.h"
|
||||
#include "rvl/OS.h"
|
||||
#include "rvl/types.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void DBInitComm(u8** flagOut, OSInterruptHandler handler);
|
||||
void DBInitInterrupts(void);
|
||||
u32 DBQueryData(void);
|
||||
BOOL DBRead(void* dst, u32 size);
|
||||
BOOL DBWrite(const void* src, u32 size);
|
||||
void DBOpen(void);
|
||||
void DBClose(void);
|
||||
|
||||
static inline BOOL __DBReadMailbox(u32* mailOut) {
|
||||
return __DBEXIReadReg(0x34000200, mailOut, sizeof(*mailOut));
|
||||
}
|
||||
|
||||
static inline BOOL __DBRead(u32 ofs, void* dest, u32 size) {
|
||||
return __DBEXIReadRam(((ofs + 0xD10000) * 0x40) & 0x3FFFFF00, dest, size);
|
||||
}
|
||||
|
||||
static inline BOOL __DBWriteMailbox(u32 mail) {
|
||||
return __DBEXIWriteReg(0xB4000100, &mail, sizeof(mail));
|
||||
}
|
||||
|
||||
static inline BOOL __DBWrite(u32 ofs, const void* src, u32 size) {
|
||||
return __DBEXIWriteRam(
|
||||
(((ofs + 0xD10000) * 0x40) & 0x3FFFFF00) | 0x80000000, src, size);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef RVL_SDK_NDEV_EXI2_AD_ODEMU_H
|
||||
#define RVL_SDK_NDEV_EXI2_AD_ODEMU_H
|
||||
#include "rvl/types.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline u32 ODEMUGenMailData(u32 ofs, u32 size) {
|
||||
return (ofs & 0xff) << 0x10 | 0x1f000000 | size & 0x1fff;
|
||||
}
|
||||
|
||||
static inline u32 ODEMUGetPage(u32 mail) { return (mail & 0xFF0000) >> 16; }
|
||||
|
||||
static inline u32 ODEMUGetPc2NngcOffset(u32 mail) {
|
||||
if (!(ODEMUGetPage(mail) & 0x1)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0x800;
|
||||
}
|
||||
|
||||
static inline BOOL ODEMUIsValidMail(u32 mail) {
|
||||
return (mail & 0x1F000000) == 0x1F000000;
|
||||
}
|
||||
|
||||
static inline u32 ODEMUGetSize(u32 mail) { return mail & 0x1FFF; }
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef RVL_SDK_NDEV_EXI2_AD_EXI2_H
|
||||
#define RVL_SDK_NDEV_EXI2_AD_EXI2_H
|
||||
#include "rvl/types.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
BOOL __EXI2Imm(void* mem, s32 size, u32 type);
|
||||
void __DBEXIInit(void);
|
||||
BOOL __DBEXIReadReg(u32 cmd, void* mem, s32 size);
|
||||
BOOL __DBEXIWriteReg(u32 cmd, const void* mem, s32 size);
|
||||
BOOL __DBEXIReadRam(u32 cmd, void* mem, s32 size);
|
||||
BOOL __DBEXIWriteRam(u32 cmd, const void* mem, s32 size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user