/********************
	memory.h
 ********************/


/*******************************************************
	SEGMENT NUMBER
*******************************************************/
#define	STATIC_SEGMENT			1
#define	AUTO_SEGMENT			2
#define	DYNAMIC_SEGMENT			3
#define	SCREEN_SEGMENT			4
#define	ENDYNAMIC_SEGMENT		5
#define	SOT_DYNAMIC_SEGMENT		6
#define	KN_DYNAMIC_SEGMENT		7

#define	BANK_SEGMENT			8		/* */

#define	TEX_SEGMENT				9
#define	TEX2_SEGMENT			10
#define	TEX3_SEGMENT			11
#define	TEX4_SEGMENT			12

#define	COURSE_SEGMENT			13
#define	COURSE_COM_SEGMENT		14

/*******************************************************
	DRAM ADDERSS
*******************************************************/
#define	AUDIO_HEAP		0x80001000
#define	LOAD_ATABLE_ADDR	0x80045800

#define DRAM_STACK		0x80045800
#define	BOOT_ADDR		0x80046800

#define START_GATE_ADDR		0x8029A200
#define Z_BUFFER		0x802A0000
#define PROG_BANK		0x802C5800
#define COURSE_BUFFER	0x802D6800
#define COURSE_DT		0x80306800

#define BANK_BUFFER		0x80316800

#define FRAME_BUFFER	0x8038F800

#define FRAME_BUFFER_H0	0x802D4000
#define FRAME_BUFFER_H1	0x8036A000

#define EDIT_BANK		0x80328000

#define	STATIC_ADDR		0x80400000		/* For 6MByte */
#define	STATIC_SIZE		0x10000			/* static size */

#define	CAMERA_BUFFER		0x80580000		/* CAMERA EDIT */

/* 4M Type & 6M Type RAM Size Difference */
#define DRAM_SIZE_DIFFERENCE	(450*1024)


/*******************************************************
	STACK SIZE
*******************************************************/
#define	BOOT_STACKSIZE		0x0200
#define	IDLE_STACKSIZE		0x0200
#define	TASK_STACKSIZE		0x0400
#define	GRAPH_STACKSIZE		0x1000
#define	AUDIO_STACKSIZE		0x0800
#define	CONTROLLER_STACKSIZE	0x0800

#define	BOOT_STACKSIZE64	(BOOT_STACKSIZE  >> 3)
#define	IDLE_STACKSIZE64	(IDLE_STACKSIZE  >> 3)
#define	TASK_STACKSIZE64	(TASK_STACKSIZE  >> 3)
#define	GRAPH_STACKSIZE64	(GRAPH_STACKSIZE >> 3)
#define	AUDIO_STACKSIZE64	(AUDIO_STACKSIZE >> 3)
#define	CONTROLLER_STACKSIZE64	(CONTROLLER_STACKSIZE >> 3)
#define	RMON_STACKSIZE64	(RMON_STACKSIZE  >> 3)

#define	DAT_YIELD_SIZE64	(OS_YIELD_DATA_SIZE  >> 3)
#define	AUD_YIELD_SIZE64	(OS_YIELD_AUDIO_SIZE >> 3)

