4xx change to core files

Matt Porter mporter at mvista.com
Thu May 9 03:51:57 EST 2002


On Wed, May 08, 2002 at 09:45:02AM -0700, Armin wrote:
> The core_ocp[] is don ein the following:
>
> new struct in asm-ppc/ocp.h
>
> struct ocp_def {
> 	enum ocp_type type;
> 	int paddr;
> 	int irq;
> };
 };

<snip>

> new ocp APIs:
>
> unsigned long get_ocp_paddr(int type, int dev_num);
>   returns the physical address for a given ocp type for the nth one.
>   this is used when the mmu is not completely up such as during pci
> bring up.

It would be helpful for 36-bit 4xx core implementations (440gp/440gx)
if the paddr used the phys_addr_t typedef so we could store a
native 64-bit address.

It would appear to me that one would expect to be able to do
the following:

	ioremap(get_ocp_paddr(<type>, <num>), <size>);

Is that the intention?

--
Matt Porter
MontaVista Software, Inc.
mporter at mvista.com

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list