prealloc-cronuslite.c 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /*
  2. * Memory pre-allocations for Cronus Lite 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. #include <linux/init.h>
  24. #include <linux/ioport.h>
  25. #include <asm/mach-powertv/asic.h>
  26. #include "prealloc.h"
  27. /*
  28. * NON_DVR_CAPABLE CRONUSLITE RESOURCES
  29. */
  30. struct resource non_dvr_cronuslite_resources[] __initdata =
  31. {
  32. /*
  33. * VIDEO2 / LX2
  34. */
  35. /* Delta-Mu 1 image (2MiB) */
  36. PREALLOC_NORMAL("ST231aImage", 0x60000000, 0x60200000-1,
  37. IORESOURCE_MEM)
  38. /* Delta-Mu 1 monitor (8KiB) */
  39. PREALLOC_NORMAL("ST231aMonitor", 0x60200000, 0x60202000-1,
  40. IORESOURCE_MEM)
  41. /* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */
  42. PREALLOC_NORMAL("MediaMemory1", 0x60202000, 0x62000000-1,
  43. IORESOURCE_MEM)
  44. /*
  45. * Sysaudio Driver
  46. */
  47. /* DSP code and data images (1MiB) */
  48. PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
  49. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  50. /* ADSC CPU PCM buffer (40KiB) */
  51. PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
  52. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  53. /* ADSC AUX buffer (128KiB) */
  54. PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,
  55. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  56. /* ADSC Main buffer (128KiB) */
  57. PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,
  58. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  59. /*
  60. * STAVEM driver/STAPI
  61. *
  62. * This memory area is used for allocating buffers for Video decoding
  63. * purposes. Allocation/De-allocation within this buffer is managed
  64. * by the STAVMEM driver of the STAPI. They could be Decimated
  65. * Picture Buffers, Intermediate Buffers, as deemed necessary for
  66. * video decoding purposes, for any video decoders on Zeus.
  67. */
  68. /* 6MiB */
  69. PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00600000-1,
  70. IORESOURCE_MEM)
  71. /*
  72. * DOCSIS Subsystem
  73. */
  74. /* 7MiB */
  75. PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM)
  76. /*
  77. * GHW HAL Driver
  78. */
  79. /* PowerTV Graphics Heap (14MiB) */
  80. PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1,
  81. IORESOURCE_MEM)
  82. /*
  83. * multi com buffer area
  84. */
  85. /* 128KiB */
  86. PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1,
  87. IORESOURCE_MEM)
  88. /*
  89. * DMA Ring buffer (don't need recording buffers)
  90. */
  91. /* 680KiB */
  92. PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,
  93. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  94. /*
  95. * Display bins buffer for unit0
  96. */
  97. /* 4KiB */
  98. PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
  99. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  100. /*
  101. * Display bins buffer for unit1
  102. */
  103. /* 4KiB */
  104. PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1,
  105. IORESOURCE_MEM)
  106. /*
  107. * AVFS: player HAL memory
  108. */
  109. /* 945K * 3 for playback */
  110. PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1,
  111. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  112. /*
  113. * PMEM
  114. */
  115. /* Persistent memory for diagnostics (64KiB) */
  116. PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
  117. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  118. /*
  119. * Smartcard
  120. */
  121. /* Read and write buffers for Internal/External cards (10KiB) */
  122. PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, IORESOURCE_MEM)
  123. /*
  124. * KAVNET
  125. */
  126. /* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */
  127. PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1,
  128. IORESOURCE_MEM)
  129. /* NP Image - must be video bank 1 (320KiB) */
  130. PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM)
  131. /* NP IPC - must be video bank 2 (512KiB) */
  132. PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM)
  133. /*
  134. * NAND Flash
  135. */
  136. /* 10KiB */
  137. PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1,
  138. IORESOURCE_MEM)
  139. /*
  140. * TFTPBuffer
  141. *
  142. * This buffer is used in some minimal configurations (e.g. two-way
  143. * loader) for storing software images
  144. */
  145. PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1,
  146. (IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
  147. /*
  148. * Add other resources here
  149. */
  150. /*
  151. * End of Resource marker
  152. */
  153. {
  154. .flags = 0,
  155. },
  156. };