# 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

# The size of DDR in the final systems is 64M. 8M is available
# for the IOP's use currently. But this size is expected to shrink.
# The range is:  0x1380_0000 - 0x1400_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 30 - 35           : Free2    (768K)
# 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=0x13800000
MK_IOP_GDDR3_CACHED_START=0x13900000
MK_IOP_GDDR3_END=0x14000000

# 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=0x13800000 
MK_DI_DMA_SIZE=0x20000

#Pages 1                    : iobufs (use 64 of 128K)   
MK_IOBUF0_START=0x13820000 

# Pages 2                   : OH0 (64 K)
MK_OH0_START=0x13840000
MK_OH1_START=0x13850000

# Page 3                    : Reserved (128K)
MK_RSVD_START=0x13860000

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

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

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

# Pages 8          : OH0 (non-dma) (64K)
MK_OH0_TXT_START=0x13900000
MK_OH1_TXT_START=0x13910000

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

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

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

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

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

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

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

# Pages 30 - 35           : Free2    (768K)
MK_FREE2_START=0x13bc0000

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

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

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

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

# Pages 59 - 63           : Apps     
MK_APPS_START=0x13f60000

##########################################
#Here's a dump of the page addresses for easy reference
#Start address: 0x13800000
#End address: 0x14000000
#Page size: 128K
#Number of pages: 64
#Page 0 = 0x13800000
#Page 1 = 0x13820000
#Page 2 = 0x13840000
#Page 3 = 0x13860000
#Page 4 = 0x13880000
#Page 5 = 0x138a0000
#Page 6 = 0x138c0000
#Page 7 = 0x138e0000
#Page 8 = 0x13900000
#Page 9 = 0x13920000
#Page 10 = 0x13940000
#Page 11 = 0x13960000
#Page 12 = 0x13980000
#Page 13 = 0x139a0000
#Page 14 = 0x139c0000
#Page 15 = 0x139e0000
#Page 16 = 0x13a00000
#Page 17 = 0x13a20000
#Page 18 = 0x13a40000
#Page 19 = 0x13a60000
#Page 20 = 0x13a80000
#Page 21 = 0x13aa0000
#Page 22 = 0x13ac0000
#Page 23 = 0x13ae0000
#Page 24 = 0x13b00000
#Page 25 = 0x13b20000
#Page 26 = 0x13b40000
#Page 27 = 0x13b60000
#Page 28 = 0x13b80000
#Page 29 = 0x13ba0000
#Page 30 = 0x13bc0000
#Page 31 = 0x13be0000
#Page 32 = 0x13c00000
#Page 33 = 0x13c20000
#Page 34 = 0x13c40000
#Page 35 = 0x13c60000
#Page 36 = 0x13c80000
#Page 37 = 0x13ca0000
#Page 38 = 0x13cc0000
#Page 39 = 0x13ce0000
#Page 40 = 0x13d00000
#Page 41 = 0x13d20000
#Page 42 = 0x13d40000
#Page 43 = 0x13d60000
#Page 44 = 0x13d80000
#Page 45 = 0x13da0000
#Page 46 = 0x13dc0000
#Page 47 = 0x13de0000
#Page 48 = 0x13e00000
#Page 49 = 0x13e20000
#Page 50 = 0x13e40000
#Page 51 = 0x13e60000
#Page 52 = 0x13e80000
#Page 53 = 0x13ea0000
#Page 54 = 0x13ec0000
#Page 55 = 0x13ee0000
#Page 56 = 0x13f00000
#Page 57 = 0x13f20000
#Page 58 = 0x13f40000
#Page 59 = 0x13f60000
#Page 60 = 0x13f80000
#Page 61 = 0x13fa0000
#Page 62 = 0x13fc0000
#Page 63 = 0x13fe0000
######################
