amcc405ex.h revision 1.1.2.2 1 1.1.2.2 uebayasi /* $NetBSD: amcc405ex.h,v 1.1.2.2 2010/04/30 14:39:43 uebayasi Exp $ */
2 1.1.2.2 uebayasi
3 1.1.2.2 uebayasi /*
4 1.1.2.2 uebayasi * Copyright 2001 Wasabi Systems, Inc.
5 1.1.2.2 uebayasi * All rights reserved.
6 1.1.2.2 uebayasi *
7 1.1.2.2 uebayasi * Written by Simon Burge and Eduardo Horvath for Wasabi Systems, Inc.
8 1.1.2.2 uebayasi *
9 1.1.2.2 uebayasi * Redistribution and use in source and binary forms, with or without
10 1.1.2.2 uebayasi * modification, are permitted provided that the following conditions
11 1.1.2.2 uebayasi * are met:
12 1.1.2.2 uebayasi * 1. Redistributions of source code must retain the above copyright
13 1.1.2.2 uebayasi * notice, this list of conditions and the following disclaimer.
14 1.1.2.2 uebayasi * 2. Redistributions in binary form must reproduce the above copyright
15 1.1.2.2 uebayasi * notice, this list of conditions and the following disclaimer in the
16 1.1.2.2 uebayasi * documentation and/or other materials provided with the distribution.
17 1.1.2.2 uebayasi * 3. All advertising materials mentioning features or use of this software
18 1.1.2.2 uebayasi * must display the following acknowledgement:
19 1.1.2.2 uebayasi * This product includes software developed for the NetBSD Project by
20 1.1.2.2 uebayasi * Wasabi Systems, Inc.
21 1.1.2.2 uebayasi * 4. The name of Wasabi Systems, Inc. may not be used to endorse
22 1.1.2.2 uebayasi * or promote products derived from this software without specific prior
23 1.1.2.2 uebayasi * written permission.
24 1.1.2.2 uebayasi *
25 1.1.2.2 uebayasi * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
26 1.1.2.2 uebayasi * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27 1.1.2.2 uebayasi * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 1.1.2.2 uebayasi * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC
29 1.1.2.2 uebayasi * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30 1.1.2.2 uebayasi * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31 1.1.2.2 uebayasi * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32 1.1.2.2 uebayasi * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33 1.1.2.2 uebayasi * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34 1.1.2.2 uebayasi * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35 1.1.2.2 uebayasi * POSSIBILITY OF SUCH DAMAGE.
36 1.1.2.2 uebayasi */
37 1.1.2.2 uebayasi
38 1.1.2.2 uebayasi #ifndef _IBM4XX_AMCC405EX_H_
39 1.1.2.2 uebayasi #define _IBM4XX_AMCC405EX_H_
40 1.1.2.2 uebayasi
41 1.1.2.2 uebayasi /*
42 1.1.2.2 uebayasi * Memory and PCI addresses
43 1.1.2.2 uebayasi */
44 1.1.2.2 uebayasi
45 1.1.2.2 uebayasi /* Local Memory and Peripherals */
46 1.1.2.2 uebayasi #define AMCC405EX_LOCAL_MEM_START 0x00000000
47 1.1.2.2 uebayasi #define AMCC405EX_LOCAL_MEM_END 0x7fffffff
48 1.1.2.2 uebayasi
49 1.1.2.2 uebayasi /* EBC - 256MB */
50 1.1.2.2 uebayasi #define AMCC405EX_EBC_START 0x80000000
51 1.1.2.2 uebayasi #define AMCC405EX_EBC_END 0x8fffffff
52 1.1.2.2 uebayasi
53 1.1.2.2 uebayasi /* PCI Express - 1.6GB */
54 1.1.2.2 uebayasi #define AMCC405EX_PCIE_MEM_START 0x90000000
55 1.1.2.2 uebayasi #define AMCC405EX_PCIE_MEM_END 0xef5fffff
56 1.1.2.2 uebayasi
57 1.1.2.2 uebayasi /*
58 1.1.2.2 uebayasi * Internal peripheral addresses
59 1.1.2.2 uebayasi */
60 1.1.2.2 uebayasi
61 1.1.2.2 uebayasi #define AMCC405EX_OPB_BASE 0xef600000
62 1.1.2.2 uebayasi #define AMCC405EX_GPT0_BASE 0xef600000
63 1.1.2.2 uebayasi #define AMCC405EX_UART0_BASE 0xef600200
64 1.1.2.2 uebayasi #define AMCC405EX_UART1_BASE 0xef600300
65 1.1.2.2 uebayasi #define AMCC405EX_IIC0_BASE 0xef600400
66 1.1.2.2 uebayasi #define AMCC405EX_IIC1_BASE 0xef600500
67 1.1.2.2 uebayasi #define AMCC405EX_SCP0_BASE 0xef600600
68 1.1.2.2 uebayasi #define AMCC405EX_OPBA0_BASE 0xef600700
69 1.1.2.2 uebayasi #define AMCC405EX_GPIO0_BASE 0xef600800
70 1.1.2.2 uebayasi #define AMCC405EX_EMAC0_BASE 0xef600900
71 1.1.2.2 uebayasi #define AMCC405EX_EMAC1_BASE 0xef600a00
72 1.1.2.2 uebayasi #define AMCC405EX_RGMIIB0_BASE 0xef600b00
73 1.1.2.2 uebayasi
74 1.1.2.2 uebayasi #define AMCC405EX_PKATRNG0_BASE 0xef610000
75 1.1.2.2 uebayasi #define AMCC405EX_PCIEIH0_BASE 0xef620000
76 1.1.2.2 uebayasi #define AMCC405EX_USBOTG0_BASE 0xef6c0000
77 1.1.2.2 uebayasi #define AMCC405EX_SECURITY0_BASE 0xef700000
78 1.1.2.2 uebayasi
79 1.1.2.2 uebayasi
80 1.1.2.2 uebayasi /* Expansion ROM - 254MB */
81 1.1.2.2 uebayasi #define AMCC405EX_EXPANSION_ROM_START 0xf0000000
82 1.1.2.2 uebayasi #define AMCC405EX_EXPANSION_ROM_END 0xffdfffff
83 1.1.2.2 uebayasi
84 1.1.2.2 uebayasi /* Boot ROM - 2MB */
85 1.1.2.2 uebayasi #define AMCC405EX_BOOT_ROM_START 0xffe00000
86 1.1.2.2 uebayasi #define AMCC405EX_BOOT_ROM_END 0xffffffff
87 1.1.2.2 uebayasi
88 1.1.2.2 uebayasi #ifndef _LOCORE
89 1.1.2.2 uebayasi void ibm4xx_show_pci_map(void);
90 1.1.2.2 uebayasi void ibm4xx_setup_pci(void);
91 1.1.2.2 uebayasi #endif /* _LOCORE */
92 1.1.2.2 uebayasi #endif /* _IBM4XX_AMCC405EX_H_ */
93