2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_DB
|
|
|
|
#define _DOLPHIN_DB
|
2022-03-23 21:22:48 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-10-13 16:33:30 +00:00
|
|
|
#define OS_DBINTERFACE_ADDR 0x00000040
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-10-13 16:33:30 +00:00
|
|
|
typedef struct DBInterface
|
|
|
|
{
|
|
|
|
u32 bPresent;
|
|
|
|
u32 exceptionMask;
|
|
|
|
void (*ExceptionDestination) ( void );
|
|
|
|
void *exceptionReturn;
|
|
|
|
} DBInterface;
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-10-13 16:33:30 +00:00
|
|
|
extern DBInterface* __DBInterface;
|
2022-03-23 21:22:48 +00:00
|
|
|
|
|
|
|
void DBInit(void);
|
|
|
|
void DBInitComm(int* inputFlagPtr, int* mtrCallback);
|
|
|
|
static void __DBExceptionDestination(void);
|
2022-11-03 08:19:58 +00:00
|
|
|
void DBPrintf(char* format, ...);
|
2022-03-23 21:22:48 +00:00
|
|
|
|
2022-04-10 00:17:06 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_DB
|