Subject: ibm4xx pci (Re: IBM405GP/GPr OPB bus_space endian (powerpc/ibm4xx/dev/opb.c))
To: None <port-powerpc@NetBSD.org>
From: Shigeyuki Fukushima <shige@netbsd.org>
List: port-powerpc
Date: 05/10/2006 19:35:29
Izumi Tsutsui wrote:
> In article <4415706A.6030103@netbsd.org>
> shige@NetBSD.org wrote:
>
>>>> - options IBM405GP (or something) is needed to specify ibm405gp.c
>>>>   (or should it be renamed to obppci.c??)
>>> PCI doesn't need to be 405gp specific.  It attaches to the PLB
>>> (processor local bus), so plbpci.c would be better.
>> ibm4xx/pci/pchb.c + ibm4xx/dev/ibm405gp.c = plbpci.c ?
> 
> Maybe.
> 
>> And...
>> Two functions in ibm4xx/pci/pci_machdep.c
>> (pci_intr_map()/pci_conf_interrupt()) are machine-dependent.
>> We should move them to evbppc/<board>/pci_machdep.c.
>> I think that other functions to powerpc/dev/plbpci.c. Is it ok?
> 
> Hmm, it's okay to put these functions into MD files,
> but I'm not sure if pci_machdep.c is appropriate or not.
> Is there any other board-specific file like evbmips?

I will make an arrangement of ibm4xx pci driver.
Before doing this, I have a simple question.

Why is pchb below on plb directly?
(cf. On i386 port, mainbus -> pci -> pchb.)

Are there some reasons?

-- 
Kind Regards,
--- shige
Shigeyuki Fukushima <shige@{FreeBSD,jp.FreeBSD,NetBSD}.org>