-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put low-level DVD functions in a public header
- Loading branch information
Showing
2 changed files
with
60 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef __OGC_DVDLOW_H__ | ||
#define __OGC_DVDLOW_H__ | ||
|
||
#include <gctypes.h> | ||
#include "dvd.h" | ||
|
||
#define DVD_COVER_RESET 0 | ||
#define DVD_COVER_OPEN 1 | ||
#define DVD_COVER_CLOSED 2 | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif /* __cplusplus */ | ||
|
||
typedef void (*dvdcallbacklow)(s32 result); | ||
|
||
void DVD_LowReset(u32 reset_mode); | ||
dvdcallbacklow DVD_LowSetResetCoverCallback(dvdcallbacklow cb); | ||
s32 DVD_LowBreak(void); | ||
dvdcallbacklow DVD_LowClearCallback(void); | ||
s32 DVD_LowSeek(s64 offset,dvdcallbacklow cb); | ||
s32 DVD_LowRead(void *buf,u32 len,s64 offset,dvdcallbacklow cb); | ||
s32 DVD_LowReadDiskID(dvddiskid *diskID,dvdcallbacklow cb); | ||
s32 DVD_LowRequestError(dvdcallbacklow cb); | ||
s32 DVD_LowStopMotor(dvdcallbacklow cb); | ||
s32 DVD_LowInquiry(dvddrvinfo *info,dvdcallbacklow cb); | ||
s32 DVD_LowWaitCoverClose(dvdcallbacklow cb); | ||
s32 DVD_LowGetCoverStatus(void); | ||
s32 DVD_LowAudioStream(u32 subcmd,u32 len,s64 offset,dvdcallbacklow cb); | ||
s32 DVD_LowAudioBufferConfig(s32 enable,u32 size,dvdcallbacklow cb); | ||
s32 DVD_LowRequestAudioStatus(u32 subcmd,dvdcallbacklow cb); | ||
s32 DVD_LowEnableExtensions(u8 enable,dvdcallbacklow cb); | ||
s32 DVD_LowSpinMotor(u32 mode,dvdcallbacklow cb); | ||
s32 DVD_LowSetStatus(u32 status,dvdcallbacklow cb); | ||
s32 DVD_LowUnlockDrive(dvdcallbacklow cb); | ||
s32 DVD_LowPatchDriveCode(dvdcallbacklow cb); | ||
s32 DVD_LowSpinUpDrive(dvdcallbacklow cb); | ||
s32 DVD_LowControlMotor(u32 mode,dvdcallbacklow cb); | ||
s32 DVD_LowFuncCall(u32 address,dvdcallbacklow cb); | ||
s32 DVD_LowReadmem(u32 address,void *buffer,dvdcallbacklow cb); | ||
s32 DVD_LowSetGCMOffset(s64 offset,dvdcallbacklow cb); | ||
s32 DVD_LowSetOffset(s64 offset,dvdcallbacklow cb); | ||
s32 DVD_LowReadImm(dvdcmdbuf cmdbuf,dvdcallbacklow cb); | ||
s32 DVD_LowWriteImm(dvdcmdbuf cmdbuf,u32 immbuf,dvdcallbacklow cb); | ||
s32 DVD_LowReadDma(dvdcmdbuf cmdbuf,void *buf,u32 len,dvdcallbacklow cb); | ||
s32 DVD_LowWriteDma(dvdcmdbuf cmdbuf,void *buf,u32 len,dvdcallbacklow cb); | ||
s32 DVD_GcodeLowRead(void *buf,u32 len,u32 offset,dvdcallbacklow cb); | ||
s32 DVD_GcodeLowWriteBuffer(void *buf,u32 len,dvdcallbacklow cb); | ||
s32 DVD_GcodeLowWrite(u32 len,u32 offset,dvdcallbacklow cb); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif /* __cplusplus */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters