Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
dvd.h File Reference

Go to the source code of this file.

Classes

struct  DVDDiskID
 
struct  DVDCommandBlock
 
struct  DVDFileInfo
 
struct  DVDDir
 
struct  DVDDirEntry
 
struct  DVDBB2
 
struct  DVDDriveInfo
 
struct  DVDCommandInfo
 
struct  DVDErrorInfo
 
struct  DVDGamePartition
 
struct  DVDPartitionInfo
 
struct  DVDGameTOC
 
struct  DVDPartitionParams
 
struct  diRegVals
 
struct  diCommand
 
struct  DVDVideoReportKey
 

Typedefs

typedef struct DVDDiskID DVDDiskID
 
typedef void(* DVDCBCallback) (s32 result, DVDCommandBlock *block)
 
typedef void(* DVDLowCallback) (u32)
 
typedef void(* DVDCommandCheckerCallback) (u32)
 
typedef void(* DVDCommandChecker) (DVDCommandBlock *, DVDCommandCheckerCallback)
 
typedef void(* DVDCallback) (s32 result, DVDFileInfo *fileInfo)
 
typedef struct DVDBB2 DVDBB2
 
typedef struct DVDDriveInfo DVDDriveInfo
 
typedef struct DVDCommandInfo DVDCommandInfo
 
typedef struct DVDErrorInfo DVDErrorInfo
 
typedef struct DVDGamePartition DVDGamePartition
 
typedef struct DVDPartitionInfo DVDPartitionInfo
 
typedef struct DVDGameTOC DVDGameTOC
 
typedef struct DVDPartitionParams DVDPartitionParams
 
typedef struct diRegVals diRegVals_t
 
typedef struct diCommand diCommand_t
 
typedef struct DVDVideoReportKey DVDVideoReportKey
 

Functions

void DVDInit (void)
 
int DVDReadAbsAsyncPrio (DVDCommandBlock *block, void *addr, s32 length, s32 offset, DVDCBCallback callback, s32 prio)
 
int DVDSeekAbsAsyncPrio (DVDCommandBlock *block, s32 offset, DVDCBCallback callback, s32 prio)
 
int DVDReadAbsAsyncForBS (DVDCommandBlock *block, void *addr, s32 length, s32 offset, DVDCBCallback callback)
 
int DVDReadDiskID (DVDCommandBlock *block, DVDDiskID *diskID, DVDCBCallback callback)
 
int DVDChangeDiskAsyncForBS (DVDCommandBlock *block, DVDCBCallback callback)
 
int DVDChangeDiskAsync (DVDCommandBlock *block, DVDDiskID *id, DVDCBCallback callback)
 
s32 DVDChangeDisk (DVDCommandBlock *block, DVDDiskID *id)
 
int DVDStopMotorAsync (DVDCommandBlock *block, DVDCBCallback callback)
 
s32 DVDStopMotor (DVDCommandBlock *block)
 
int DVDInquiryAsync (DVDCommandBlock *block, DVDDriveInfo *info, DVDCBCallback callback)
 
s32 DVDInquiry (DVDCommandBlock *block, DVDDriveInfo *info)
 
void DVDReset (void)
 
int DVDResetRequired (void)
 
s32 DVDGetCommandBlockStatus (const DVDCommandBlock *block)
 
s32 DVDGetDriveStatus (void)
 
BOOL DVDSetAutoInvalidation (BOOL autoInval)
 
void DVDPause (void)
 
void DVDResume (void)
 
int DVDCancelAsync (DVDCommandBlock *block, DVDCBCallback callback)
 
s32 DVDCancel (DVDCommandBlock *block)
 
int DVDCancelAllAsync (DVDCBCallback callback)
 
s32 DVDCancelAll (void)
 
DVDDiskIDDVDGetCurrentDiskID (void)
 
BOOL DVDCheckDisk (void)
 
int DVDSetAutoFatalMessaging (BOOL enable)
 
BOOL __DVDGetAutoFatalMessaging (void)
 
s32 DVDConvertPathToEntrynum (const char *pathPtr)
 
BOOL DVDFastOpen (s32 entrynum, DVDFileInfo *fileInfo)
 
BOOL DVDOpen (const char *fileName, DVDFileInfo *fileInfo)
 
BOOL DVDClose (DVDFileInfo *fileInfo)
 
BOOL DVDGetCurrentDir (char *path, u32 maxlen)
 
BOOL DVDChangeDir (const char *dirName)
 
BOOL DVDReadAsyncPrio (DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset, DVDCallback callback, s32 prio)
 
s32 DVDReadPrio (DVDFileInfo *fileInfo, void *addr, s32 length, s32 offset, s32 prio)
 
int DVDSeekAsyncPrio (DVDFileInfo *fileInfo, s32 offset, void(*callback)(s32, DVDFileInfo *), s32 prio)
 
s32 DVDSeekPrio (DVDFileInfo *fileInfo, s32 offset, s32 prio)
 
s32 DVDGetFileInfoStatus (const DVDFileInfo *fileInfo)
 
BOOL DVDFastOpenDir (s32 entrynum, DVDDir *dir)
 
int DVDOpenDir (const char *dirName, DVDDir *dir)
 
int DVDReadDir (DVDDir *dir, DVDDirEntry *dirent)
 
int DVDCloseDir (DVDDir *dir)
 
void DVDRewindDir (DVDDir *dir)
 
s32 DVDGetTransferredSize (DVDFileInfo *fileinfo)
 
int DVDCompareDiskID (const DVDDiskID *id1, const DVDDiskID *id2)
 
DVDDiskIDDVDGenerateDiskID (DVDDiskID *id, const char *game, const char *company, u8 diskNum, u8 version)
 
BOOL DVDLowRead (void *addr, u32 length, u32 offset, DVDLowCallback callback)
 
BOOL DVDLowSeek (u32 offset, DVDLowCallback callback)
 
BOOL DVDLowReadDiskID (DVDDiskID *diskID, DVDLowCallback callback)
 
BOOL DVDLowRequestError (DVDLowCallback callback)
 
BOOL DVDLowInquiry (DVDDriveInfo *info, DVDLowCallback callback)
 
BOOL DVDLowAudioBufferConfig (u8 enable, u32 size, DVDLowCallback callback)
 
BOOL DVDLowReset (DVDLowCallback callback)
 
BOOL DVDLowBreak (void)
 
DVDLowCallback DVDLowClearCallback (void)
 
u32 DVDLowGetCoverStatus (void)
 
void DVDDumpWaitingQueue (void)
 
BOOL DVDLowFinalize (void)
 
BOOL DVDLowInit (void)
 
BOOL DVDLowUnmaskStatusInterrupts (void)
 
BOOL DVDLowMaskCoverInterrupt (void)
 
BOOL DVDLowClearCoverInterrupt (DVDLowCallback callback)
 
BOOL DVDLowSetSpinupFlag (u32 spinUp)
 
u32 DVDLowGetImmBufferReg (void)
 
BOOL DVDLowSetMaximumRotation (u32 subcmd, DVDLowCallback callback)
 
u32 DVDLowGetCoverRegister (void)
 
BOOL DVDLowPrepareCoverRegister (DVDLowCallback callback)
 
BOOL DVDLowGetNoDiscBufferSizes (const u32 partitionWordOffset, u32 *numTmdBytes, u32 *numCertBytes, DVDLowCallback callback)
 
BOOL DVDLowGetNoDiscOpenPartitionParams (const u32 partitionWordOffset, ESTicket *eTicket, u32 *numTmdBytes, ESTitleMeta *tmd, u32 *numCertBytes, u8 *certificates, u32 *dataWordOffset, u8 *h3HashPtr, DVDLowCallback callback)
 
BOOL DVDLowReportKey (DVDVideoReportKey *reportKey, u32 format, u32 lsn, DVDLowCallback callback)
 
u32 DVDLowGetControlRegister (void)
 
u32 DVDLowGetStatusRegister (void)
 
BOOL DVDLowPrepareControlRegister (DVDLowCallback callback)
 
BOOL DVDLowPrepareStatusRegister (DVDLowCallback callback)
 
BOOL DVDLowUnencryptedRead (void *, u32, u32, DVDLowCallback)
 
BOOL DVDLowClosePartition (DVDLowCallback)
 
BOOL DVDLowOpenPartitionWithTmdAndTicketView (const u32, const ESTicketView *const, const u32, const ESTitleMeta *const, const u32, const u8 *const, DVDLowCallback)
 
BOOL DVDLowOpenPartition (const u32, const ESTicket *const, const u32, const u8 *const, ESTitleMeta *, DVDLowCallback)
 

Typedef Documentation

◆ diCommand_t

typedef struct diCommand diCommand_t

◆ diRegVals_t

typedef struct diRegVals diRegVals_t

◆ DVDBB2

typedef struct DVDBB2 DVDBB2

◆ DVDCallback

typedef void(* DVDCallback) (s32 result, DVDFileInfo *fileInfo)

◆ DVDCBCallback

typedef void(* DVDCBCallback) (s32 result, DVDCommandBlock *block)

◆ DVDCommandChecker

typedef void(* DVDCommandChecker) (DVDCommandBlock *, DVDCommandCheckerCallback)

◆ DVDCommandCheckerCallback

typedef void(* DVDCommandCheckerCallback) (u32)

◆ DVDCommandInfo

typedef struct DVDCommandInfo DVDCommandInfo

◆ DVDDiskID

typedef struct DVDDiskID DVDDiskID

◆ DVDDriveInfo

typedef struct DVDDriveInfo DVDDriveInfo

◆ DVDErrorInfo

typedef struct DVDErrorInfo DVDErrorInfo

◆ DVDGamePartition

typedef struct DVDGamePartition DVDGamePartition

◆ DVDGameTOC

typedef struct DVDGameTOC DVDGameTOC

◆ DVDLowCallback

typedef void(* DVDLowCallback) (u32)

◆ DVDPartitionInfo

typedef struct DVDPartitionInfo DVDPartitionInfo

◆ DVDPartitionParams

typedef struct DVDPartitionParams DVDPartitionParams

◆ DVDVideoReportKey

typedef struct DVDVideoReportKey DVDVideoReportKey

Function Documentation

◆ __DVDGetAutoFatalMessaging()

BOOL __DVDGetAutoFatalMessaging ( void )

◆ DVDCancel()

s32 DVDCancel ( DVDCommandBlock * block)

◆ DVDCancelAll()

s32 DVDCancelAll ( void )

◆ DVDCancelAllAsync()

int DVDCancelAllAsync ( DVDCBCallback callback)

◆ DVDCancelAsync()

int DVDCancelAsync ( DVDCommandBlock * block,
DVDCBCallback callback )

◆ DVDChangeDir()

BOOL DVDChangeDir ( const char * dirName)

◆ DVDChangeDisk()

s32 DVDChangeDisk ( DVDCommandBlock * block,
DVDDiskID * id )

◆ DVDChangeDiskAsync()

int DVDChangeDiskAsync ( DVDCommandBlock * block,
DVDDiskID * id,
DVDCBCallback callback )

◆ DVDChangeDiskAsyncForBS()

int DVDChangeDiskAsyncForBS ( DVDCommandBlock * block,
DVDCBCallback callback )

◆ DVDCheckDisk()

BOOL DVDCheckDisk ( void )

◆ DVDClose()

BOOL DVDClose ( DVDFileInfo * fileInfo)

◆ DVDCloseDir()

int DVDCloseDir ( DVDDir * dir)

◆ DVDCompareDiskID()

int DVDCompareDiskID ( const DVDDiskID * id1,
const DVDDiskID * id2 )

◆ DVDConvertPathToEntrynum()

s32 DVDConvertPathToEntrynum ( const char * pathPtr)

◆ DVDDumpWaitingQueue()

void DVDDumpWaitingQueue ( void )

◆ DVDFastOpen()

BOOL DVDFastOpen ( s32 entrynum,
DVDFileInfo * fileInfo )

◆ DVDFastOpenDir()

BOOL DVDFastOpenDir ( s32 entrynum,
DVDDir * dir )

◆ DVDGenerateDiskID()

DVDDiskID * DVDGenerateDiskID ( DVDDiskID * id,
const char * game,
const char * company,
u8 diskNum,
u8 version )

◆ DVDGetCommandBlockStatus()

s32 DVDGetCommandBlockStatus ( const DVDCommandBlock * block)

◆ DVDGetCurrentDir()

BOOL DVDGetCurrentDir ( char * path,
u32 maxlen )

◆ DVDGetCurrentDiskID()

DVDDiskID * DVDGetCurrentDiskID ( void )

◆ DVDGetDriveStatus()

s32 DVDGetDriveStatus ( void )

◆ DVDGetFileInfoStatus()

s32 DVDGetFileInfoStatus ( const DVDFileInfo * fileInfo)

◆ DVDGetTransferredSize()

s32 DVDGetTransferredSize ( DVDFileInfo * fileinfo)

◆ DVDInit()

void DVDInit ( void )

◆ DVDInquiry()

s32 DVDInquiry ( DVDCommandBlock * block,
DVDDriveInfo * info )

◆ DVDInquiryAsync()

int DVDInquiryAsync ( DVDCommandBlock * block,
DVDDriveInfo * info,
DVDCBCallback callback )

◆ DVDLowAudioBufferConfig()

BOOL DVDLowAudioBufferConfig ( u8 enable,
u32 size,
DVDLowCallback callback )

◆ DVDLowBreak()

BOOL DVDLowBreak ( void )

◆ DVDLowClearCallback()

DVDLowCallback DVDLowClearCallback ( void )

◆ DVDLowClearCoverInterrupt()

BOOL DVDLowClearCoverInterrupt ( DVDLowCallback callback)

◆ DVDLowClosePartition()

BOOL DVDLowClosePartition ( DVDLowCallback callback)

◆ DVDLowFinalize()

BOOL DVDLowFinalize ( void )

◆ DVDLowGetControlRegister()

u32 DVDLowGetControlRegister ( void )

◆ DVDLowGetCoverRegister()

u32 DVDLowGetCoverRegister ( void )

◆ DVDLowGetCoverStatus()

u32 DVDLowGetCoverStatus ( void )

◆ DVDLowGetImmBufferReg()

u32 DVDLowGetImmBufferReg ( void )

◆ DVDLowGetNoDiscBufferSizes()

BOOL DVDLowGetNoDiscBufferSizes ( const u32 partitionWordOffset,
u32 * numTmdBytes,
u32 * numCertBytes,
DVDLowCallback callback )

◆ DVDLowGetNoDiscOpenPartitionParams()

BOOL DVDLowGetNoDiscOpenPartitionParams ( const u32 partitionWordOffset,
ESTicket * eTicket,
u32 * numTmdBytes,
ESTitleMeta * tmd,
u32 * numCertBytes,
u8 * certificates,
u32 * dataWordOffset,
u8 * h3HashPtr,
DVDLowCallback callback )

◆ DVDLowGetStatusRegister()

u32 DVDLowGetStatusRegister ( void )

◆ DVDLowInit()

BOOL DVDLowInit ( void )

◆ DVDLowInquiry()

BOOL DVDLowInquiry ( DVDDriveInfo * info,
DVDLowCallback callback )

◆ DVDLowMaskCoverInterrupt()

BOOL DVDLowMaskCoverInterrupt ( void )

◆ DVDLowOpenPartition()

BOOL DVDLowOpenPartition ( const u32 partitionWordOffset,
const ESTicket * const eTicket,
const u32 numCertBytes,
const u8 * const certificates,
ESTitleMeta * tmd,
DVDLowCallback callback )

◆ DVDLowOpenPartitionWithTmdAndTicketView()

BOOL DVDLowOpenPartitionWithTmdAndTicketView ( const u32 partitionWordOffset,
const ESTicketView * const eTicketView,
const u32 numTmdBytes,
const ESTitleMeta * const tmd,
const u32 numCertBytes,
const u8 * const certificates,
DVDLowCallback callback )

◆ DVDLowPrepareControlRegister()

BOOL DVDLowPrepareControlRegister ( DVDLowCallback callback)

◆ DVDLowPrepareCoverRegister()

BOOL DVDLowPrepareCoverRegister ( DVDLowCallback callback)

◆ DVDLowPrepareStatusRegister()

BOOL DVDLowPrepareStatusRegister ( DVDLowCallback callback)

◆ DVDLowRead()

BOOL DVDLowRead ( void * addr,
u32 length,
u32 offset,
DVDLowCallback callback )

◆ DVDLowReadDiskID()

BOOL DVDLowReadDiskID ( DVDDiskID * diskID,
DVDLowCallback callback )

◆ DVDLowReportKey()

BOOL DVDLowReportKey ( DVDVideoReportKey * reportKey,
u32 format,
u32 lsn,
DVDLowCallback callback )

◆ DVDLowRequestError()

BOOL DVDLowRequestError ( DVDLowCallback callback)

◆ DVDLowReset()

BOOL DVDLowReset ( DVDLowCallback callback)

◆ DVDLowSeek()

BOOL DVDLowSeek ( u32 offset,
DVDLowCallback callback )

◆ DVDLowSetMaximumRotation()

BOOL DVDLowSetMaximumRotation ( u32 subcmd,
DVDLowCallback callback )

◆ DVDLowSetSpinupFlag()

BOOL DVDLowSetSpinupFlag ( u32 spinUp)

◆ DVDLowUnencryptedRead()

BOOL DVDLowUnencryptedRead ( void * destAddr,
u32 length,
u32 wordOffset,
DVDLowCallback callback )

◆ DVDLowUnmaskStatusInterrupts()

BOOL DVDLowUnmaskStatusInterrupts ( void )

◆ DVDOpen()

BOOL DVDOpen ( const char * fileName,
DVDFileInfo * fileInfo )

◆ DVDOpenDir()

int DVDOpenDir ( const char * dirName,
DVDDir * dir )

◆ DVDPause()

void DVDPause ( void )

◆ DVDReadAbsAsyncForBS()

int DVDReadAbsAsyncForBS ( DVDCommandBlock * block,
void * addr,
s32 length,
s32 offset,
DVDCBCallback callback )

◆ DVDReadAbsAsyncPrio()

int DVDReadAbsAsyncPrio ( DVDCommandBlock * block,
void * addr,
s32 length,
s32 offset,
DVDCBCallback callback,
s32 prio )

◆ DVDReadAsyncPrio()

BOOL DVDReadAsyncPrio ( DVDFileInfo * fileInfo,
void * addr,
s32 length,
s32 offset,
DVDCallback callback,
s32 prio )

◆ DVDReadDir()

int DVDReadDir ( DVDDir * dir,
DVDDirEntry * dirent )

◆ DVDReadDiskID()

int DVDReadDiskID ( DVDCommandBlock * block,
DVDDiskID * diskID,
DVDCBCallback callback )

◆ DVDReadPrio()

s32 DVDReadPrio ( DVDFileInfo * fileInfo,
void * addr,
s32 length,
s32 offset,
s32 prio )

◆ DVDReset()

void DVDReset ( void )

◆ DVDResetRequired()

int DVDResetRequired ( void )

◆ DVDResume()

void DVDResume ( void )

◆ DVDRewindDir()

void DVDRewindDir ( DVDDir * dir)

◆ DVDSeekAbsAsyncPrio()

int DVDSeekAbsAsyncPrio ( DVDCommandBlock * block,
s32 offset,
DVDCBCallback callback,
s32 prio )

◆ DVDSeekAsyncPrio()

int DVDSeekAsyncPrio ( DVDFileInfo * fileInfo,
s32 offset,
void(* callback )(s32, DVDFileInfo *),
s32 prio )

◆ DVDSeekPrio()

s32 DVDSeekPrio ( DVDFileInfo * fileInfo,
s32 offset,
s32 prio )

◆ DVDSetAutoFatalMessaging()

int DVDSetAutoFatalMessaging ( BOOL enable)

◆ DVDSetAutoInvalidation()

BOOL DVDSetAutoInvalidation ( BOOL autoInval)

◆ DVDStopMotor()

s32 DVDStopMotor ( DVDCommandBlock * block)

◆ DVDStopMotorAsync()

int DVDStopMotorAsync ( DVDCommandBlock * block,
DVDCBCallback callback )