/*
 * Copyright (c) 2006 Jon Sevy <jsevy@cs.drexel.edu>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by Ichiro FUKUHARA.
 * 4. The name of the company nor the name of the author may be used to
 *    endorse or promote products derived from this software without specific
 *    prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA ``AS IS'' AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS HEAD BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#ifndef _VX115_VEP_VAR_H_
#define _VX115_VEP_VAR_H_

#include <arm/vx115/vx115_reg.h>


/* the Vx115 VEP board has 2 banks of SRAM, on SSMC banks 1 and 3 */
#define SRAM_BANK_0_START   SSMC_BANK_1_BASE   /* 0x24000000 */
#define SRAM_BANK_0_SIZE    (16 * 1024 * 1024)
#define SRAM_BANK_1_START   SSMC_BANK_3_BASE   /* 0x2c000000 */
#define SRAM_BANK_1_SIZE    (16 * 1024 * 1024)

/* RAM offset in bank 0; size of bottom of RAM reserved for comms stack */
#define SRAM_BANK_0_OFFSET  (1 * 1024 * 1024)
#define KERNEL_BASE_OFFSET  SRAM_BANK_0_OFFSET

/* offset of kernel text from kernel base (phys) */
#define KERNEL_TEXT_OFFSET  0x00200000

/* start of vm from kernel base (virt) */
#define KERNEL_VM_OFFSET   0x01000000

/* the range 0xc1000000 - 0xccffffff is available for kernel VM space   */
/* registers and I/O mappings occupy 0xfd000000 - 0xffffffff            */
#define KERNEL_VM_SIZE      0x0C000000


#endif /* _VX115_VEP_VAR_H_ */
