Mario Kart 64
Loading...
Searching...
No Matches
os.h File Reference
#include <PR/ultratypes.h>
#include <PR/os_message.h>
Include dependency graph for os.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OS_STATE_STOPPED   1
 
#define OS_STATE_RUNNABLE   2
 
#define OS_STATE_RUNNING   4
 
#define OS_STATE_WAITING   8
 
#define OS_NUM_EVENTS   23
 
#define OS_EVENT_SW1   0 /* CPU SW1 interrupt */
 
#define OS_EVENT_SW2   1 /* CPU SW2 interrupt */
 
#define OS_EVENT_CART   2 /* Cartridge interrupt: used by rmon */
 
#define OS_EVENT_COUNTER   3 /* Counter int: used by VI/Timer Mgr */
 
#define OS_EVENT_SP   4 /* SP task done interrupt */
 
#define OS_EVENT_SI   5 /* SI (controller) interrupt */
 
#define OS_EVENT_AI   6 /* AI interrupt */
 
#define OS_EVENT_VI   7 /* VI interrupt: used by VI/Timer Mgr */
 
#define OS_EVENT_PI   8 /* PI interrupt: used by PI Manager */
 
#define OS_EVENT_DP   9 /* DP full sync interrupt */
 
#define OS_EVENT_CPU_BREAK   10 /* CPU breakpoint: used by rmon */
 
#define OS_EVENT_SP_BREAK   11 /* SP breakpoint: used by rmon */
 
#define OS_EVENT_FAULT   12 /* CPU fault event: used by rmon */
 
#define OS_EVENT_THREADSTATUS   13 /* CPU thread status: used by rmon */
 
#define OS_EVENT_PRENMI   14 /* Pre NMI interrupt */
 
#define OS_EVENT_RDB_READ_DONE   15 /* RDB read ok event: used by rmon */
 
#define OS_EVENT_RDB_LOG_DONE   16 /* read of log data complete */
 
#define OS_EVENT_RDB_DATA_DONE   17 /* read of hostio data complete */
 
#define OS_EVENT_RDB_REQ_RAMROM   18 /* host needs ramrom access */
 
#define OS_EVENT_RDB_FREE_RAMROM   19 /* host is done with ramrom access */
 
#define OS_EVENT_RDB_DBG_DONE   20
 
#define OS_EVENT_RDB_FLUSH_PROF   21
 
#define OS_EVENT_RDB_ACK_PROF   22
 
#define OS_FLAG_CPU_BREAK   1 /* Break exception has occurred */
 
#define OS_FLAG_FAULT   2 /* CPU fault has occurred */
 
#define OS_IM_NONE   0x00000001
 
#define OS_IM_SW1   0x00000501
 
#define OS_IM_SW2   0x00000601
 
#define OS_IM_CART   0x00000c01
 
#define OS_IM_PRENMI   0x00001401
 
#define OS_IM_RDBWRITE   0x00002401
 
#define OS_IM_RDBREAD   0x00004401
 
#define OS_IM_COUNTER   0x00008401
 
#define OS_IM_CPU   0x0000ff01
 
#define OS_IM_SP   0x00010401
 
#define OS_IM_SI   0x00020401
 
#define OS_IM_AI   0x00040401
 
#define OS_IM_VI   0x00080401
 
#define OS_IM_PI   0x00100401
 
#define OS_IM_DP   0x00200401
 
#define OS_IM_ALL   0x003fff01
 
#define RCP_IMASK   0x003f0000
 
#define RCP_IMASKSHIFT   16
 
#define OS_PRIORITY_MAX   255
 
#define OS_PRIORITY_VIMGR   254
 
#define OS_PRIORITY_RMON   250
 
#define OS_PRIORITY_RMONSPIN   200
 
#define OS_PRIORITY_PIMGR   150
 
#define OS_PRIORITY_SIMGR   140
 
#define OS_PRIORITY_APPMAX   127
 
#define OS_PRIORITY_IDLE   0 /* Must be 0 */
 
#define OS_MESG_NOBLOCK   0
 
#define OS_MESG_BLOCK   1
 
#define OS_READ   0 /* device -> RDRAM */
 
#define OS_WRITE   1 /* device <- RDRAM */
 
#define OS_OTHERS   2 /* for Leo disk only */
 
#define OS_MESG_TYPE_BASE   (10)
 
#define OS_MESG_TYPE_LOOPBACK   (OS_MESG_TYPE_BASE + 0)
 
#define OS_MESG_TYPE_DMAREAD   (OS_MESG_TYPE_BASE + 1)
 
#define OS_MESG_TYPE_DMAWRITE   (OS_MESG_TYPE_BASE + 2)
 
#define OS_MESG_TYPE_VRETRACE   (OS_MESG_TYPE_BASE + 3)
 
#define OS_MESG_TYPE_COUNTER   (OS_MESG_TYPE_BASE + 4)
 
#define OS_MESG_TYPE_EDMAREAD   (OS_MESG_TYPE_BASE + 5)
 
#define OS_MESG_TYPE_EDMAWRITE   (OS_MESG_TYPE_BASE + 6)
 
#define OS_MESG_PRI_NORMAL   0
 
#define OS_MESG_PRI_HIGH   1
 
#define OS_PM_4K   0x0000000
 
#define OS_PM_16K   0x0006000
 
#define OS_PM_64K   0x001e000
 
#define OS_PM_256K   0x007e000
 
#define OS_PM_1M   0x01fe000
 
#define OS_PM_4M   0x07fe000
 
#define OS_PM_16M   0x1ffe000
 
#define OS_PIM_STACKSIZE   4096
 
#define OS_VIM_STACKSIZE   4096
 
#define OS_SIM_STACKSIZE   4096
 
#define OS_MIN_STACKSIZE   72
 
#define OS_TV_PAL   0
 
#define OS_TV_NTSC   1
 
#define OS_TV_MPAL   2
 
#define OS_VI_NTSC_LPN1   0 /* NTSC */
 
#define OS_VI_NTSC_LPF1   1
 
#define OS_VI_NTSC_LAN1   2
 
#define OS_VI_NTSC_LAF1   3
 
#define OS_VI_NTSC_LPN2   4
 
#define OS_VI_NTSC_LPF2   5
 
#define OS_VI_NTSC_LAN2   6
 
#define OS_VI_NTSC_LAF2   7
 
#define OS_VI_NTSC_HPN1   8
 
#define OS_VI_NTSC_HPF1   9
 
#define OS_VI_NTSC_HAN1   10
 
#define OS_VI_NTSC_HAF1   11
 
#define OS_VI_NTSC_HPN2   12
 
#define OS_VI_NTSC_HPF2   13
 
#define OS_VI_PAL_LPN1   14 /* PAL */
 
#define OS_VI_PAL_LPF1   15
 
#define OS_VI_PAL_LAN1   16
 
#define OS_VI_PAL_LAF1   17
 
#define OS_VI_PAL_LPN2   18
 
#define OS_VI_PAL_LPF2   19
 
#define OS_VI_PAL_LAN2   20
 
#define OS_VI_PAL_LAF2   21
 
#define OS_VI_PAL_HPN1   22
 
#define OS_VI_PAL_HPF1   23
 
#define OS_VI_PAL_HAN1   24
 
#define OS_VI_PAL_HAF1   25
 
#define OS_VI_PAL_HPN2   26
 
#define OS_VI_PAL_HPF2   27
 
#define OS_VI_MPAL_LPN1   28 /* MPAL - mainly Brazil */
 
#define OS_VI_MPAL_LPF1   29
 
#define OS_VI_MPAL_LAN1   30
 
#define OS_VI_MPAL_LAF1   31
 
#define OS_VI_MPAL_LPN2   32
 
#define OS_VI_MPAL_LPF2   33
 
#define OS_VI_MPAL_LAN2   34
 
#define OS_VI_MPAL_LAF2   35
 
#define OS_VI_MPAL_HPN1   36
 
#define OS_VI_MPAL_HPF1   37
 
#define OS_VI_MPAL_HAN1   38
 
#define OS_VI_MPAL_HAF1   39
 
#define OS_VI_MPAL_HPN2   40
 
#define OS_VI_MPAL_HPF2   41
 
#define OS_VI_GAMMA_ON   0x0001
 
#define OS_VI_GAMMA_OFF   0x0002
 
#define OS_VI_GAMMA_DITHER_ON   0x0004
 
#define OS_VI_GAMMA_DITHER_OFF   0x0008
 
#define OS_VI_DIVOT_ON   0x0010
 
#define OS_VI_DIVOT_OFF   0x0020
 
#define OS_VI_DITHER_FILTER_ON   0x0040
 
#define OS_VI_DITHER_FILTER_OFF   0x0080
 
#define OS_VI_BIT_NONINTERLACE   0x0001 /* lo-res */
 
#define OS_VI_BIT_INTERLACE   0x0002 /* lo-res */
 
#define OS_VI_BIT_NORMALINTERLACE   0x0004 /* hi-res */
 
#define OS_VI_BIT_DEFLICKINTERLACE   0x0008 /* hi-res */
 
#define OS_VI_BIT_ANTIALIAS   0x0010
 
#define OS_VI_BIT_POINTSAMPLE   0x0020
 
#define OS_VI_BIT_16PIXEL   0x0040
 
#define OS_VI_BIT_32PIXEL   0x0080
 
#define OS_VI_BIT_LORES   0x0100
 
#define OS_VI_BIT_HIRES   0x0200
 
#define OS_VI_BIT_NTSC   0x0400
 
#define OS_VI_BIT_PAL   0x0800
 
#define LEO_BLOCK_MODE   1
 
#define LEO_TRACK_MODE   2
 
#define LEO_SECTOR_MODE   3
 
#define MAXCONTROLLERS   4
 
#define CONT_NO_RESPONSE_ERROR   0x8
 
#define CONT_OVERRUN_ERROR   0x4
 
#define CONT_ABSOLUTE   0x0001
 
#define CONT_RELATIVE   0x0002
 
#define CONT_JOYPORT   0x0004
 
#define CONT_EEPROM   0x8000
 
#define CONT_EEP16K   0x4000
 
#define CONT_TYPE_MASK   0x1f07
 
#define CONT_TYPE_NORMAL   0x0005
 
#define CONT_TYPE_MOUSE   0x0002
 
#define CONT_CARD_ON   0x01
 
#define CONT_CARD_PULL   0x02
 
#define CONT_ADDR_CRC_ER   0x04
 
#define CONT_EEPROM_BUSY   0x80
 
#define EEPROM_TYPE_4K   0x01
 
#define EEPROM_TYPE_16K   0x02
 
#define CONT_A   0x8000
 
#define CONT_B   0x4000
 
#define CONT_G   0x2000
 
#define CONT_START   0x1000
 
#define CONT_UP   0x0800
 
#define CONT_DOWN   0x0400
 
#define CONT_LEFT   0x0200
 
#define CONT_RIGHT   0x0100
 
#define CONT_L   0x0020
 
#define CONT_R   0x0010
 
#define CONT_E   0x0008
 
#define CONT_D   0x0004
 
#define CONT_C   0x0002
 
#define CONT_F   0x0001
 
#define A_BUTTON   CONT_A
 
#define B_BUTTON   CONT_B
 
#define L_TRIG   CONT_L
 
#define R_TRIG   CONT_R
 
#define Z_TRIG   CONT_G
 
#define START_BUTTON   CONT_START
 
#define U_JPAD   CONT_UP
 
#define L_JPAD   CONT_LEFT
 
#define R_JPAD   CONT_RIGHT
 
#define D_JPAD   CONT_DOWN
 
#define U_CBUTTONS   CONT_E
 
#define L_CBUTTONS   CONT_C
 
#define R_CBUTTONS   CONT_F
 
#define D_CBUTTONS   CONT_D
 
#define OS_PFS_VERSION   0x0200
 
#define OS_PFS_VERSION_HI   (OS_PFS_VERSION >> 8)
 
#define OS_PFS_VERSION_LO   (OS_PFS_VERSION & 255)
 
#define PFS_FILE_NAME_LEN   16
 
#define PFS_FILE_EXT_LEN   4
 
#define BLOCKSIZE   32 /* bytes */
 
#define PFS_ONE_PAGE   8 /* blocks */
 
#define PFS_MAX_BANKS   62
 
#define PFS_READ   0
 
#define PFS_WRITE   1
 
#define PFS_CREATE   2
 
#define PFS_INITIALIZED   0x1
 
#define PFS_CORRUPTED   0x2 /* File system was corrupted */
 
#define PFS_ERR_NOPACK   1 /* no memory card is plugged or */
 
#define PFS_ERR_NEW_PACK   2 /* ram pack has been changed to a */
 
#define PFS_ERR_INCONSISTENT   3 /* need to run Pfschecker */
 
#define PFS_ERR_CONTRFAIL   CONT_OVERRUN_ERROR
 
#define PFS_ERR_INVALID   5 /* invalid parameter or file not exist*/
 
#define PFS_ERR_BAD_DATA   6 /* the data read from pack are bad*/
 
#define PFS_DATA_FULL   7 /* no free pages on ram pack */
 
#define PFS_DIR_FULL   8 /* no free directories on ram pack*/
 
#define PFS_ERR_EXIST   9 /* file exists */
 
#define PFS_ERR_ID_FATAL   10 /* dead ram pack */
 
#define PFS_ERR_DEVICE   11 /* wrong device type*/
 
#define EEPROM_MAXBLOCKS   64
 
#define EEP16K_MAXBLOCKS   256
 
#define EEPROM_BLOCK_SIZE   8
 
#define PI_DOMAIN1   0
 
#define PI_DOMAIN2   1
 
#define PROF_MIN_INTERVAL   50 /* microseconds */
 
#define BOOT_ADDRESS_ULTRA   0x80000400
 
#define BOOT_ADDRESS_COSIM   0x80002000
 
#define BOOT_ADDRESS_EMU   0x20010000
 
#define BOOT_ADDRESS_INDY   0x88100000
 
#define OS_APP_NMI_BUFSIZE   64
 

Macro Definition Documentation

◆ A_BUTTON

#define A_BUTTON   CONT_A

◆ B_BUTTON

#define B_BUTTON   CONT_B

◆ BLOCKSIZE

#define BLOCKSIZE   32 /* bytes */

◆ BOOT_ADDRESS_COSIM

#define BOOT_ADDRESS_COSIM   0x80002000

◆ BOOT_ADDRESS_EMU

#define BOOT_ADDRESS_EMU   0x20010000

◆ BOOT_ADDRESS_INDY

#define BOOT_ADDRESS_INDY   0x88100000

◆ BOOT_ADDRESS_ULTRA

#define BOOT_ADDRESS_ULTRA   0x80000400

◆ CONT_A

#define CONT_A   0x8000

◆ CONT_ABSOLUTE

#define CONT_ABSOLUTE   0x0001

◆ CONT_ADDR_CRC_ER

#define CONT_ADDR_CRC_ER   0x04

◆ CONT_B

#define CONT_B   0x4000

◆ CONT_C

#define CONT_C   0x0002

◆ CONT_CARD_ON

#define CONT_CARD_ON   0x01

◆ CONT_CARD_PULL

#define CONT_CARD_PULL   0x02

◆ CONT_D

#define CONT_D   0x0004

◆ CONT_DOWN

#define CONT_DOWN   0x0400

◆ CONT_E

#define CONT_E   0x0008

◆ CONT_EEP16K

#define CONT_EEP16K   0x4000

◆ CONT_EEPROM

#define CONT_EEPROM   0x8000

◆ CONT_EEPROM_BUSY

#define CONT_EEPROM_BUSY   0x80

◆ CONT_F

#define CONT_F   0x0001

◆ CONT_G

#define CONT_G   0x2000

◆ CONT_JOYPORT

#define CONT_JOYPORT   0x0004

◆ CONT_L

#define CONT_L   0x0020

◆ CONT_LEFT

#define CONT_LEFT   0x0200

◆ CONT_NO_RESPONSE_ERROR

#define CONT_NO_RESPONSE_ERROR   0x8

◆ CONT_OVERRUN_ERROR

#define CONT_OVERRUN_ERROR   0x4

◆ CONT_R

#define CONT_R   0x0010

◆ CONT_RELATIVE

#define CONT_RELATIVE   0x0002

◆ CONT_RIGHT

#define CONT_RIGHT   0x0100

◆ CONT_START

#define CONT_START   0x1000

◆ CONT_TYPE_MASK

#define CONT_TYPE_MASK   0x1f07

◆ CONT_TYPE_MOUSE

#define CONT_TYPE_MOUSE   0x0002

◆ CONT_TYPE_NORMAL

#define CONT_TYPE_NORMAL   0x0005

◆ CONT_UP

#define CONT_UP   0x0800

◆ D_CBUTTONS

#define D_CBUTTONS   CONT_D

◆ D_JPAD

#define D_JPAD   CONT_DOWN

◆ EEP16K_MAXBLOCKS

#define EEP16K_MAXBLOCKS   256

◆ EEPROM_BLOCK_SIZE

#define EEPROM_BLOCK_SIZE   8

◆ EEPROM_MAXBLOCKS

#define EEPROM_MAXBLOCKS   64

◆ EEPROM_TYPE_16K

#define EEPROM_TYPE_16K   0x02

◆ EEPROM_TYPE_4K

#define EEPROM_TYPE_4K   0x01

◆ L_CBUTTONS

#define L_CBUTTONS   CONT_C

◆ L_JPAD

#define L_JPAD   CONT_LEFT

◆ L_TRIG

#define L_TRIG   CONT_L

◆ LEO_BLOCK_MODE

#define LEO_BLOCK_MODE   1

◆ LEO_SECTOR_MODE

#define LEO_SECTOR_MODE   3

◆ LEO_TRACK_MODE

#define LEO_TRACK_MODE   2

◆ MAXCONTROLLERS

#define MAXCONTROLLERS   4

◆ OS_APP_NMI_BUFSIZE

#define OS_APP_NMI_BUFSIZE   64

◆ OS_EVENT_AI

#define OS_EVENT_AI   6 /* AI interrupt */

◆ OS_EVENT_CART

#define OS_EVENT_CART   2 /* Cartridge interrupt: used by rmon */

◆ OS_EVENT_COUNTER

#define OS_EVENT_COUNTER   3 /* Counter int: used by VI/Timer Mgr */

◆ OS_EVENT_CPU_BREAK

#define OS_EVENT_CPU_BREAK   10 /* CPU breakpoint: used by rmon */

◆ OS_EVENT_DP

#define OS_EVENT_DP   9 /* DP full sync interrupt */

◆ OS_EVENT_FAULT

#define OS_EVENT_FAULT   12 /* CPU fault event: used by rmon */

◆ OS_EVENT_PI

#define OS_EVENT_PI   8 /* PI interrupt: used by PI Manager */

◆ OS_EVENT_PRENMI

#define OS_EVENT_PRENMI   14 /* Pre NMI interrupt */

◆ OS_EVENT_RDB_ACK_PROF

#define OS_EVENT_RDB_ACK_PROF   22

◆ OS_EVENT_RDB_DATA_DONE

#define OS_EVENT_RDB_DATA_DONE   17 /* read of hostio data complete */

◆ OS_EVENT_RDB_DBG_DONE

#define OS_EVENT_RDB_DBG_DONE   20

◆ OS_EVENT_RDB_FLUSH_PROF

#define OS_EVENT_RDB_FLUSH_PROF   21

◆ OS_EVENT_RDB_FREE_RAMROM

#define OS_EVENT_RDB_FREE_RAMROM   19 /* host is done with ramrom access */

◆ OS_EVENT_RDB_LOG_DONE

#define OS_EVENT_RDB_LOG_DONE   16 /* read of log data complete */

◆ OS_EVENT_RDB_READ_DONE

#define OS_EVENT_RDB_READ_DONE   15 /* RDB read ok event: used by rmon */

◆ OS_EVENT_RDB_REQ_RAMROM

#define OS_EVENT_RDB_REQ_RAMROM   18 /* host needs ramrom access */

◆ OS_EVENT_SI

#define OS_EVENT_SI   5 /* SI (controller) interrupt */

◆ OS_EVENT_SP

#define OS_EVENT_SP   4 /* SP task done interrupt */

◆ OS_EVENT_SP_BREAK

#define OS_EVENT_SP_BREAK   11 /* SP breakpoint: used by rmon */

◆ OS_EVENT_SW1

#define OS_EVENT_SW1   0 /* CPU SW1 interrupt */

◆ OS_EVENT_SW2

#define OS_EVENT_SW2   1 /* CPU SW2 interrupt */

◆ OS_EVENT_THREADSTATUS

#define OS_EVENT_THREADSTATUS   13 /* CPU thread status: used by rmon */

◆ OS_EVENT_VI

#define OS_EVENT_VI   7 /* VI interrupt: used by VI/Timer Mgr */

◆ OS_FLAG_CPU_BREAK

#define OS_FLAG_CPU_BREAK   1 /* Break exception has occurred */

◆ OS_FLAG_FAULT

#define OS_FLAG_FAULT   2 /* CPU fault has occurred */

◆ OS_IM_AI

#define OS_IM_AI   0x00040401

◆ OS_IM_ALL

#define OS_IM_ALL   0x003fff01

◆ OS_IM_CART

#define OS_IM_CART   0x00000c01

◆ OS_IM_COUNTER

#define OS_IM_COUNTER   0x00008401

◆ OS_IM_CPU

#define OS_IM_CPU   0x0000ff01

◆ OS_IM_DP

#define OS_IM_DP   0x00200401

◆ OS_IM_NONE

#define OS_IM_NONE   0x00000001

◆ OS_IM_PI

#define OS_IM_PI   0x00100401

◆ OS_IM_PRENMI

#define OS_IM_PRENMI   0x00001401

◆ OS_IM_RDBREAD

#define OS_IM_RDBREAD   0x00004401

◆ OS_IM_RDBWRITE

#define OS_IM_RDBWRITE   0x00002401

◆ OS_IM_SI

#define OS_IM_SI   0x00020401

◆ OS_IM_SP

#define OS_IM_SP   0x00010401

◆ OS_IM_SW1

#define OS_IM_SW1   0x00000501

◆ OS_IM_SW2

#define OS_IM_SW2   0x00000601

◆ OS_IM_VI

#define OS_IM_VI   0x00080401

◆ OS_MESG_BLOCK

#define OS_MESG_BLOCK   1

◆ OS_MESG_NOBLOCK

#define OS_MESG_NOBLOCK   0

◆ OS_MESG_PRI_HIGH

#define OS_MESG_PRI_HIGH   1

◆ OS_MESG_PRI_NORMAL

#define OS_MESG_PRI_NORMAL   0

◆ OS_MESG_TYPE_BASE

#define OS_MESG_TYPE_BASE   (10)

◆ OS_MESG_TYPE_COUNTER

#define OS_MESG_TYPE_COUNTER   (OS_MESG_TYPE_BASE + 4)

◆ OS_MESG_TYPE_DMAREAD

#define OS_MESG_TYPE_DMAREAD   (OS_MESG_TYPE_BASE + 1)

◆ OS_MESG_TYPE_DMAWRITE

#define OS_MESG_TYPE_DMAWRITE   (OS_MESG_TYPE_BASE + 2)

◆ OS_MESG_TYPE_EDMAREAD

#define OS_MESG_TYPE_EDMAREAD   (OS_MESG_TYPE_BASE + 5)

◆ OS_MESG_TYPE_EDMAWRITE

#define OS_MESG_TYPE_EDMAWRITE   (OS_MESG_TYPE_BASE + 6)

◆ OS_MESG_TYPE_LOOPBACK

#define OS_MESG_TYPE_LOOPBACK   (OS_MESG_TYPE_BASE + 0)

◆ OS_MESG_TYPE_VRETRACE

#define OS_MESG_TYPE_VRETRACE   (OS_MESG_TYPE_BASE + 3)

◆ OS_MIN_STACKSIZE

#define OS_MIN_STACKSIZE   72

◆ OS_NUM_EVENTS

#define OS_NUM_EVENTS   23

◆ OS_OTHERS

#define OS_OTHERS   2 /* for Leo disk only */

◆ OS_PFS_VERSION

#define OS_PFS_VERSION   0x0200

◆ OS_PFS_VERSION_HI

#define OS_PFS_VERSION_HI   (OS_PFS_VERSION >> 8)

◆ OS_PFS_VERSION_LO

#define OS_PFS_VERSION_LO   (OS_PFS_VERSION & 255)

◆ OS_PIM_STACKSIZE

#define OS_PIM_STACKSIZE   4096

◆ OS_PM_16K

#define OS_PM_16K   0x0006000

◆ OS_PM_16M

#define OS_PM_16M   0x1ffe000

◆ OS_PM_1M

#define OS_PM_1M   0x01fe000

◆ OS_PM_256K

#define OS_PM_256K   0x007e000

◆ OS_PM_4K

#define OS_PM_4K   0x0000000

◆ OS_PM_4M

#define OS_PM_4M   0x07fe000

◆ OS_PM_64K

#define OS_PM_64K   0x001e000

◆ OS_PRIORITY_APPMAX

#define OS_PRIORITY_APPMAX   127

◆ OS_PRIORITY_IDLE

#define OS_PRIORITY_IDLE   0 /* Must be 0 */

◆ OS_PRIORITY_MAX

#define OS_PRIORITY_MAX   255

◆ OS_PRIORITY_PIMGR

#define OS_PRIORITY_PIMGR   150

◆ OS_PRIORITY_RMON

#define OS_PRIORITY_RMON   250

◆ OS_PRIORITY_RMONSPIN

#define OS_PRIORITY_RMONSPIN   200

◆ OS_PRIORITY_SIMGR

#define OS_PRIORITY_SIMGR   140

◆ OS_PRIORITY_VIMGR

#define OS_PRIORITY_VIMGR   254

◆ OS_READ

#define OS_READ   0 /* device -> RDRAM */

◆ OS_SIM_STACKSIZE

#define OS_SIM_STACKSIZE   4096

◆ OS_STATE_RUNNABLE

#define OS_STATE_RUNNABLE   2

◆ OS_STATE_RUNNING

#define OS_STATE_RUNNING   4

◆ OS_STATE_STOPPED

#define OS_STATE_STOPPED   1

◆ OS_STATE_WAITING

#define OS_STATE_WAITING   8

◆ OS_TV_MPAL

#define OS_TV_MPAL   2

◆ OS_TV_NTSC

#define OS_TV_NTSC   1

◆ OS_TV_PAL

#define OS_TV_PAL   0

◆ OS_VI_BIT_16PIXEL

#define OS_VI_BIT_16PIXEL   0x0040

◆ OS_VI_BIT_32PIXEL

#define OS_VI_BIT_32PIXEL   0x0080

◆ OS_VI_BIT_ANTIALIAS

#define OS_VI_BIT_ANTIALIAS   0x0010

◆ OS_VI_BIT_DEFLICKINTERLACE

#define OS_VI_BIT_DEFLICKINTERLACE   0x0008 /* hi-res */

◆ OS_VI_BIT_HIRES

#define OS_VI_BIT_HIRES   0x0200

◆ OS_VI_BIT_INTERLACE

#define OS_VI_BIT_INTERLACE   0x0002 /* lo-res */

◆ OS_VI_BIT_LORES

#define OS_VI_BIT_LORES   0x0100

◆ OS_VI_BIT_NONINTERLACE

#define OS_VI_BIT_NONINTERLACE   0x0001 /* lo-res */

◆ OS_VI_BIT_NORMALINTERLACE

#define OS_VI_BIT_NORMALINTERLACE   0x0004 /* hi-res */

◆ OS_VI_BIT_NTSC

#define OS_VI_BIT_NTSC   0x0400

◆ OS_VI_BIT_PAL

#define OS_VI_BIT_PAL   0x0800

◆ OS_VI_BIT_POINTSAMPLE

#define OS_VI_BIT_POINTSAMPLE   0x0020

◆ OS_VI_DITHER_FILTER_OFF

#define OS_VI_DITHER_FILTER_OFF   0x0080

◆ OS_VI_DITHER_FILTER_ON

#define OS_VI_DITHER_FILTER_ON   0x0040

◆ OS_VI_DIVOT_OFF

#define OS_VI_DIVOT_OFF   0x0020

◆ OS_VI_DIVOT_ON

#define OS_VI_DIVOT_ON   0x0010

◆ OS_VI_GAMMA_DITHER_OFF

#define OS_VI_GAMMA_DITHER_OFF   0x0008

◆ OS_VI_GAMMA_DITHER_ON

#define OS_VI_GAMMA_DITHER_ON   0x0004

◆ OS_VI_GAMMA_OFF

#define OS_VI_GAMMA_OFF   0x0002

◆ OS_VI_GAMMA_ON

#define OS_VI_GAMMA_ON   0x0001

◆ OS_VI_MPAL_HAF1

#define OS_VI_MPAL_HAF1   39

◆ OS_VI_MPAL_HAN1

#define OS_VI_MPAL_HAN1   38

◆ OS_VI_MPAL_HPF1

#define OS_VI_MPAL_HPF1   37

◆ OS_VI_MPAL_HPF2

#define OS_VI_MPAL_HPF2   41

◆ OS_VI_MPAL_HPN1

#define OS_VI_MPAL_HPN1   36

◆ OS_VI_MPAL_HPN2

#define OS_VI_MPAL_HPN2   40

◆ OS_VI_MPAL_LAF1

#define OS_VI_MPAL_LAF1   31

◆ OS_VI_MPAL_LAF2

#define OS_VI_MPAL_LAF2   35

◆ OS_VI_MPAL_LAN1

#define OS_VI_MPAL_LAN1   30

◆ OS_VI_MPAL_LAN2

#define OS_VI_MPAL_LAN2   34

◆ OS_VI_MPAL_LPF1

#define OS_VI_MPAL_LPF1   29

◆ OS_VI_MPAL_LPF2

#define OS_VI_MPAL_LPF2   33

◆ OS_VI_MPAL_LPN1

#define OS_VI_MPAL_LPN1   28 /* MPAL - mainly Brazil */

◆ OS_VI_MPAL_LPN2

#define OS_VI_MPAL_LPN2   32

◆ OS_VI_NTSC_HAF1

#define OS_VI_NTSC_HAF1   11

◆ OS_VI_NTSC_HAN1

#define OS_VI_NTSC_HAN1   10

◆ OS_VI_NTSC_HPF1

#define OS_VI_NTSC_HPF1   9

◆ OS_VI_NTSC_HPF2

#define OS_VI_NTSC_HPF2   13

◆ OS_VI_NTSC_HPN1

#define OS_VI_NTSC_HPN1   8

◆ OS_VI_NTSC_HPN2

#define OS_VI_NTSC_HPN2   12

◆ OS_VI_NTSC_LAF1

#define OS_VI_NTSC_LAF1   3

◆ OS_VI_NTSC_LAF2

#define OS_VI_NTSC_LAF2   7

◆ OS_VI_NTSC_LAN1

#define OS_VI_NTSC_LAN1   2

◆ OS_VI_NTSC_LAN2

#define OS_VI_NTSC_LAN2   6

◆ OS_VI_NTSC_LPF1

#define OS_VI_NTSC_LPF1   1

◆ OS_VI_NTSC_LPF2

#define OS_VI_NTSC_LPF2   5

◆ OS_VI_NTSC_LPN1

#define OS_VI_NTSC_LPN1   0 /* NTSC */

◆ OS_VI_NTSC_LPN2

#define OS_VI_NTSC_LPN2   4

◆ OS_VI_PAL_HAF1

#define OS_VI_PAL_HAF1   25

◆ OS_VI_PAL_HAN1

#define OS_VI_PAL_HAN1   24

◆ OS_VI_PAL_HPF1

#define OS_VI_PAL_HPF1   23

◆ OS_VI_PAL_HPF2

#define OS_VI_PAL_HPF2   27

◆ OS_VI_PAL_HPN1

#define OS_VI_PAL_HPN1   22

◆ OS_VI_PAL_HPN2

#define OS_VI_PAL_HPN2   26

◆ OS_VI_PAL_LAF1

#define OS_VI_PAL_LAF1   17

◆ OS_VI_PAL_LAF2

#define OS_VI_PAL_LAF2   21

◆ OS_VI_PAL_LAN1

#define OS_VI_PAL_LAN1   16

◆ OS_VI_PAL_LAN2

#define OS_VI_PAL_LAN2   20

◆ OS_VI_PAL_LPF1

#define OS_VI_PAL_LPF1   15

◆ OS_VI_PAL_LPF2

#define OS_VI_PAL_LPF2   19

◆ OS_VI_PAL_LPN1

#define OS_VI_PAL_LPN1   14 /* PAL */

◆ OS_VI_PAL_LPN2

#define OS_VI_PAL_LPN2   18

◆ OS_VIM_STACKSIZE

#define OS_VIM_STACKSIZE   4096

◆ OS_WRITE

#define OS_WRITE   1 /* device <- RDRAM */

◆ PFS_CORRUPTED

#define PFS_CORRUPTED   0x2 /* File system was corrupted */

◆ PFS_CREATE

#define PFS_CREATE   2

◆ PFS_DATA_FULL

#define PFS_DATA_FULL   7 /* no free pages on ram pack */

◆ PFS_DIR_FULL

#define PFS_DIR_FULL   8 /* no free directories on ram pack*/

◆ PFS_ERR_BAD_DATA

#define PFS_ERR_BAD_DATA   6 /* the data read from pack are bad*/

◆ PFS_ERR_CONTRFAIL

#define PFS_ERR_CONTRFAIL   CONT_OVERRUN_ERROR

◆ PFS_ERR_DEVICE

#define PFS_ERR_DEVICE   11 /* wrong device type*/

◆ PFS_ERR_EXIST

#define PFS_ERR_EXIST   9 /* file exists */

◆ PFS_ERR_ID_FATAL

#define PFS_ERR_ID_FATAL   10 /* dead ram pack */

◆ PFS_ERR_INCONSISTENT

#define PFS_ERR_INCONSISTENT   3 /* need to run Pfschecker */

◆ PFS_ERR_INVALID

#define PFS_ERR_INVALID   5 /* invalid parameter or file not exist*/

◆ PFS_ERR_NEW_PACK

#define PFS_ERR_NEW_PACK   2 /* ram pack has been changed to a */

◆ PFS_ERR_NOPACK

#define PFS_ERR_NOPACK   1 /* no memory card is plugged or */

◆ PFS_FILE_EXT_LEN

#define PFS_FILE_EXT_LEN   4

◆ PFS_FILE_NAME_LEN

#define PFS_FILE_NAME_LEN   16

◆ PFS_INITIALIZED

#define PFS_INITIALIZED   0x1

◆ PFS_MAX_BANKS

#define PFS_MAX_BANKS   62

◆ PFS_ONE_PAGE

#define PFS_ONE_PAGE   8 /* blocks */

◆ PFS_READ

#define PFS_READ   0

◆ PFS_WRITE

#define PFS_WRITE   1

◆ PI_DOMAIN1

#define PI_DOMAIN1   0

◆ PI_DOMAIN2

#define PI_DOMAIN2   1

◆ PROF_MIN_INTERVAL

#define PROF_MIN_INTERVAL   50 /* microseconds */

◆ R_CBUTTONS

#define R_CBUTTONS   CONT_F

◆ R_JPAD

#define R_JPAD   CONT_RIGHT

◆ R_TRIG

#define R_TRIG   CONT_R

◆ RCP_IMASK

#define RCP_IMASK   0x003f0000

◆ RCP_IMASKSHIFT

#define RCP_IMASKSHIFT   16

◆ START_BUTTON

#define START_BUTTON   CONT_START

◆ U_CBUTTONS

#define U_CBUTTONS   CONT_E

◆ U_JPAD

#define U_JPAD   CONT_UP

◆ Z_TRIG

#define Z_TRIG   CONT_G