|
SSBM Decomp
|
#include <dolphin.h>#include "__dvd.h"#include "os/__os.h"#include <dolphin/dvd.h>#include <dolphin/os.h>Functions | |
| static unsigned char *tmpBuffer[32] | ATTRIBUTE_ALIGN (32) |
| static void | stateReadingFST () |
| static void | cbForStateReadingFST (unsigned long intType) |
| static void | stateError () |
| static void | stateGettingError () |
| static unsigned long | CategorizeError (unsigned long error) |
| static int | ResetWorkAround (unsigned long error) |
| static void | cbForStateGettingError (unsigned long intType) |
| static void | stateGoToRetry () |
| static void | cbForStateGoToRetry (unsigned long intType) |
| static void | stateCheckID () |
| static void | stateCheckID3 () |
| static void | stateCheckID2 () |
| static void | cbForStateCheckID1 (unsigned long intType) |
| static void | cbForStateCheckID2 (unsigned long intType) |
| static void | cbForStateCheckID3 (unsigned long intType) |
| static void | stateCoverClosed () |
| static void | stateCoverClosed_CMD () |
| static void | cbForStateCoverClosed (unsigned long intType) |
| static void | stateMotorStopped () |
| static void | cbForStateMotorStopped (unsigned long intType) |
| static void | stateReady () |
| static void | stateBusy (struct DVDCommandBlock *block) |
| static void | cbForStateBusy (unsigned long intType) |
| static int | issueCommand (long prio, struct DVDCommandBlock *block) |
| static void | cbForCancelStreamSync (long result, struct DVDCommandBlock *block) |
| static void | cbForStopStreamAtEndSync (long result, struct DVDCommandBlock *block) |
| static void | cbForGetStreamErrorStatusSync (long result, struct DVDCommandBlock *block) |
| static void | cbForGetStreamPlayAddrSync (long result, struct DVDCommandBlock *block) |
| static void | cbForGetStreamStartAddrSync (long result, struct DVDCommandBlock *block) |
| static void | cbForGetStreamLengthSync (long result, struct DVDCommandBlock *block) |
| static void | cbForChangeDiskSync () |
| static void | cbForInquirySync (long result, struct DVDCommandBlock *block) |
| static void | cbForCancelSync () |
| static void | cbForCancelAllSync () |
| void | DVDInit () |
| static void | stateError (int code) |
| static void | cbForStateError (unsigned long intType) |
| static void | stateTimeout (void) |
| static BOOL | cancel_inline (int resume) |
| static void | cbForUnrecoveredError (unsigned long intType) |
| static void | cbForUnrecoveredErrorRetry (unsigned long intType) |
| static void | AlarmHandler (OSAlarm *, OSContext *) |
| int | DVDReadAbsAsyncPrio (struct DVDCommandBlock *block, void *addr, long length, long offset, void(*callback)(long, struct DVDCommandBlock *), long prio) |
| int | DVDSeekAbsAsyncPrio (struct DVDCommandBlock *block, long offset, void(*callback)(long, struct DVDCommandBlock *), long prio) |
| int | DVDReadAbsAsyncForBS (struct DVDCommandBlock *block, void *addr, long length, long offset, void(*callback)(long, struct DVDCommandBlock *)) |
| int | DVDReadDiskID (struct DVDCommandBlock *block, struct DVDDiskID *diskID, void(*callback)(long, struct DVDCommandBlock *)) |
| int | DVDPrepareStreamAbsAsync (struct DVDCommandBlock *block, unsigned long length, unsigned long offset, void(*callback)(long, struct DVDCommandBlock *)) |
| int | DVDCancelStreamAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDCancelStream (struct DVDCommandBlock *block) |
| int | DVDStopStreamAtEndAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDStopStreamAtEnd (struct DVDCommandBlock *block) |
| int | DVDGetStreamErrorStatusAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDGetStreamErrorStatus (struct DVDCommandBlock *block) |
| int | DVDGetStreamPlayAddrAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDGetStreamPlayAddr (struct DVDCommandBlock *block) |
| int | DVDGetStreamStartAddrAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDGetStreamStartAddr (struct DVDCommandBlock *block) |
| int | DVDGetStreamLengthAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDGetStreamLength (struct DVDCommandBlock *block) |
| void | __DVDAudioBufferConfig (struct DVDCommandBlock *block, unsigned long enable, unsigned long size, void(*callback)(long, struct DVDCommandBlock *)) |
| int | DVDChangeDiskAsyncForBS (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| int | DVDChangeDiskAsync (struct DVDCommandBlock *block, struct DVDDiskID *id, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDChangeDisk (struct DVDCommandBlock *block, struct DVDDiskID *id) |
| int | DVDInquiryAsync (struct DVDCommandBlock *block, struct DVDDriveInfo *info, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDInquiry (struct DVDCommandBlock *block, struct DVDDriveInfo *info) |
| void | DVDReset () |
| int | DVDResetRequired () |
| long | DVDGetCommandBlockStatus (struct DVDCommandBlock *block) |
| long | DVDGetDriveStatus () |
| int | DVDSetAutoInvalidation (int autoInval) |
| void | DVDPause () |
| void | DVDResume () |
| int | DVDCancelAsync (struct DVDCommandBlock *block, void(*callback)(long, struct DVDCommandBlock *)) |
| long | DVDCancel (volatile struct DVDCommandBlock *block) |
| int | DVDCancelAllAsync (DVDCBCallback callback) |
| long | DVDCancelAll (void) |
| struct DVDDiskID * | DVDGetCurrentDiskID () |
| BOOL | DVDCheckDisk (void) |
| void | __DVDPrepareResetAsync (DVDCBCallback callback) |
Variables | |
| OSThreadQueue | __DVDThreadQueue |
| static struct DVDCommandBlock | DummyCommandBlock |
| static OSAlarm | alarm |
| static int | autoInvalidation = 1 |
| static struct DVDCommandBlock * | executing |
| static void * | tmp |
| static struct DVDDiskID * | currID |
| static struct OSBootInfo_s * | bootInfo |
| static volatile int | PauseFlag |
| static volatile int | PausingFlag |
| static int | AutoFinishing |
| static BOOL | FatalErrorFlag |
| static volatile unsigned long | CurrCommand |
| static volatile unsigned long | Canceling |
| static struct DVDCommandBlock * | CancelingCommandBlock |
| static void(* | CancelCallback )(long, struct DVDCommandBlock *) |
| static volatile unsigned long | ResumeFromHere |
| static volatile unsigned long | CancelLastError |
| static unsigned long | LastError |
| static volatile long | NumInternalRetry |
| static int | ResetRequired |
| static int | CancelAllSyncComplete |
| static volatile unsigned long | ResetCount |
| static int | FirstTimeInBootrom |
| static long | ResultForSyncCommand |
| static int | DVDInitialized |
| void(* | LastState )(struct DVDCommandBlock *) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void DVDInit | ( | ) |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
| int DVDReadAbsAsyncPrio | ( | struct DVDCommandBlock * | block, |
| void * | addr, | ||
| long | length, | ||
| long | offset, | ||
| void(* | callback )(long, struct DVDCommandBlock *), | ||
| long | prio ) |
| int DVDSeekAbsAsyncPrio | ( | struct DVDCommandBlock * | block, |
| long | offset, | ||
| void(* | callback )(long, struct DVDCommandBlock *), | ||
| long | prio ) |
| int DVDReadAbsAsyncForBS | ( | struct DVDCommandBlock * | block, |
| void * | addr, | ||
| long | length, | ||
| long | offset, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| int DVDReadDiskID | ( | struct DVDCommandBlock * | block, |
| struct DVDDiskID * | diskID, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| int DVDPrepareStreamAbsAsync | ( | struct DVDCommandBlock * | block, |
| unsigned long | length, | ||
| unsigned long | offset, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| int DVDCancelStreamAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDCancelStream | ( | struct DVDCommandBlock * | block | ) |
| int DVDStopStreamAtEndAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDStopStreamAtEnd | ( | struct DVDCommandBlock * | block | ) |
| int DVDGetStreamErrorStatusAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDGetStreamErrorStatus | ( | struct DVDCommandBlock * | block | ) |
| int DVDGetStreamPlayAddrAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDGetStreamPlayAddr | ( | struct DVDCommandBlock * | block | ) |
| int DVDGetStreamStartAddrAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDGetStreamStartAddr | ( | struct DVDCommandBlock * | block | ) |
| int DVDGetStreamLengthAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDGetStreamLength | ( | struct DVDCommandBlock * | block | ) |
| void __DVDAudioBufferConfig | ( | struct DVDCommandBlock * | block, |
| unsigned long | enable, | ||
| unsigned long | size, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| int DVDChangeDiskAsyncForBS | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| int DVDChangeDiskAsync | ( | struct DVDCommandBlock * | block, |
| struct DVDDiskID * | id, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDChangeDisk | ( | struct DVDCommandBlock * | block, |
| struct DVDDiskID * | id ) |
| int DVDInquiryAsync | ( | struct DVDCommandBlock * | block, |
| struct DVDDriveInfo * | info, | ||
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDInquiry | ( | struct DVDCommandBlock * | block, |
| struct DVDDriveInfo * | info ) |
| void DVDReset | ( | void | ) |
| int DVDResetRequired | ( | ) |
| long DVDGetCommandBlockStatus | ( | struct DVDCommandBlock * | block | ) |
| long DVDGetDriveStatus | ( | ) |
| int DVDSetAutoInvalidation | ( | int | autoInval | ) |
| void DVDPause | ( | ) |
| void DVDResume | ( | ) |
| int DVDCancelAsync | ( | struct DVDCommandBlock * | block, |
| void(* | callback )(long, struct DVDCommandBlock *) ) |
| long DVDCancel | ( | volatile struct DVDCommandBlock * | block | ) |
| int DVDCancelAllAsync | ( | DVDCBCallback | callback | ) |
| long DVDCancelAll | ( | void | ) |
| struct DVDDiskID * DVDGetCurrentDiskID | ( | void | ) |
| BOOL DVDCheckDisk | ( | void | ) |
| void __DVDPrepareResetAsync | ( | DVDCBCallback | callback | ) |
|
extern |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void(* LastState) (struct DVDCommandBlock *) | ( | struct DVDCommandBlock * | ) |