KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
FIFO

API for checking FIFO statuses. More...

Files

file  fifo.h
 Macros to assess FIFO status.
 

Macros

#define FIFO_STATUS   (*(vuint32 const *)0xa05f688c)
 Address of the FIFO status register. Accessing this value provides the current status of all FIFOs.
 

FIFO Status Indicators

Note
To determine the empty status of a specific FIFO, AND the desired FIFO status mask with the value returned by FIFO_STATUS.

If the resulting value is non-zero, the FIFO is not empty. Otherwise, it is empty.

#define FIFO_AICA   (1 << 0) /** \brief AICA FIFO status mask. */
 
#define FIFO_BBA   (1 << 1) /** \brief BBA FIFO status mask. */
 
#define FIFO_EXT2   (1 << 2) /** \brief EXT2 FIFO status mask. */
 
#define FIFO_EXTDEV   (1 << 3) /** \brief EXTDEV FIFO status mask. */
 
#define FIFO_G2   (1 << 4) /** \brief G2 FIFO status mask. */
 
#define FIFO_SH4   (1 << 5) /** \brief SH4 FIFO status mask. */
 

Detailed Description

API for checking FIFO statuses.

Macro Definition Documentation

◆ FIFO_AICA

#define FIFO_AICA   (1 << 0) /** \brief AICA FIFO status mask. */

◆ FIFO_BBA

#define FIFO_BBA   (1 << 1) /** \brief BBA FIFO status mask. */

◆ FIFO_EXT2

#define FIFO_EXT2   (1 << 2) /** \brief EXT2 FIFO status mask. */

◆ FIFO_EXTDEV

#define FIFO_EXTDEV   (1 << 3) /** \brief EXTDEV FIFO status mask. */

◆ FIFO_G2

#define FIFO_G2   (1 << 4) /** \brief G2 FIFO status mask. */

◆ FIFO_SH4

#define FIFO_SH4   (1 << 5) /** \brief SH4 FIFO status mask. */

◆ FIFO_STATUS

#define FIFO_STATUS   (*(vuint32 const *)0xa05f688c)

Address of the FIFO status register. Accessing this value provides the current status of all FIFOs.