David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Memory pre-allocations for Cronus boxes. |
| 3 | * |
| 4 | * Copyright (C) 2005-2009 Scientific-Atlanta, Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | * |
| 20 | * Author: Ken Eppinett |
| 21 | * David Schleef <ds@schleef.org> |
| 22 | */ |
| 23 | |
| 24 | #include <linux/init.h> |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 25 | #include <linux/ioport.h> |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 26 | #include <asm/mach-powertv/asic.h> |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 27 | #include "prealloc.h" |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | * DVR_CAPABLE CRONUS RESOURCES |
| 31 | */ |
| 32 | struct resource dvr_cronus_resources[] __initdata = |
| 33 | { |
| 34 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 35 | * VIDEO1 / LX1 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 36 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 37 | /* Delta-Mu 1 image (2MiB) */ |
| 38 | PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1, |
| 39 | IORESOURCE_MEM) |
| 40 | /* Delta-Mu 1 monitor (8KiB) */ |
| 41 | PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1, |
| 42 | IORESOURCE_MEM) |
| 43 | /* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */ |
| 44 | PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26000000-1, |
| 45 | IORESOURCE_MEM) |
| 46 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 47 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 48 | * VIDEO2 / LX2 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 49 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 50 | /* Delta-Mu 2 image (2MiB) */ |
| 51 | PREALLOC_NORMAL("ST231bImage", 0x60000000, 0x60200000-1, |
| 52 | IORESOURCE_MEM) |
| 53 | /* Delta-Mu 2 monitor (8KiB) */ |
| 54 | PREALLOC_NORMAL("ST231bMonitor", 0x60200000, 0x60202000-1, |
| 55 | IORESOURCE_MEM) |
| 56 | /* Delta-Mu 2 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */ |
| 57 | PREALLOC_NORMAL("MediaMemory2", 0x60202000, 0x62000000-1, |
| 58 | IORESOURCE_MEM) |
| 59 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 60 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 61 | * Sysaudio Driver |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 62 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 63 | /* DSP code and data images (1MiB) */ |
| 64 | PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1, |
| 65 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 66 | /* ADSC CPU PCM buffer (40KiB) */ |
| 67 | PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1, |
| 68 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 69 | /* ADSC AUX buffer (128KiB) */ |
| 70 | PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1, |
| 71 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 72 | /* ADSC Main buffer (128KiB) */ |
| 73 | PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1, |
| 74 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 75 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 76 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 77 | * STAVEM driver/STAPI |
| 78 | * |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 79 | * This memory area is used for allocating buffers for Video decoding |
| 80 | * purposes. Allocation/De-allocation within this buffer is managed |
| 81 | * by the STAVMEM driver of the STAPI. They could be Decimated |
| 82 | * Picture Buffers, Intermediate Buffers, as deemed necessary for |
| 83 | * video decoding purposes, for any video decoders on Zeus. |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 84 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 85 | /* 12MiB */ |
| 86 | PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00c00000-1, |
| 87 | IORESOURCE_MEM) |
| 88 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 89 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 90 | * DOCSIS Subsystem |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 91 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 92 | /* 7MiB */ |
| 93 | PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM) |
| 94 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 95 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 96 | * GHW HAL Driver |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 97 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 98 | /* PowerTV Graphics Heap (14MiB) */ |
| 99 | PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1, |
| 100 | IORESOURCE_MEM) |
| 101 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 102 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 103 | * multi com buffer area |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 104 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 105 | /* 128KiB */ |
| 106 | PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1, |
| 107 | IORESOURCE_MEM) |
| 108 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 109 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 110 | * DMA Ring buffer |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 111 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 112 | PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x002EA000-1, |
| 113 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 114 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 115 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 116 | * Display bins buffer for unit0 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 117 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 118 | /* 4KiB */ |
| 119 | PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1, |
| 120 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 121 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 122 | /* |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 123 | * Display bins buffer for unit1 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 124 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 125 | /* 4KiB */ |
| 126 | PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1, |
| 127 | IORESOURCE_MEM) |
| 128 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 129 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 130 | * ITFS |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 131 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 132 | /* 815,104 bytes each for 2 ITFS partitions. */ |
| 133 | PREALLOC_NORMAL("ITFS", 0x00000000, 0x0018E000-1, IORESOURCE_MEM) |
| 134 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 135 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 136 | * AVFS |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 137 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 138 | /* (945K * 8) = (128K * 3) 5 playbacks / 3 server */ |
| 139 | PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x007c2000-1, |
| 140 | IORESOURCE_MEM) |
| 141 | |
| 142 | /* 4KiB */ |
| 143 | PREALLOC_NORMAL("AvfsFileSys", 0x00000000, 0x00001000-1, |
| 144 | IORESOURCE_MEM) |
| 145 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 146 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 147 | * PMEM |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 148 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 149 | /* Persistent memory for diagnostics (64KiB) */ |
| 150 | PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1, |
| 151 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 152 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 153 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 154 | * Smartcard |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 155 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 156 | /* Read and write buffers for Internal/External cards (10KiB) */ |
| 157 | PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, |
| 158 | IORESOURCE_MEM) |
| 159 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 160 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 161 | * KAVNET |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 162 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 163 | /* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */ |
| 164 | PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1, |
| 165 | IORESOURCE_MEM) |
| 166 | /* NP Image - must be video bank 1 (320KiB) */ |
| 167 | PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM) |
| 168 | /* NP IPC - must be video bank 2 (512KiB) */ |
| 169 | PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM) |
| 170 | |
| 171 | /* |
| 172 | * TFTPBuffer |
| 173 | * |
| 174 | * This buffer is used in some minimal configurations (e.g. two-way |
| 175 | * loader) for storing software images |
| 176 | */ |
| 177 | PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1, |
| 178 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 179 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 180 | /* |
| 181 | * Add other resources here |
| 182 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 183 | |
| 184 | /* |
| 185 | * End of Resource marker |
| 186 | */ |
| 187 | { |
| 188 | .flags = 0, |
| 189 | }, |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | /* |
| 193 | * NON_DVR_CAPABLE CRONUS RESOURCES |
| 194 | */ |
| 195 | struct resource non_dvr_cronus_resources[] __initdata = |
| 196 | { |
| 197 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 198 | * VIDEO1 / LX1 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 199 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 200 | /* Delta-Mu 1 image (2MiB) */ |
| 201 | PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1, |
| 202 | IORESOURCE_MEM) |
| 203 | /* Delta-Mu 1 monitor (8KiB) */ |
| 204 | PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1, |
| 205 | IORESOURCE_MEM) |
| 206 | /* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */ |
| 207 | PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26000000-1, |
| 208 | IORESOURCE_MEM) |
| 209 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 210 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 211 | * VIDEO2 / LX2 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 212 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 213 | /* Delta-Mu 2 image (2MiB) */ |
| 214 | PREALLOC_NORMAL("ST231bImage", 0x60000000, 0x60200000-1, |
| 215 | IORESOURCE_MEM) |
| 216 | /* Delta-Mu 2 monitor (8KiB) */ |
| 217 | PREALLOC_NORMAL("ST231bMonitor", 0x60200000, 0x60202000-1, |
| 218 | IORESOURCE_MEM) |
| 219 | /* Delta-Mu 2 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */ |
| 220 | PREALLOC_NORMAL("MediaMemory2", 0x60202000, 0x62000000-1, |
| 221 | IORESOURCE_MEM) |
| 222 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 223 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 224 | * Sysaudio Driver |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 225 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 226 | /* DSP code and data images (1MiB) */ |
| 227 | PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1, |
| 228 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 229 | /* ADSC CPU PCM buffer (40KiB) */ |
| 230 | PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1, |
| 231 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 232 | /* ADSC AUX buffer (128KiB) */ |
| 233 | PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1, |
| 234 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 235 | /* ADSC Main buffer (128KiB) */ |
| 236 | PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1, |
| 237 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 238 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 239 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 240 | * STAVEM driver/STAPI |
| 241 | * |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 242 | * This memory area is used for allocating buffers for Video decoding |
| 243 | * purposes. Allocation/De-allocation within this buffer is managed |
| 244 | * by the STAVMEM driver of the STAPI. They could be Decimated |
| 245 | * Picture Buffers, Intermediate Buffers, as deemed necessary for |
| 246 | * video decoding purposes, for any video decoders on Zeus. |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 247 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 248 | /* 12MiB */ |
| 249 | PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00c00000-1, |
| 250 | IORESOURCE_MEM) |
| 251 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 252 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 253 | * DOCSIS Subsystem |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 254 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 255 | /* 7MiB */ |
| 256 | PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM) |
| 257 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 258 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 259 | * GHW HAL Driver |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 260 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 261 | /* PowerTV Graphics Heap (14MiB) */ |
| 262 | PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1, |
| 263 | IORESOURCE_MEM) |
| 264 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 265 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 266 | * multi com buffer area |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 267 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 268 | /* 128KiB */ |
| 269 | PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1, |
| 270 | IORESOURCE_MEM) |
| 271 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 272 | /* |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 273 | * DMA Ring buffer (don't need recording buffers) |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 274 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 275 | /* 680KiB */ |
| 276 | PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1, |
| 277 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 278 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 279 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 280 | * Display bins buffer for unit0 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 281 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 282 | /* 4KiB */ |
| 283 | PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1, |
| 284 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 285 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 286 | /* |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 287 | * Display bins buffer for unit1 |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 288 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 289 | /* 4KiB */ |
| 290 | PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1, |
| 291 | IORESOURCE_MEM) |
| 292 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 293 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 294 | * AVFS: player HAL memory |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 295 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 296 | /* 945K * 3 for playback */ |
| 297 | PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1, IORESOURCE_MEM) |
| 298 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 299 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 300 | * PMEM |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 301 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 302 | /* Persistent memory for diagnostics (64KiB) */ |
| 303 | PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1, |
| 304 | (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT)) |
| 305 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 306 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 307 | * Smartcard |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 308 | */ |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 309 | /* Read and write buffers for Internal/External cards (10KiB) */ |
| 310 | PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, IORESOURCE_MEM) |
| 311 | |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 312 | /* |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 313 | * KAVNET |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 314 | */ |
| 315 | /* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */ |
| 316 | PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1, |
| 317 | IORESOURCE_MEM) |
| 318 | /* NP Image - must be video bank 1 (320KiB) */ |
| 319 | PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM) |
| 320 | /* NP IPC - must be video bank 2 (512KiB) */ |
| 321 | PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM) |
| 322 | |
| 323 | /* |
| 324 | * NAND Flash |
| 325 | */ |
| 326 | /* 10KiB */ |
| 327 | PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1, |
| 328 | IORESOURCE_MEM) |
| 329 | |
| 330 | /* |
| 331 | * Add other resources here |
| 332 | */ |
| 333 | |
| 334 | /* |
| 335 | * End of Resource marker |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 336 | */ |
| 337 | { |
David VomLehn | 4f1e099 | 2010-05-07 15:17:02 -0700 | [diff] [blame] | 338 | .flags = 0, |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 339 | }, |
David VomLehn | a3a0f8c | 2009-08-30 17:15:11 -0700 | [diff] [blame] | 340 | }; |