# 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. 
# The region  0x1740_0000 - 0x1800_0000 (12M)
# is split into 192 logical pages of 64K. The initial 2M 
# of this space has been freed up for the PPC (pages 0 to 31).

# Pages 0 - 31           : Reallocated to PPC (2048K)
# Pages 32 - 33          : DI hole  (128K)
# Pages 34 - 36          : Apps/Free (192K)
# Pages 37 - 52          : USB class drivers (1024K)
# Pages 53 - 68          : P2P (1024K)
# Pages 69 - 70          : MMU_TTB/boot1 RSVD (128K)
# Pages 71 - 73          : OHO, OH1, EHC DMA (64*3K)
# Pages 74 - 78          : OH0 (64K), OH1 (64K), EHC (128K)
# Page  78               : ppcboot (64K)
# Pages 79 - 90          : Shared (768K)
# Pages 91 - 94          : DI  (256K)
# Pages 95 - 96          : ES  (128K)
# Pages 97 - 102         : FS  (384K)
# Pages 103 - 104        : Crypto (128K)
# Page  105              : SD0 (64K)
# Pages 106 - 107        : USBEth (128K)
# Pages 108 - 109        : Syscall (128K)
# Pages 110 - 115        : Reserved (384K)
# Pages 116 - 131        : Net (1024)

# Rest of map is unchanged
# Pages 132 - 139        : Iobufs (512K)

# External resource managers (sizes fixed)
# OLD:
# Pages 140 - 147         : SSL (512K)
# Pages 148 - 149         : STM (128K)
# Pages 150 - 153         : NCD (256K)
# Pages 154 - 161         : KD  (512K)
# Pages 162 - 163         : WD  (128K)
# Pages 164 - 191         : WL  (1792K)
#
# NEW:
# Pages 140 - 151         : SSL (768K)  (+256K)
# Pages 152               : STM (64K)   (-64K)
# Pages 153 - 154         : NCD (128K)  (-128K)
# Pages 155 - 170         : KD  (1024K) (+512K)
# Pages 171 - 172         : WD  (128K)
# Pages 173 - 190         : WL  (1152K) (-640K)
# Pages 191               : PS  (64K)   (+64K)

# Define virtual address spaces
# 0x2000_0000 - 0x2010_0000     FS
# 0x2010_0000 - 0x2020_0000     ES
# 0x2020_0000 - 0x2030_0000     DI
# 0x2030_0000 - 0x2040_0000     STM
# 0x2040_0000 - 0x2050_0000     SD0

#Define beginning and end of GDDR3 available to the IOP
MK_IOP_GDDR3_START= 0x17600000
MK_IOP_GDDR3_END=0x18000000

# 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 hack is that the 
# CG boundary starts past the DI DMA region.

# Page 32-33                   : DI_DMA region 
MK_DI_DMA_START=0x17600000
MK_DI_DMA_SIZE=0x20000

# The apps space is used for test apps. In a real system, the apps
# space is also used as an extension of the OS re-launch buffer
# Pages 34 - 36        : Apps  (192K))     
MK_APPS_START=0x17620000

# Pages 37 - 52        : USB class dirvers (1024K)
MK_USB_START=0x17650000

# Pages 53 - 68        : P2P (1024K)
MK_P2P_START=0x17750000

# Pages 69 - 70        : MMU_TTB/ boot1 reserved
MK_KERNEL_DATA_START=0x17850000
MK_KERNEL_DATA_END=0x17870000

#Reuse page 69 - 70 as reserved space. OK because only boot1
# uses this. Boot1 no longer affected by anything here.
MK_RSVD_START=0x17850000

# Page 71              : OH0 dma (64K)
MK_OH0_START=0x17870000

# Page 72             : OH1 dma (64K)
MK_OH1_START=0x17880000

# Page 73             : EHC dma (64K)
MK_EHC_START=0x17890000

# Page 74              : OH0 (64K)
MK_OH0_TXT_START=0x178a0000

# Page 75             : OH1 (64K)
MK_OH1_TXT_START=0x178b0000

# Page 76 - 77          : EHC (128K)
MK_EHC_TXT_START=0x178c0000

# Page 78              : PPCBoot  (64K)
MK_PPCBOOT_START=0x178e0000

# Pages 79 - 90        : Shared    (768K)
MK_SHARED_START=0x178f0000
MK_SHARED_SIZE=0xc0000

# Pages 91 - 94           : DI    (256K)
MK_DI_VIRT_START=0x20200000
MK_DI_PHYS_START=0x179b0000

# Pages 95 - 96          : ES        (128K)
MK_ET_VIRT_START=0x20100000
MK_ET_PHYS_START=0x179f0000

# Pages 97 - 102          : FS      (384K)
MK_FS_VIRT_START=0x20000000
MK_FS_PHYS_START=0x17a10000

# Pages 103 - 104           : Crypto   (128K)
MK_CRYPTO_START=0x17a70000

# Page 105                : SD0       (64K)
MK_SD0_VIRT_START=0x20400000
MK_SD0_PHYS_START=0x17a90000

# Page  106 - 107          : USBETH   (128K)
MK_USBETH_START=0x17aa0000

# Pages 108 - 109          : SYSCALL_STACK (128K)
MK_SYSCALL_STACK_START=0x17ac0000

# Pages 110 - 115          : Reserved (384K)
MK_SYS_RSVD_START=0x17ae0000

# Pages 116 - 131         : Net (1024K)
MK_NET_START=0x17b40000

# New OSLaunch   (In low DDR)
MK_OSLAUNCH_START=0x10100000
MK_OSLAUNCH_END=0x10c00000

# Pages 132 - 139        : iobufs (512K)
MK_IOBUF0_START=0x17c40000

# Pages 140 - 151        : SSL   (768K)
MK_SSL_START=0x17cc0000

# Pages 152               : STM  (64K)
MK_STM_VIRT_START=0x20300000
MK_STM_PHYS_START=0x17d80000

# Pages 153 - 154         : NCD  (128K)
MK_NCD_START=0x17d90000

# Pages 155 - 170         : KD   (1024K)
MK_KD_START=0x17db0000

# Pages 171 - 172         : WD   (128K)     
MK_WD_START=0x17eb0000

# Pages 173 - 190         : WL   (1152K)
MK_WL_START=0x17ed0000

# Pages 191               : PS   (64K)
MK_PS_START=0x17ff0000

##########################################
#Here's a dump of the page addresses for easy reference
#Start address: 0x17400000
#End address: 0x18000000
#IPC start address:0x173e0000
#IPC size:0x00020000
#Page size: 64KB
#Number of pages: 192
#Page 0 = 0x17400000
#Page 1 = 0x17410000
#Page 2 = 0x17420000
#Page 3 = 0x17430000
#Page 4 = 0x17440000
#Page 5 = 0x17450000
#Page 6 = 0x17460000
#Page 7 = 0x17470000
#Page 8 = 0x17480000
#Page 9 = 0x17490000
#Page 10 = 0x174a0000
#Page 11 = 0x174b0000
#Page 12 = 0x174c0000
#Page 13 = 0x174d0000
#Page 14 = 0x174e0000
#Page 15 = 0x174f0000
#Page 16 = 0x17500000
#Page 17 = 0x17510000
#Page 18 = 0x17520000
#Page 19 = 0x17530000
#Page 20 = 0x17540000
#Page 21 = 0x17550000
#Page 22 = 0x17560000
#Page 23 = 0x17570000
#Page 24 = 0x17580000
#Page 25 = 0x17590000
#Page 26 = 0x175a0000
#Page 27 = 0x175b0000
#Page 28 = 0x175c0000
#Page 29 = 0x175d0000
#Page 30 = 0x175e0000
#Page 31 = 0x175f0000
#Page 32 = 0x17600000
#Page 33 = 0x17610000
#Page 34 = 0x17620000
#Page 35 = 0x17630000
#Page 36 = 0x17640000
#Page 37 = 0x17650000
#Page 38 = 0x17660000
#Page 39 = 0x17670000
#Page 40 = 0x17680000
#Page 41 = 0x17690000
#Page 42 = 0x176a0000
#Page 43 = 0x176b0000
#Page 44 = 0x176c0000
#Page 45 = 0x176d0000
#Page 46 = 0x176e0000
#Page 47 = 0x176f0000
#Page 48 = 0x17700000
#Page 49 = 0x17710000
#Page 50 = 0x17720000
#Page 51 = 0x17730000
#Page 52 = 0x17740000
#Page 53 = 0x17750000
#Page 54 = 0x17760000
#Page 55 = 0x17770000
#Page 56 = 0x17780000
#Page 57 = 0x17790000
#Page 58 = 0x177a0000
#Page 59 = 0x177b0000
#Page 60 = 0x177c0000
#Page 61 = 0x177d0000
#Page 62 = 0x177e0000
#Page 63 = 0x177f0000
#Page 64 = 0x17800000
#Page 65 = 0x17810000
#Page 66 = 0x17820000
#Page 67 = 0x17830000
#Page 68 = 0x17840000
#Page 69 = 0x17850000
#Page 70 = 0x17860000
#Page 71 = 0x17870000
#Page 72 = 0x17880000
#Page 73 = 0x17890000
#Page 74 = 0x178a0000
#Page 75 = 0x178b0000
#Page 76 = 0x178c0000
#Page 77 = 0x178d0000
#Page 78 = 0x178e0000
#Page 79 = 0x178f0000
#Page 80 = 0x17900000
#Page 81 = 0x17910000
#Page 82 = 0x17920000
#Page 83 = 0x17930000
#Page 84 = 0x17940000
#Page 85 = 0x17950000
#Page 86 = 0x17960000
#Page 87 = 0x17970000
#Page 88 = 0x17980000
#Page 89 = 0x17990000
#Page 90 = 0x179a0000
#Page 91 = 0x179b0000
#Page 92 = 0x179c0000
#Page 93 = 0x179d0000
#Page 94 = 0x179e0000
#Page 95 = 0x179f0000
#Page 96 = 0x17a00000
#Page 97 = 0x17a10000
#Page 98 = 0x17a20000
#Page 99 = 0x17a30000
#Page 100 = 0x17a40000
#Page 101 = 0x17a50000
#Page 102 = 0x17a60000
#Page 103 = 0x17a70000
#Page 104 = 0x17a80000
#Page 105 = 0x17a90000
#Page 106 = 0x17aa0000
#Page 107 = 0x17ab0000
#Page 108 = 0x17ac0000
#Page 109 = 0x17ad0000
#Page 110 = 0x17ae0000
#Page 111 = 0x17af0000
#Page 112 = 0x17b00000
#Page 113 = 0x17b10000
#Page 114 = 0x17b20000
#Page 115 = 0x17b30000
#Page 116 = 0x17b40000
#Page 117 = 0x17b50000
#Page 118 = 0x17b60000
#Page 119 = 0x17b70000
#Page 120 = 0x17b80000
#Page 121 = 0x17b90000
#Page 122 = 0x17ba0000
#Page 123 = 0x17bb0000
#Page 124 = 0x17bc0000
#Page 125 = 0x17bd0000
#Page 126 = 0x17be0000
#Page 127 = 0x17bf0000
#Page 128 = 0x17c00000
#Page 129 = 0x17c10000
#Page 130 = 0x17c20000
#Page 131 = 0x17c30000
#Page 132 = 0x17c40000
#Page 133 = 0x17c50000
#Page 134 = 0x17c60000
#Page 135 = 0x17c70000
#Page 136 = 0x17c80000
#Page 137 = 0x17c90000
#Page 138 = 0x17ca0000
#Page 139 = 0x17cb0000
#Page 140 = 0x17cc0000
#Page 141 = 0x17cd0000
#Page 142 = 0x17ce0000
#Page 143 = 0x17cf0000
#Page 144 = 0x17d00000
#Page 145 = 0x17d10000
#Page 146 = 0x17d20000
#Page 147 = 0x17d30000
#Page 148 = 0x17d40000
#Page 149 = 0x17d50000
#Page 150 = 0x17d60000
#Page 151 = 0x17d70000
#Page 152 = 0x17d80000
#Page 153 = 0x17d90000
#Page 154 = 0x17da0000
#Page 155 = 0x17db0000
#Page 156 = 0x17dc0000
#Page 157 = 0x17dd0000
#Page 158 = 0x17de0000
#Page 159 = 0x17df0000
#Page 160 = 0x17e00000
#Page 161 = 0x17e10000
#Page 162 = 0x17e20000
#Page 163 = 0x17e30000
#Page 164 = 0x17e40000
#Page 165 = 0x17e50000
#Page 166 = 0x17e60000
#Page 167 = 0x17e70000
#Page 168 = 0x17e80000
#Page 169 = 0x17e90000
#Page 170 = 0x17ea0000
#Page 171 = 0x17eb0000
#Page 172 = 0x17ec0000
#Page 173 = 0x17ed0000
#Page 174 = 0x17ee0000
#Page 175 = 0x17ef0000
#Page 176 = 0x17f00000
#Page 177 = 0x17f10000
#Page 178 = 0x17f20000
#Page 179 = 0x17f30000
#Page 180 = 0x17f40000
#Page 181 = 0x17f50000
#Page 182 = 0x17f60000
#Page 183 = 0x17f70000
#Page 184 = 0x17f80000
#Page 185 = 0x17f90000
#Page 186 = 0x17fa0000
#Page 187 = 0x17fb0000
#Page 188 = 0x17fc0000
#Page 189 = 0x17fd0000
#Page 190 = 0x17fe0000
#Page 191 = 0x17ff0000
####################################
