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  DVDDirectory
 
struct  DVDDirectoryEntry
 
struct  DVDDiskID
 
struct  DVDCommandBlock
 
struct  DVDFileInfo
 
struct  DVDDriveInfo
 
struct  DVDBB1
 
struct  DVDBB2
 

Typedefs

typedef enum DVDState DVDState
 
typedef enum DVDResult DVDResult
 
typedef struct DVDDirectory DVDDirectory
 
typedef struct DVDDirectoryEntry DVDDirectoryEntry
 
typedef struct DVDDiskID DVDDiskID
 
typedef void(* DVDCBCallback) (s32 result, struct DVDCommandBlock *block)
 
typedef void(* DVDCallback) (s32 result, struct DVDFileInfo *info)
 
typedef struct DVDCommandBlock DVDCommandBlock
 
typedef struct DVDFileInfo DVDFileInfo
 
typedef struct DVDDriveInfo DVDDriveInfo
 
typedef struct DVDBB1 DVDBB1
 
typedef struct DVDBB2 DVDBB2
 
typedef void(* DVDOptionalCommandChecker) (DVDCommandBlock *block, void(*cb) (u32 intType))
 

Enumerations

enum  DVDState {
  DVD_STATE_END = 0x0 , DVD_STATE_BUSY = 0x1 , DVD_STATE_WAITING = 0x2 , DVD_STATE_COVER_CLOSED = 0x3 ,
  DVD_STATE_NO_DISK = 0x4 , DVD_STATE_COVER_OPEN = 0x5 , DVD_STATE_WRONG_DISK = 0x6 , DVD_STATE_MOTOR_STOPPED = 0x7 ,
  DVD_STATE_IGNORED = 0x8 , DVD_STATE_CANCELED = 0xa , DVD_STATE_RETRY = 0xb , DVD_STATE_FATAL_ERROR = -1
}
 
enum  DVDResult { DVD_RESULT_GOOD = 0 , DVD_RESULT_FATAL_ERROR = -1 , DVD_RESULT_IGNORED = -2 , DVD_RESULT_CANCELED = -3 }
 

Functions

void DVDInit (void)
 
BOOL DVDOpen (const char *filename, DVDFileInfo *fileinfo)
 
BOOL DVDClose (DVDFileInfo *fileinfo)
 
BOOL DVDReadPrio (DVDFileInfo *fileinfo, void *, s32, s32, s32)
 
DVDDiskIDDVDGetCurrentDiskID (void)
 
BOOL DVDFastOpen (long, DVDFileInfo *fileinfo)
 
s32 DVDGetCommandBlockStatus (const DVDCommandBlock *block)
 
BOOL DVDReadAsyncPrio (DVDFileInfo *fileinfo, void *, long, long, DVDCallback, long)
 
int DVDConvertPathToEntrynum (const char *)
 
s32 DVDGetDriveStatus (void)
 
BOOL DVDCheckDisk (void)
 
BOOL DVDChangeDir (const char *dirname)
 
BOOL DVDCloseDir (DVDDirectory *dir)
 
BOOL DVDOpenDir (const char *, DVDDirectory *dir)
 
BOOL DVDReadDir (DVDDirectory *dir, DVDDirectoryEntry *entry)
 
BOOL DVDReadAbsAsyncPrio (DVDCommandBlock *block, void *addr, s32 length, s32 offset, DVDCBCallback callback, s32 prio)
 
BOOL DVDReadAbsAsyncForBS (DVDCommandBlock *block, void *addr, s32 length, s32 offset, DVDCBCallback callback)
 
BOOL DVDReadDiskID (DVDCommandBlock *block, DVDDiskID *diskID, DVDCBCallback callback)
 
BOOL DVDCancelStreamAsync (DVDCommandBlock *block, DVDCBCallback callback)
 
BOOL DVDInquiryAsync (DVDCommandBlock *block, DVDDriveInfo *info, DVDCBCallback callback)
 
void DVDReset (void)
 
BOOL DVDSetAutoInvalidation (BOOL autoInval)
 
void DVDResume (void)
 
static BOOL DVDCancelAsync (DVDCommandBlock *block, DVDCBCallback callback)
 
s32 DVDCancel (DVDCommandBlock *block)
 
void __DVDPrepareResetAsync (DVDCBCallback callbac)
 
BOOL DVDCompareDiskID (DVDDiskID *id1, DVDDiskID *id2)
 
DVDCommandBlock__DVDPopWaitingQueue (void)
 

Typedef Documentation

◆ DVDBB1

◆ DVDBB2

◆ DVDCallback

typedef void(* DVDCallback) (s32 result, struct DVDFileInfo *info)

◆ DVDCBCallback

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

◆ DVDCommandBlock

◆ DVDDirectory

◆ DVDDirectoryEntry

◆ DVDDiskID

◆ DVDDriveInfo

◆ DVDFileInfo

◆ DVDOptionalCommandChecker

typedef void(* DVDOptionalCommandChecker) (DVDCommandBlock *block, void(*cb)(u32 intType))

◆ DVDResult

◆ DVDState

Enumeration Type Documentation

◆ DVDResult

Enumerator
DVD_RESULT_GOOD 
DVD_RESULT_FATAL_ERROR 
DVD_RESULT_IGNORED 
DVD_RESULT_CANCELED 

◆ DVDState

Enumerator
DVD_STATE_END 
DVD_STATE_BUSY 
DVD_STATE_WAITING 
DVD_STATE_COVER_CLOSED 
DVD_STATE_NO_DISK 
DVD_STATE_COVER_OPEN 
DVD_STATE_WRONG_DISK 
DVD_STATE_MOTOR_STOPPED 
DVD_STATE_IGNORED 
DVD_STATE_CANCELED 
DVD_STATE_RETRY 
DVD_STATE_FATAL_ERROR 

Function Documentation

◆ __DVDPopWaitingQueue()

DVDCommandBlock * __DVDPopWaitingQueue ( void  )

◆ __DVDPrepareResetAsync()

void __DVDPrepareResetAsync ( DVDCBCallback  callbac)

◆ DVDCancel()

s32 DVDCancel ( DVDCommandBlock block)

◆ DVDCancelAsync()

static BOOL DVDCancelAsync ( DVDCommandBlock block,
DVDCBCallback  callback 
)
static

◆ DVDCancelStreamAsync()

BOOL DVDCancelStreamAsync ( DVDCommandBlock block,
DVDCBCallback  callback 
)

◆ DVDChangeDir()

BOOL DVDChangeDir ( const char dirname)

◆ DVDCheckDisk()

BOOL DVDCheckDisk ( void  )

◆ DVDClose()

BOOL DVDClose ( DVDFileInfo fileinfo)

◆ DVDCloseDir()

BOOL DVDCloseDir ( DVDDirectory dir)

◆ DVDCompareDiskID()

BOOL DVDCompareDiskID ( DVDDiskID id1,
DVDDiskID id2 
)

◆ DVDConvertPathToEntrynum()

int DVDConvertPathToEntrynum ( const char path)

◆ DVDFastOpen()

BOOL DVDFastOpen ( long  ,
DVDFileInfo fileinfo 
)

◆ DVDGetCommandBlockStatus()

s32 DVDGetCommandBlockStatus ( const DVDCommandBlock block)

◆ DVDGetCurrentDiskID()

DVDDiskID * DVDGetCurrentDiskID ( void  )

◆ DVDGetDriveStatus()

s32 DVDGetDriveStatus ( void  )

◆ DVDInit()

void DVDInit ( void  )

◆ DVDInquiryAsync()

BOOL DVDInquiryAsync ( DVDCommandBlock block,
DVDDriveInfo info,
DVDCBCallback  callback 
)

◆ DVDOpen()

BOOL DVDOpen ( const char filename,
DVDFileInfo fileinfo 
)

◆ DVDOpenDir()

BOOL DVDOpenDir ( const char dirName,
DVDDirectory dir 
)

◆ DVDReadAbsAsyncForBS()

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

◆ DVDReadAbsAsyncPrio()

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

◆ DVDReadAsyncPrio()

BOOL DVDReadAsyncPrio ( DVDFileInfo fileinfo,
void ,
long  ,
long  ,
DVDCallback  ,
long   
)

◆ DVDReadDir()

BOOL DVDReadDir ( DVDDirectory dir,
DVDDirectoryEntry entry 
)

◆ DVDReadDiskID()

BOOL DVDReadDiskID ( DVDCommandBlock block,
DVDDiskID diskID,
DVDCBCallback  callback 
)

◆ DVDReadPrio()

BOOL DVDReadPrio ( DVDFileInfo fileinfo,
void addr,
s32  length,
s32  offset,
s32  prio 
)

◆ DVDReset()

void DVDReset ( void  )

◆ DVDResume()

void DVDResume ( void  )

◆ DVDSetAutoInvalidation()

BOOL DVDSetAutoInvalidation ( BOOL  autoInval)