Import gx, PadClamp, rest of mtx, TRK 2.6 and MSL (#525)
* Match mtx and Padclamp.c * Match the rest of GX * Import TRK 2.6 * Import MSL headers and files * Merge some MSL headers into ours
This commit is contained in:
parent
a79294aac0
commit
cdb1d1fc37
113 changed files with 11219 additions and 394 deletions
24
include/TRK_MINNOW_DOLPHIN/Os/dolphin/dolphin_trk.h
Normal file
24
include/TRK_MINNOW_DOLPHIN/Os/dolphin/dolphin_trk.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef OS_DOLPHIN_DOLPHIN_TRK_H
|
||||
#define OS_DOLPHIN_DOLPHIN_TRK_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "PowerPC_EABI_Support/MetroTRK/trk.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
DSError TRKInitializeTarget();
|
||||
|
||||
void EnableMetroTRKInterrupts();
|
||||
u32 TRKTargetTranslate(u32 param_0);
|
||||
void TRK__read_aram(register int c, register u32 p2, void* p3);
|
||||
void TRK__write_aram(register int c, register u32 p2, void* p3);
|
||||
|
||||
void __TRK_copy_vectors(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OS_DOLPHIN_DOLPHIN_TRK_H */
|
||||
45
include/TRK_MINNOW_DOLPHIN/Os/dolphin/dolphin_trk_glue.h
Normal file
45
include/TRK_MINNOW_DOLPHIN/Os/dolphin/dolphin_trk_glue.h
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#ifndef OS_DOLPHIN_DOLPHIN_TRK_GLUE_H
|
||||
#define OS_DOLPHIN_DOLPHIN_TRK_GLUE_H
|
||||
|
||||
#include "dolphin/os.h"
|
||||
#include "PowerPC_EABI_Support/MetroTRK/trk.h"
|
||||
#include "stddef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*DBCommFunc)(void);
|
||||
typedef u32 (*DBPollFunc)(void);
|
||||
typedef void (*DBCommInitFunc)(volatile u8**, __OSInterruptHandler);
|
||||
typedef int (*DBCommReadFunc)(void*, size_t);
|
||||
typedef int (*DBCommWriteFunc)(const void*, size_t);
|
||||
|
||||
typedef struct DBCommTable {
|
||||
DBCommInitFunc initialize_func;
|
||||
DBCommFunc init_interrupts_func;
|
||||
DBPollFunc peek_func;
|
||||
DBCommReadFunc read_func;
|
||||
DBCommWriteFunc write_func;
|
||||
DBCommFunc open_func;
|
||||
DBCommFunc close_func;
|
||||
} DBCommTable;
|
||||
|
||||
DSError TRKInitializeIntDrivenUART(u32 param_0, u32 param_1, u32 param_2,
|
||||
volatile u8** param_3);
|
||||
|
||||
void UnreserveEXI2Port(void);
|
||||
void ReserveEXI2Port(void);
|
||||
int TRKPollUART(void);
|
||||
UARTError TRKReadUARTN(void* bytes, u32 length);
|
||||
UARTError TRKWriteUARTN(const void* bytes, u32 length);
|
||||
void TRKLoadContext(OSContext* ctx, u32 r4);
|
||||
int InitMetroTRKCommTable(int hwId);
|
||||
void EnableEXI2Interrupts(void);
|
||||
void TRK_board_display(char* str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OS_DOLPHIN_DOLPHIN_TRK_GLUE_H */
|
||||
16
include/TRK_MINNOW_DOLPHIN/Os/dolphin/targcont.h
Normal file
16
include/TRK_MINNOW_DOLPHIN/Os/dolphin/targcont.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef OS_DOLPHIN_TARGCONT_H
|
||||
#define OS_DOLPHIN_TARGCONT_H
|
||||
|
||||
#include "PowerPC_EABI_Support/MetroTRK/trk.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
DSError TRKTargetContinue(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OS_DOLPHIN_TARGCONT_H */
|
||||
14
include/TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h
Normal file
14
include/TRK_MINNOW_DOLPHIN/Os/dolphin/usr_put.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef OS_DOLPHIN_USR_PUT_H
|
||||
#define OS_DOLPHIN_USR_PUT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void usr_put_initialize(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OS_DOLPHIN_USR_PUT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue