sm64/lib/src/new_func.h

29 lines
965 B
C
Raw Normal View History

2020-02-03 00:51:26 -05:00
#ifndef NEW_FUNC_H
#define NEW_FUNC_H
2020-06-02 12:44:34 -04:00
2020-02-03 00:51:26 -05:00
#include "libultra_internal.h"
#include "hardware.h"
#define WAIT_ON_IOBUSY(var) \
var = HW_REG(PI_STATUS_REG, u32); \
while (var & PI_STATUS_IOBUSY) \
var = HW_REG(PI_STATUS_REG, u32);
extern u32 EU_D_80302090;
extern OSPiHandle *__osDiskHandle; //possibly __osPiTable
2020-12-03 14:26:38 -05:00
extern volatile u32 __OSGlobalIntMask;
2020-02-03 00:51:26 -05:00
s32 osEPiRawStartDma(OSPiHandle *arg0, s32 dir, u32 cart_addr, void *dram_addr, u32 size);
2020-06-02 12:44:34 -04:00
void func_802F4B08(void);
void func_802F4A20(void);
2020-12-03 14:26:38 -05:00
void __osResetGlobalIntMask(u32 mask);
void __osEPiRawWriteIo(OSPiHandle*, u32, u32);
2020-06-02 12:44:34 -04:00
void func_802F71F0(void);
2020-12-03 14:26:38 -05:00
#ifdef VERSION_SH
void __osSetGlobalIntMask(s32 arg0);
s32 __osEPiRawReadIo(OSPiHandle *arg0, u32 devAddr, u32 *arg2);
#endif
2020-06-02 12:44:34 -04:00
2020-02-03 00:51:26 -05:00
#endif