mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
* d_a_obj_carry work, SETUP_ACTOR macro * rm headers, add script * progress * macro rename, consistent spacing
31 lines
852 B
C
31 lines
852 B
C
#ifndef OS_DOLPHIN_DOLPHIN_TRK_GLUE_H
|
|
#define OS_DOLPHIN_DOLPHIN_TRK_GLUE_H
|
|
|
|
#include "dolphin/os/OS.h"
|
|
|
|
typedef enum { HARDWARE_GDEV = 0, HARDWARE_DDH = 1, HARDWARE_BBA = 2 } HardwareType;
|
|
|
|
typedef int (*DBCommFunc)();
|
|
typedef int (*DBCommInitFunc)(void*, OSInterruptHandler);
|
|
typedef int (*DBCommReadFunc)(u8*, int);
|
|
typedef int (*DBCommWriteFunc)(const u8*, int);
|
|
|
|
typedef struct DBCommTable {
|
|
DBCommInitFunc initialize_func;
|
|
DBCommFunc initinterrupts_func;
|
|
DBCommFunc shutdown_func;
|
|
DBCommFunc peek_func;
|
|
DBCommReadFunc read_func;
|
|
DBCommWriteFunc write_func;
|
|
DBCommFunc open_func;
|
|
DBCommFunc close_func;
|
|
DBCommFunc pre_continue_func;
|
|
DBCommFunc post_stop_func;
|
|
} DBCommTable;
|
|
|
|
void UnreserveEXI2Port();
|
|
void ReserveEXI2Port();
|
|
s32 TRKWriteUARTN(const void*, u32);
|
|
|
|
#endif /* OS_DOLPHIN_DOLPHIN_TRK_GLUE_H */
|