Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
dvdlow.c File Reference

Classes

struct  DVDBuffer
 
struct  DVDCommand
 

Typedefs

typedef struct DVDBuffer DVDBuffer
 
typedef struct DVDCommand DVDCommand
 

Functions

void __DVDInitWA ()
 
void __DVDInterruptHandler (u32 arg0, OSContext *context)
 
static void AlarmHandler ()
 
static void AlarmHandlerForTimeout ()
 
static void Read (void *arg0, u32 arg1, u32 arg2, DVDLowCallback cb)
 
static void SeekTwiceBeforeRead (void *arg0, u32 arg1, u32 arg2, DVDLowCallback cb)
 
BOOL DVDLowRead (void *arg0, u32 arg1, u32 arg2, DVDLowCallback cb)
 
BOOL DVDLowSeek (u32 arg0, DVDLowCallback cb)
 
BOOL DVDLowWaitCoverClose (DVDLowCallback cb)
 
BOOL DVDLowReadDiskID (u32 arg0, DVDLowCallback cb)
 
BOOL DVDLowStopMotor (DVDLowCallback cb)
 
BOOL DVDLowRequestError (DVDLowCallback cb)
 
BOOL DVDLowInquiry (u32 arg0, DVDLowCallback cb)
 
BOOL DVDLowAudioStream (u32 arg0, u32 arg1, u32 arg2, DVDLowCallback cb)
 
BOOL DVDLowRequestAudioStatus (u32 arg0, DVDLowCallback cb)
 
BOOL DVDLowAudioBufferConfig (s32 arg0, u32 arg1, DVDLowCallback cb)
 
void DVDLowReset ()
 
BOOL DVDLowBreak ()
 
DVDLowCallback DVDLowClearCallback ()
 
void __DVDLowSetWAType (u32 arg0, u32 arg1)
 
BOOL __DVDLowTestAlarm (OSAlarm *alarm)
 
static void AlarmHandler (OSAlarm *alarm, OSContext *context)
 
static void AlarmHandlerForTimeout (OSAlarm *alarm, OSContext *context)
 
static void __setAlarm (u32 seconds)
 
BOOL HitCache ()
 
static void DoJustRead (void *addr, u32 length, u32 offset, DVDLowCallback callback)
 
static void WaitBeforeRead (void *addr, u32 length, u32 offset, DVDLowCallback callback, OSTime timeout)
 

Variables

static DVDCommand CommandList [3]
 
static volatile BOOL StopAtNextInt
 
static u32 LastLength
 
static DVDLowCallback Callback
 
static DVDLowCallback ResetCoverCallback
 
static volatile OSTime LastResetEnd
 
static volatile u32 ResetOccurred
 
static volatile BOOL WaitingCoverClose
 
static BOOL Breaking
 
static volatile u32 WorkAroundType
 
static u32 WorkAroundSeekLocation [2]
 
static volatile OSTime LastReadFinished
 
static OSTime LastReadIssued
 
static volatile BOOL LastCommandWasRead
 
static volatile u32 NextCommandNumber
 
static OSAlarm AlarmForWA
 
static OSAlarm AlarmForTimeout
 
static OSAlarm AlarmForBreak
 
static DVDBuffer Prev
 
static DVDBuffer Curr
 
static BOOL FirstRead = TRUE
 

Typedef Documentation

◆ DVDBuffer

◆ DVDCommand

Function Documentation

◆ __DVDInitWA()

void __DVDInitWA ( )

◆ __DVDInterruptHandler()

void __DVDInterruptHandler ( u32  arg0,
OSContext context 
)

◆ __DVDLowSetWAType()

void __DVDLowSetWAType ( u32  arg0,
u32  arg1 
)

◆ __DVDLowTestAlarm()

BOOL __DVDLowTestAlarm ( OSAlarm alarm)

◆ __setAlarm()

static void __setAlarm ( u32  seconds)
static

◆ AlarmHandler() [1/2]

static void AlarmHandler ( )
static

◆ AlarmHandler() [2/2]

static void AlarmHandler ( OSAlarm alarm,
OSContext context 
)
static

◆ AlarmHandlerForTimeout() [1/2]

static void AlarmHandlerForTimeout ( )
static

◆ AlarmHandlerForTimeout() [2/2]

static void AlarmHandlerForTimeout ( OSAlarm alarm,
OSContext context 
)
static

◆ DoJustRead()

static void DoJustRead ( void addr,
u32  length,
u32  offset,
DVDLowCallback  callback 
)
static

◆ DVDLowAudioBufferConfig()

BOOL DVDLowAudioBufferConfig ( s32  arg0,
u32  arg1,
DVDLowCallback  cb 
)

◆ DVDLowAudioStream()

BOOL DVDLowAudioStream ( u32  arg0,
u32  arg1,
u32  arg2,
DVDLowCallback  cb 
)

◆ DVDLowBreak()

BOOL DVDLowBreak ( )

◆ DVDLowClearCallback()

DVDLowCallback DVDLowClearCallback ( )

◆ DVDLowInquiry()

BOOL DVDLowInquiry ( u32  arg0,
DVDLowCallback  cb 
)

◆ DVDLowRead()

BOOL DVDLowRead ( void arg0,
u32  arg1,
u32  arg2,
DVDLowCallback  cb 
)

◆ DVDLowReadDiskID()

BOOL DVDLowReadDiskID ( u32  arg0,
DVDLowCallback  cb 
)

◆ DVDLowRequestAudioStatus()

BOOL DVDLowRequestAudioStatus ( u32  arg0,
DVDLowCallback  cb 
)

◆ DVDLowRequestError()

BOOL DVDLowRequestError ( DVDLowCallback  cb)

◆ DVDLowReset()

void DVDLowReset ( )

◆ DVDLowSeek()

BOOL DVDLowSeek ( u32  arg0,
DVDLowCallback  cb 
)

◆ DVDLowStopMotor()

BOOL DVDLowStopMotor ( DVDLowCallback  cb)

◆ DVDLowWaitCoverClose()

BOOL DVDLowWaitCoverClose ( DVDLowCallback  cb)

◆ HitCache()

BOOL HitCache ( )

◆ Read()

void Read ( void arg0,
u32  arg1,
u32  arg2,
DVDLowCallback  cb 
)
static

◆ SeekTwiceBeforeRead()

void SeekTwiceBeforeRead ( void arg0,
u32  arg1,
u32  arg2,
DVDLowCallback  cb 
)
static

◆ WaitBeforeRead()

static void WaitBeforeRead ( void addr,
u32  length,
u32  offset,
DVDLowCallback  callback,
OSTime  timeout 
)
static

Variable Documentation

◆ AlarmForBreak

OSAlarm AlarmForBreak
static

◆ AlarmForTimeout

OSAlarm AlarmForTimeout
static

◆ AlarmForWA

OSAlarm AlarmForWA
static

◆ Breaking

BOOL Breaking
static

◆ Callback

DVDLowCallback Callback
static

◆ CommandList

DVDCommand CommandList[3]
static

◆ Curr

DVDBuffer Curr
static

◆ FirstRead

BOOL FirstRead = TRUE
static

◆ LastCommandWasRead

volatile BOOL LastCommandWasRead
static

◆ LastLength

u32 LastLength
static

◆ LastReadFinished

volatile OSTime LastReadFinished
static

◆ LastReadIssued

OSTime LastReadIssued
static

◆ LastResetEnd

volatile OSTime LastResetEnd
static

◆ NextCommandNumber

volatile u32 NextCommandNumber
static

◆ Prev

DVDBuffer Prev
static

◆ ResetCoverCallback

DVDLowCallback ResetCoverCallback
static

◆ ResetOccurred

volatile u32 ResetOccurred
static

◆ StopAtNextInt

volatile BOOL StopAtNextInt
static

◆ WaitingCoverClose

volatile BOOL WaitingCoverClose
static

◆ WorkAroundSeekLocation

u32 WorkAroundSeekLocation[2]
static

◆ WorkAroundType

volatile u32 WorkAroundType
static