summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/io/ai.c
blob: 4ece0f1a6895bdeaf56405b13594ac20ed471f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "PR/os_internal.h"
#include "PR/rcp.h"

// TODO: this comes from a header
#ident "$Revision: 1.17 $"

s32 __osAiDeviceBusy(void) {
    register s32 status = IO_READ(AI_STATUS_REG);

    if (status & AI_STATUS_FIFO_FULL) {
        return TRUE;
    } else {
        return FALSE;
    }
}