Mario Kart 64
Loading...
Searching...
No Matches
new_func.h
Go to the documentation of this file.
1#ifndef NEW_FUNC_H
2#define NEW_FUNC_H
3
4#include "libultra_internal.h"
5#include "hardware.h"
6
7#define WAIT_ON_IOBUSY(var) \
8 var = HW_REG(PI_STATUS_REG, u32); \
9 while (var & PI_STATUS_IOBUSY) \
10 var = HW_REG(PI_STATUS_REG, u32);
11
12extern u32 EU_D_80302090;
13
14extern OSPiHandle* __osDiskHandle; // possibly __osPiTable
15
16extern volatile u32 __OSGlobalIntMask;
17s32 osEPiRawStartDma(OSPiHandle* arg0, s32 dir, u32 cart_addr, void* dram_addr, u32 size);
18void func_802F4B08(void);
19void func_802F4A20(void);
22void func_802F71F0(void);
23#ifdef VERSION_SH
24void __osSetGlobalIntMask(s32 arg0);
25s32 __osEPiRawReadIo(OSPiHandle* arg0, u32 devAddr, u32* arg2);
26#endif
27
28#endif
s32 __osEPiRawReadIo(OSPiHandle *arg0, u32 devAddr, u32 *data)
Definition __osEPiRawReadIo.c:4
void __osSetGlobalIntMask(s32 arg0)
Definition __osSetGlobalIntMask.c:5
void func_802F4B08(void)
void func_802F71F0(void)
void __osResetGlobalIntMask(u32 mask)
Definition __osResetGlobalIntMask.c:4
u32 EU_D_80302090
s32 osEPiRawStartDma(OSPiHandle *arg0, s32 dir, u32 cart_addr, void *dram_addr, u32 size)
Definition osEPiRawStartDma.c:14
volatile u32 __OSGlobalIntMask
Definition osInitialize.c:18
void func_802F4A20(void)
OSPiHandle * __osDiskHandle
Definition osLeoDiskInit.c:12
void __osEPiRawWriteIo(OSPiHandle *, u32, u32)
Definition __osEPiRawWriteIo.c:4
Definition os_pi.h:28
signed int s32
Definition ultratypes.h:15
unsigned int u32
Definition ultratypes.h:16