move to header

This commit is contained in:
Alejandro Javier Asenjo Nitti
2023-10-18 10:38:09 -03:00
parent 4e1b602d1e
commit 02784c1865
3 changed files with 12 additions and 7 deletions
+1 -7
View File
@@ -1,12 +1,6 @@
#include "global.h"
#include "PR/rcp.h"
// TODO: Put in proper header:
typedef unsigned long int uintptr_t;
#define HW_REG(reg, type) *(volatile type*)(uintptr_t)((reg) | 0xa0000000)
#define AI_STATUS_REG 0x0450000C
#define AI_STATUS_AI_FULL (1 << 31)
#include "hardware.h"
s32 __osAiDeviceBusy(void) {
register s32 status = HW_REG(AI_STATUS_REG, u32);