2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Memory pre-allocations for Cronus boxes.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005-2009 Scientific-Atlanta, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
2013-01-22 11:59:30 +00:00
|
|
|
* Author: Ken Eppinett
|
|
|
|
* David Schleef <ds@schleef.org>
|
2009-08-31 00:15:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
2010-05-07 22:17:02 +00:00
|
|
|
#include <linux/ioport.h>
|
2009-08-31 00:15:11 +00:00
|
|
|
#include <asm/mach-powertv/asic.h>
|
2010-05-07 22:17:02 +00:00
|
|
|
#include "prealloc.h"
|
2009-08-31 00:15:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* DVR_CAPABLE CRONUS RESOURCES
|
|
|
|
*/
|
|
|
|
struct resource dvr_cronus_resources[] __initdata =
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* VIDEO1 / LX1
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Delta-Mu 1 image (2MiB) */
|
|
|
|
PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 1 monitor (8KiB) */
|
|
|
|
PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */
|
|
|
|
PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26000000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* VIDEO2 / LX2
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Delta-Mu 2 image (2MiB) */
|
|
|
|
PREALLOC_NORMAL("ST231bImage", 0x60000000, 0x60200000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 2 monitor (8KiB) */
|
|
|
|
PREALLOC_NORMAL("ST231bMonitor", 0x60200000, 0x60202000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 2 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */
|
|
|
|
PREALLOC_NORMAL("MediaMemory2", 0x60202000, 0x62000000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Sysaudio Driver
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* DSP code and data images (1MiB) */
|
|
|
|
PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC CPU PCM buffer (40KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC AUX buffer (128KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC Main buffer (128KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* STAVEM driver/STAPI
|
|
|
|
*
|
|
|
|
* This memory area is used for allocating buffers for Video decoding
|
|
|
|
* purposes. Allocation/De-allocation within this buffer is managed
|
2013-01-22 11:59:30 +00:00
|
|
|
* by the STAVMEM driver of the STAPI. They could be Decimated
|
2009-08-31 00:15:11 +00:00
|
|
|
* Picture Buffers, Intermediate Buffers, as deemed necessary for
|
|
|
|
* video decoding purposes, for any video decoders on Zeus.
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 12MiB */
|
|
|
|
PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00c00000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* DOCSIS Subsystem
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 7MiB */
|
|
|
|
PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* GHW HAL Driver
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* PowerTV Graphics Heap (14MiB) */
|
|
|
|
PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* multi com buffer area
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 128KiB */
|
|
|
|
PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* DMA Ring buffer
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x002EA000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Display bins buffer for unit0
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 4KiB */
|
|
|
|
PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
2010-05-07 22:17:02 +00:00
|
|
|
* Display bins buffer for unit1
|
2009-08-31 00:15:11 +00:00
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 4KiB */
|
|
|
|
PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* ITFS
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 815,104 bytes each for 2 ITFS partitions. */
|
|
|
|
PREALLOC_NORMAL("ITFS", 0x00000000, 0x0018E000-1, IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* AVFS
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* (945K * 8) = (128K * 3) 5 playbacks / 3 server */
|
|
|
|
PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x007c2000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
|
|
|
/* 4KiB */
|
|
|
|
PREALLOC_NORMAL("AvfsFileSys", 0x00000000, 0x00001000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* PMEM
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Persistent memory for diagnostics (64KiB) */
|
|
|
|
PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Smartcard
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Read and write buffers for Internal/External cards (10KiB) */
|
|
|
|
PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* KAVNET
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* NP Image - must be video bank 1 (320KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM)
|
|
|
|
/* NP IPC - must be video bank 2 (512KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TFTPBuffer
|
|
|
|
*
|
|
|
|
* This buffer is used in some minimal configurations (e.g. two-way
|
|
|
|
* loader) for storing software images
|
|
|
|
*/
|
|
|
|
PREALLOC_TFTP("TFTPBuffer", 0x00000000, MEBIBYTE(80)-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Add other resources here
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* End of Resource marker
|
|
|
|
*/
|
|
|
|
{
|
2013-01-22 11:59:30 +00:00
|
|
|
.flags = 0,
|
2010-05-07 22:17:02 +00:00
|
|
|
},
|
2009-08-31 00:15:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NON_DVR_CAPABLE CRONUS RESOURCES
|
|
|
|
*/
|
|
|
|
struct resource non_dvr_cronus_resources[] __initdata =
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* VIDEO1 / LX1
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Delta-Mu 1 image (2MiB) */
|
|
|
|
PREALLOC_NORMAL("ST231aImage", 0x24000000, 0x24200000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 1 monitor (8KiB) */
|
|
|
|
PREALLOC_NORMAL("ST231aMonitor", 0x24200000, 0x24202000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 1 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */
|
|
|
|
PREALLOC_NORMAL("MediaMemory1", 0x24202000, 0x26000000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* VIDEO2 / LX2
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Delta-Mu 2 image (2MiB) */
|
|
|
|
PREALLOC_NORMAL("ST231bImage", 0x60000000, 0x60200000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 2 monitor (8KiB) */
|
|
|
|
PREALLOC_NORMAL("ST231bMonitor", 0x60200000, 0x60202000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* Delta-Mu 2 RAM (~29.9MiB (32MiB - (2MiB + 8KiB))) */
|
|
|
|
PREALLOC_NORMAL("MediaMemory2", 0x60202000, 0x62000000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Sysaudio Driver
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* DSP code and data images (1MiB) */
|
|
|
|
PREALLOC_NORMAL("DSP_Image_Buff", 0x00000000, 0x00100000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC CPU PCM buffer (40KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_CPU_PCM_Buff", 0x00000000, 0x0000A000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC AUX buffer (128KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_AUX_Buff", 0x00000000, 0x00020000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
/* ADSC Main buffer (128KiB) */
|
|
|
|
PREALLOC_NORMAL("ADSC_Main_Buff", 0x00000000, 0x00020000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* STAVEM driver/STAPI
|
|
|
|
*
|
|
|
|
* This memory area is used for allocating buffers for Video decoding
|
|
|
|
* purposes. Allocation/De-allocation within this buffer is managed
|
2013-01-22 11:59:30 +00:00
|
|
|
* by the STAVMEM driver of the STAPI. They could be Decimated
|
2009-08-31 00:15:11 +00:00
|
|
|
* Picture Buffers, Intermediate Buffers, as deemed necessary for
|
|
|
|
* video decoding purposes, for any video decoders on Zeus.
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 12MiB */
|
|
|
|
PREALLOC_NORMAL("AVMEMPartition0", 0x00000000, 0x00c00000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* DOCSIS Subsystem
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 7MiB */
|
|
|
|
PREALLOC_DOCSIS("Docsis", 0x67500000, 0x67c00000-1, IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* GHW HAL Driver
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* PowerTV Graphics Heap (14MiB) */
|
|
|
|
PREALLOC_NORMAL("GraphicsHeap", 0x62700000, 0x63500000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* multi com buffer area
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 128KiB */
|
|
|
|
PREALLOC_NORMAL("MulticomSHM", 0x26000000, 0x26020000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
2010-05-07 22:17:02 +00:00
|
|
|
* DMA Ring buffer (don't need recording buffers)
|
2009-08-31 00:15:11 +00:00
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 680KiB */
|
|
|
|
PREALLOC_NORMAL("BMM_Buffer", 0x00000000, 0x000AA000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Display bins buffer for unit0
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 4KiB */
|
|
|
|
PREALLOC_NORMAL("DisplayBins0", 0x00000000, 0x00001000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
2010-05-07 22:17:02 +00:00
|
|
|
* Display bins buffer for unit1
|
2009-08-31 00:15:11 +00:00
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 4KiB */
|
|
|
|
PREALLOC_NORMAL("DisplayBins1", 0x00000000, 0x00001000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* AVFS: player HAL memory
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* 945K * 3 for playback */
|
|
|
|
PREALLOC_NORMAL("AvfsDmaMem", 0x00000000, 0x002c4c00-1, IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* PMEM
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Persistent memory for diagnostics (64KiB) */
|
|
|
|
PREALLOC_PMEM("DiagPersistentMemory", 0x00000000, 0x10000-1,
|
|
|
|
(IORESOURCE_MEM|IORESOURCE_PTV_RES_LOEXT))
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* Smartcard
|
|
|
|
*/
|
2010-05-07 22:17:02 +00:00
|
|
|
/* Read and write buffers for Internal/External cards (10KiB) */
|
|
|
|
PREALLOC_NORMAL("SmartCardInfo", 0x00000000, 0x2800-1, IORESOURCE_MEM)
|
|
|
|
|
2009-08-31 00:15:11 +00:00
|
|
|
/*
|
|
|
|
* KAVNET
|
2010-05-07 22:17:02 +00:00
|
|
|
*/
|
|
|
|
/* NP Reset Vector - must be of the form xxCxxxxx (4KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_Reset_Vector", 0x27c00000, 0x27c01000-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
/* NP Image - must be video bank 1 (320KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_Image", 0x27020000, 0x27070000-1, IORESOURCE_MEM)
|
|
|
|
/* NP IPC - must be video bank 2 (512KiB) */
|
|
|
|
PREALLOC_NORMAL("NP_IPC", 0x63500000, 0x63580000-1, IORESOURCE_MEM)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NAND Flash
|
|
|
|
*/
|
|
|
|
/* 10KiB */
|
|
|
|
PREALLOC_NORMAL("NandFlash", NAND_FLASH_BASE, NAND_FLASH_BASE+0x400-1,
|
|
|
|
IORESOURCE_MEM)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Add other resources here
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* End of Resource marker
|
2009-08-31 00:15:11 +00:00
|
|
|
*/
|
|
|
|
{
|
2013-01-22 11:59:30 +00:00
|
|
|
.flags = 0,
|
2009-08-31 00:15:11 +00:00
|
|
|
},
|
|
|
|
};
|