# NG memory map for devkit 1
# (Defined here because these values are shared by the makefiles as
# well as the header files.)

NG_ADDR_MAP = $(ROOT)/usr/include/make/NGaddrs_debug

# The size of DDR in the dev systems is 128M. 8M is available
# for the IOP's use:  0x1780_0000 - 0x1800_0000
# The available 8M is split into 64 logical pages of 128K.

# Leave upper 4 pages for use by boot1. It may need to load the
# kernel into that part of DDR and relocate parts of it. The rest of 
# the stuff is laid out with lots of holes. We can tighten this
# once things settle down:
# Pages 0                 : Iobuf pool0 (128K)
# Pages 1  -  3           : Reserved (384K)
# Pages 4  -  5           : IPC      (256K)
# Pages 6                 : MMU TTB  (128K)
# Pages 7  - 10           : Free0    (640K)
# Pages 11 - 14           : DI       (512K)
# Pages 15 - 19           : Free1    (640K) 
# Pages 20 - 25           : FS       (768K)
# Page  26 - 27           : FS_BSS   (256K)
# Pages 28 - 29           : ES/ES_BSS(128K)
# Pages 29 - 35           : Free2    (1M)
# Pages 36 - 39           : Crypto   (512K)
# Pages 40 - 43           : Shared   (512K)
# Page  44                : PPCBoot  (128K)
# Pages 45 - 63           : Apps     

#Define beginning and end of GDDR3 available to the IOP
#Leave top 1M uncached for device use (note the granularity of 
#this region is 1M).
MK_IOP_GDDR3_START=0x17800000
MK_IOP_GDDR3_CACHED_START=0x17900000
MK_IOP_GDDR3_END=0x18000000

# XXX horti
# DI_DMA region needs to be outside the MEM CG 
# boundary, since it's accessed via IO_MEM. lomem
# doesn't know about this yet. The temporary hack is
# to start the CG boundary at Page 1, leaving page 0 for
# DI_DMA.

# Page 0                   : DI_DMA region 
MK_DI_DMA_START=0x17800000 
MK_DI_DMA_SIZE=0x20000

# Page 1               : iobufs (use 64 of 128K)
MK_IOBUF0_START=0x17820000 

# Page 2               : OH0  (64K)
MK_OH0_START=0x17840000
MK_OH1_START=0x17850000

# Pages 3           : Reserved (256K)
MK_RSVD_START=0x17860000

# Pages 4  -  5           : IPC      (256K)
MK_IPCSRV_START=0x17880000

# Page 6		  : MMU TTB  (128K)
MK_TTB_START=0x178c0000

# Page 7          : Free0 (128K)
MK_FREE0_START=0x178e0000

# Page 8           : OH0 (non-dma) (64K)
MK_OH0_TXT_START=0x17900000
MK_OH1_TXT_START=0x17910000

# Pages 9  - 10          : WD    (256K)
MK_WD_START=0x17920000

# Pages 11 - 14           : DI       (512K)
MK_DI_START=0x17980000

# Pages 15 - 18           : Free1    (640K) 
MK_FREE1_START=0x179e0000

# Page 19                 : SD0      (128K)
MK_SD0_START=0x17a60000  

# Pages 20 - 25           : FS       (768K)
MK_FS_START=0x17a80000

# Pages 26 - 27           : FS_BSS   (256M)
MK_FS_BSS_START=0x17b40000

# Pages 28 - 29           : ES(64K), ES_BSS (64K)
MK_ET_START=0x17b80000
MK_ET_BSS_START=0x17b90000

# Pages 30 - 35           : Free2    (1M)
MK_FREE2_START=0x17bc0000

# Pages 36 - 39           : Crypto   (512K)
MK_CRYPTO_START=0x17c80000

# Pages 40 - 43           : Shared    (512K)
MK_SHARED_START=0x17d00000
MK_SHARED_SIZE=0x80000

# Pages 44                : PPCBoot  (128K)
MK_PPCBOOT_START=0x17d80000

# Pages 45 - 58           : WL    (1792K)     
MK_WL_START=0x17da0000

# Pages 59 - 63           : Apps     
MK_APPS_START=0x17f60000
##########################################
#Here's a dump of the page addresses for easy reference
#Start address: 0x17800000
#End address: 0x18000000
#Page size: 128K
#Number of pages: 64
#Page 0 = 0x17800000
#Page 1 = 0x17820000
#Page 2 = 0x17840000
#Page 3 = 0x17860000
#Page 4 = 0x17880000
#Page 5 = 0x178a0000
#Page 6 = 0x178c0000
#Page 7 = 0x178e0000
#Page 8 = 0x17900000
#Page 9 = 0x17920000
#Page 10 = 0x17940000
#Page 11 = 0x17960000
#Page 12 = 0x17980000
#Page 13 = 0x179a0000
#Page 14 = 0x179c0000
#Page 15 = 0x179e0000
#Page 16 = 0x17a00000
#Page 17 = 0x17a20000
#Page 18 = 0x17a40000
#Page 19 = 0x17a60000
#Page 20 = 0x17a80000
#Page 21 = 0x17aa0000
#Page 22 = 0x17ac0000
#Page 23 = 0x17ae0000
#Page 24 = 0x17b00000
#Page 25 = 0x17b20000
#Page 26 = 0x17b40000
#Page 27 = 0x17b60000
#Page 28 = 0x17b80000
#Page 29 = 0x17ba0000
#Page 30 = 0x17bc0000
#Page 31 = 0x17be0000
#Page 32 = 0x17c00000
#Page 33 = 0x17c20000
#Page 34 = 0x17c40000
#Page 35 = 0x17c60000
#Page 36 = 0x17c80000
#Page 37 = 0x17ca0000
#Page 38 = 0x17cc0000
#Page 39 = 0x17ce0000
#Page 40 = 0x17d00000
#Page 41 = 0x17d20000
#Page 42 = 0x17d40000
#Page 43 = 0x17d60000
#Page 44 = 0x17d80000
#Page 45 = 0x17da0000
#Page 46 = 0x17dc0000
#Page 47 = 0x17de0000
#Page 48 = 0x17e00000
#Page 49 = 0x17e20000
#Page 50 = 0x17e40000
#Page 51 = 0x17e60000
#Page 52 = 0x17e80000
#Page 53 = 0x17ea0000
#Page 54 = 0x17ec0000
#Page 55 = 0x17ee0000
#Page 56 = 0x17f00000
#Page 57 = 0x17f20000
#Page 58 = 0x17f40000
#Page 59 = 0x17f60000
#Page 60 = 0x17f80000
#Page 61 = 0x17fa0000
#Page 62 = 0x17fc0000
#Page 63 = 0x17fe0000
######################
