#define	C_CLEAN_BITMASK 0x40
#define	P_LINK 0x0
#define	P_RLINK 0x4
#define	P_UAREA 0x1c
#define	P_STACK 0x18
#define	P_PRI 0x21
#define	P_STAT 0x23
#define	P_WCHAN 0x6c
#define	P_AS 0x10
#define	P_RSSIZE 0x60
#define	A_HAT_CTX 0x10
#define	C_NUM 0x1
#define	C_TIME 0x2
#define	P_FLAG 0x38
#define	P_PID 0x44
#define	PROCSIZE 0xb4
#define	SLOAD 0x1
#define	SSLEEP 0x1
#define	SRUN 0x3
#define	V_SWTCH 0x0
#define	V_TRAP 0x4
#define	V_SYSCALL 0x8
#define	V_INTR 0xc
#define	V_PDMA 0x10
#define	MSGBUFSIZE 0x2000
#define	MBPOOLBYTES 0x200000
#define	MBPOOLMMUPAGES 0x200
#define	S_READ 0x1
#define	S_WRITE 0x2
#define	S_EXEC 0x3
#define	S_OTHER 0x0
#define	L_PC 0x0
#define	L_SP 0x4
#define	U_LOFAULT 0x780
#define	U_PROCP 0x364
#define	USIZE 0x784
#define	PCB_REGS 0x0
#define	PCB_PC 0x0
#define	PCB_SP 0x4
#define	PCB_PSR 0x8
#define	PCB_WBUF 0x10
#define	PCB_SPBUF 0x310
#define	PCB_WBCNT 0x340
#define	PCB_UWM 0xc
#define	PCB_FPFLAGS 0x34c
#define	PCB_FPCTXP 0x348
#define	PCB_FLAGS 0x358
#define	PCB_TEM_BIT 23
#define	PCB_AEXC_BIT 5
#define	FPCTX_FSR 0x80
#define	FPCTX_REGS 0x0
#define	FPCTX_Q 0x90
#define	FPCTX_QCNT 0x8c
#define	AST_SCHED_BIT 31
#define	ZSSIZE 0x34
#define	ZS_ADDR 0x10
#define	PSR_PIL_BIT 8
#define	PG_S_BIT 29
#define	REGSIZE 76
#define	COUNTER_PTE 0xf40f3000
#define	EEPROM_PTE 0xb40f2000
#define	MEMERR_PTE 0xf40f4000
#define	AUXIO_PTE 0xf40f7400
#define	INTREG_PTE 0xf40f5000
#define	PTE_SIZE 4
#define	FM_CTX 0x0
#define	FM_USR	0x10
#define	FM_REGION 0x14
#define	FM_SEGMENT 0x4
#define	FM_PAGE 0x8
#define	FM_PARTIAL 0xc
#define MAINMEM_SIZE 0x400000
#define PGT_SHIFT 0x1a
#define	CNTR_LIMIT10 0x4
#define	CNTR_LIMIT14 0xc
#define	AV_VECTOR 0x0
#define	AV_INTCNT 0x4
#define	AUTOVECSIZE 0x10
#define	GENERIC_PROTERR 0x40
#define	GENERIC_INVALID 0x80
#define PGT_SHIFT 0x1a
#define	AUD_CMD_DATA 0x0
#define	AUD_CMD_ENDDATA 0x4
#define	AUD_CMD_NEXT 0x8
#define	AUD_CMD_SKIP 0xc
#define	AUD_CMD_DONE 0xd
#define	AUD_DEV_CHIP 0x0
#define	AUD_PLAY_CMDPTR 0x4
#define	AUD_PLAY_SAMPLES 0x8
#define	AUD_PLAY_ACTIVE 0xc
#define	AUD_PLAY_ERROR 0xd
#define	AUD_REC_CMDPTR 0x10
#define	AUD_REC_SAMPLES 0x14
#define	AUD_REC_ACTIVE 0x18
#define	AUD_REC_ERROR 0x19
#define	AUD_CHIP_IR 0x0
#define	AUD_CHIP_CR 0x0
#define	AUD_CHIP_DR 0x1
#define	AUD_CHIP_BBRB 0x5
#define	AUD_CHIP_INIT_REG 0x21
#define	AUD_CHIP_DISABLE 0x5
#define	V_MAGIC 0x0
#define	V_ROMVEC_VERSION 0x4
#define	V_PLUGIN_VERSION 0x8
#define	V_MON_ID 0xc
#define	AUCB_SIZE 4096
#define	CB_HEAD 0x0
#define	CB_TAIL 0x4
#define	CB_THRESH 0x8
#define	CB_WAKING 0xc
#define	CB_PAUSE 0xe
#define	CB_DROPS 0x10
#define	CB_PDROPS 0x14
#define	CB_DATA 0x18
#define	AU_AMD 0x0
#define	AU_LOWAT 0x8
#define	AU_BLKSIZE 0x10
#define	AU_RB 0x14
#define	AU_WB 0x102c
#define	AU_STAMP 0x4
#define	AMD_IR 0x0
#define	AMD_BBRB 0x5
#define	AMD_BBTB 0x5
