Path: blob/master/arch/mips/powertv/asic/prealloc-cronuslite.c
10818 views
/*1* Memory pre-allocations for Cronus Lite boxes.2*3* Copyright (C) 2005-2009 Scientific-Atlanta, Inc.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA18*19* Author: Ken Eppinett20* David Schleef <[email protected]>21*/2223#include <linux/init.h>24#include <linux/ioport.h>25#include <asm/mach-powertv/asic.h>26#include "prealloc.h"2728/*29* NON_DVR_CAPABLE CRONUSLITE RESOURCES30*/31struct resource non_dvr_cronuslite_resources[] __initdata =32{33/*34* VIDEO2 / LX235*/36/* Delta-Mu 1 image (2MiB) */37PREALLOC_NORMAL("ST231aImage", 0x60000000, 0x60200000-1,38IORESOURCE_MEM)39/* Delta-Mu 1 monitor (8KiB) */40PREALLOC_NORMAL("ST231aMonitor", 0x60200000, 0x60202000-1,41IORESOURCE_MEM)42/* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */43PREALLOC_NORMAL("MediaMemory1", 0x60202000, 0x62000000-1,44IORESOURCE_MEM)4546/*47* Sysaudio Driver48*/49/* DSP code and data images (1MiB) */50PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,51(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))52/* ADSC CPU PCM buffer (40KiB) */53PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,54(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))55/* ADSC AUX buffer (128KiB) */56PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,57(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))58/* ADSC Main buffer (128KiB) */59PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,60(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))6162/*63* STAVEM driver/STAPI64*65* This memory area is used for allocating buffers for Video decoding66* purposes. Allocation/De-allocation within this buffer is managed67* by the STAVMEM driver of the STAPI. They could be Decimated68* Picture Buffers, Intermediate Buffers, as deemed necessary for69* video decoding purposes, for any video decoders on Zeus.70*/71/* 6MiB */72PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00600000-1,73IORESOURCE_MEM)7475/*76* DOCSIS Subsystem77*/78/* 7MiB */79PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM)8081/*82* GHW HAL Driver83*/84/* PowerTV Graphics Heap (14MiB) */85PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1,86IORESOURCE_MEM)8788/*89* multi com buffer area90*/91/* 128KiB */92PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1,93IORESOURCE_MEM)9495/*96* DMA Ring buffer (don't need recording buffers)97*/98/* 680KiB */99PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,100(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))101102/*103* Display bins buffer for unit0104*/105/* 4KiB */106PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,107(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))108109/*110* Display bins buffer for unit1111*/112/* 4KiB */113PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1,114IORESOURCE_MEM)115116/*117* AVFS: player HAL memory118*/119/* 945K * 3 for playback */120PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1,121(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))122123/*124* PMEM125*/126/* Persistent memory for diagnostics (64KiB) */127PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,128(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))129130/*131* Smartcard132*/133/* Read and write buffers for Internal/External cards (10KiB) */134PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, IORESOURCE_MEM)135136/*137* KAVNET138*/139/* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */140PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1,141IORESOURCE_MEM)142/* NP Image - must be video bank 1 (320KiB) */143PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM)144/* NP IPC - must be video bank 2 (512KiB) */145PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM)146147/*148* NAND Flash149*/150/* 10KiB */151PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1,152IORESOURCE_MEM)153154/*155* TFTPBuffer156*157* This buffer is used in some minimal configurations (e.g. two-way158* loader) for storing software images159*/160PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1,161(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))162163/*164* Add other resources here165*/166167/*168* End of Resource marker169*/170{171.flags = 0,172},173};174175176