Home | History | Annotate | Line # | Download | only in gemini
gemini.h revision 1.1
      1  1.1  matt /*	$NetBSD: gemini.h,v 1.1 2008/10/24 04:23:18 matt Exp $	*/
      2  1.1  matt 
      3  1.1  matt /* adapted from:
      4  1.1  matt  *	NetBSD: sdp24xx.h,v 1.3 2008/08/27 11:03:10 matt Exp
      5  1.1  matt  */
      6  1.1  matt 
      7  1.1  matt /*
      8  1.1  matt  * Copyright (c) 2007 Microsoft
      9  1.1  matt  * All rights reserved.
     10  1.1  matt  *
     11  1.1  matt  * Redistribution and use in source and binary forms, with or without
     12  1.1  matt  * modification, are permitted provided that the following conditions
     13  1.1  matt  * are met:
     14  1.1  matt  * 1. Redistributions of source code must retain the above copyright
     15  1.1  matt  *    notice, this list of conditions and the following disclaimer.
     16  1.1  matt  * 2. Redistributions in binary form must reproduce the above copyright
     17  1.1  matt  *    notice, this list of conditions and the following disclaimer in the
     18  1.1  matt  *    documentation and/or other materials provided with the distribution.
     19  1.1  matt  * 3. All advertising materials mentioning features or use of this software
     20  1.1  matt  *    must display the following acknowledgement:
     21  1.1  matt  *	This product includes software developed by Microsoft
     22  1.1  matt  *
     23  1.1  matt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
     24  1.1  matt  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     25  1.1  matt  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.1  matt  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTERS BE LIABLE FOR ANY DIRECT,
     27  1.1  matt  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     28  1.1  matt  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     29  1.1  matt  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.1  matt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.1  matt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.1  matt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.1  matt  * SUCH DAMAGE.
     34  1.1  matt  */
     35  1.1  matt 
     36  1.1  matt #ifndef _EVBARM_GEMINI_GEMINI_H
     37  1.1  matt #define _EVBARM_GEMINI_GEMINI_H
     38  1.1  matt 
     39  1.1  matt #include <arm/gemini/gemini_reg.h>
     40  1.1  matt 
     41  1.1  matt /*
     42  1.1  matt  * Kernel VM space: 192MB at KERNEL_VM_BASE
     43  1.1  matt  */
     44  1.1  matt #define	KERNEL_VM_BASE		((KERNEL_BASE + 0x01000000) & ~(0x400000-1))
     45  1.1  matt #define KERNEL_VM_SIZE		0x0C000000
     46  1.1  matt 
     47  1.1  matt /*
     48  1.1  matt  * We devmap IO starting at KERNEL_VM_BASE + KERNEL_VM_SIZE
     49  1.1  matt  */
     50  1.1  matt #define	GEMINI_KERNEL_IO_VBASE	(KERNEL_VM_BASE + KERNEL_VM_SIZE)
     51  1.1  matt #define	GEMINI_WATCHDOG_VBASE		GEMINI_KERNEL_IO_VBASE
     52  1.1  matt #define	GEMINI_CONSOLE_VBASE		(GEMINI_WATCHDOG_VBASE + L1_S_SIZE)
     53  1.1  matt #define	GEMINI_TIMER_VBASE		(GEMINI_CONSOLE_VBASE  + L1_S_SIZE)
     54  1.1  matt 
     55  1.1  matt 
     56  1.1  matt #endif /* _EVBARM_GEMINI_GEMINI_H */
     57