1 /* Created by Tony Li <tony.li@freescale.com>
2 * Copyright (c) 2005 freescale semiconductor
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 675 Mass Ave, Cambridge, MA 02139, USA.
19 #ifndef __PPC_SYSLIB_PPC83XX_PCI_H
20 #define __PPC_SYSLIB_PPC83XX_PCI_H
22 typedef struct immr_clk
{
23 u32 spmr
; /* system PLL mode Register */
24 u32 occr
; /* output clock control Register */
25 u32 sccr
; /* system clock control Register */
32 typedef struct immr_ios
{
75 #define POTAR_TA_MASK 0x000fffff
76 #define POBAR_BA_MASK 0x000fffff
77 #define POCMR_EN 0x80000000
78 #define POCMR_IO 0x40000000 /* 0--memory space 1--I/O space */
79 #define POCMR_SE 0x20000000 /* streaming enable */
80 #define POCMR_DST 0x10000000 /* 0--PCI1 1--PCI2 */
81 #define POCMR_CM_MASK 0x000fffff
84 * PCI Controller Control and Status Registers
86 typedef struct immr_pcictrl
{
118 #define PITAR_TA_MASK 0x000fffff
119 #define PIBAR_MASK 0xffffffff
120 #define PIEBAR_EBA_MASK 0x000fffff
121 #define PIWAR_EN 0x80000000
122 #define PIWAR_PF 0x20000000
123 #define PIWAR_RTT_MASK 0x000f0000
124 #define PIWAR_RTT_NO_SNOOP 0x00040000
125 #define PIWAR_RTT_SNOOP 0x00050000
126 #define PIWAR_WTT_MASK 0x0000f000
127 #define PIWAR_WTT_NO_SNOOP 0x00004000
128 #define PIWAR_WTT_SNOOP 0x00005000
129 #define PIWAR_IWS_MASK 0x0000003F
130 #define PIWAR_IWS_4K 0x0000000B
131 #define PIWAR_IWS_8K 0x0000000C
132 #define PIWAR_IWS_16K 0x0000000D
133 #define PIWAR_IWS_32K 0x0000000E
134 #define PIWAR_IWS_64K 0x0000000F
135 #define PIWAR_IWS_128K 0x00000010
136 #define PIWAR_IWS_256K 0x00000011
137 #define PIWAR_IWS_512K 0x00000012
138 #define PIWAR_IWS_1M 0x00000013
139 #define PIWAR_IWS_2M 0x00000014
140 #define PIWAR_IWS_4M 0x00000015
141 #define PIWAR_IWS_8M 0x00000016
142 #define PIWAR_IWS_16M 0x00000017
143 #define PIWAR_IWS_32M 0x00000018
144 #define PIWAR_IWS_64M 0x00000019
145 #define PIWAR_IWS_128M 0x0000001A
146 #define PIWAR_IWS_256M 0x0000001B
147 #define PIWAR_IWS_512M 0x0000001C
148 #define PIWAR_IWS_1G 0x0000001D
149 #define PIWAR_IWS_2G 0x0000001E
151 #endif /* __PPC_SYSLIB_PPC83XX_PCI_H */