41 lines
1000 B
C
41 lines
1000 B
C
#ifndef PRIVATE_WD_H
|
|
#define PRIVATE_WD_H
|
|
|
|
#include <revolution/wd.h>
|
|
|
|
#include <private/ios/types.h>
|
|
|
|
struct WDi_Work_ {
|
|
vs32 IOSFd; // 0x00
|
|
BOOL initialized; // 0x04
|
|
vs32 IOSHeap; // 0x08
|
|
};
|
|
|
|
enum {
|
|
WD_INTERNAL_ERR_OK = 0,
|
|
WD_INTERNAL_ERR_INVALID_FD = 0x80008000,
|
|
WD_INTERNAL_ERR_BAD_ARGUMENTS = 0x80008001,
|
|
WD_INTERNAL_ERR_IPC_ERROR = 0x80008002,
|
|
WD_INTERNAL_ERR_WL_ERROR = 0x80008003,
|
|
WD_INTERNAL_ERR_4 = 0x80008004,
|
|
WD_INTERNAL_ERR_ALLOC_FAILED = 0x80008005,
|
|
WD_INTERNAL_ERR_ALREADY_INITIALIZED = 0x80008006,
|
|
};
|
|
|
|
struct WDi_Work_* WDi_GetWork();
|
|
#define WDi_Work ((struct WDi_Work_*)WDi_GetWork())
|
|
#define WDi_WorkSize (sizeof(struct WDi_Work_))
|
|
|
|
s32 WDi_Ioctlv(s32 cmd, u32 readCount, u32 writeCount, IOSIoVector* vec);
|
|
|
|
s32 WDi_SetupHeap(u32 size);
|
|
s32 WDi_CleanupHeap();
|
|
|
|
s32 WD_Startup(u32 flags);
|
|
s32 WD_Cleanup();
|
|
|
|
s32 WD_Scan(WDScanParam* params, u8* buffer, u32 bufferLen);
|
|
s32 WD_GetInfo(WD_Info* info);
|
|
|
|
#endif // PRIVATE_WD_H
|