lkml.org 
[lkml]   [2001]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: question from linuxppc group
On Tue, Sep 25, 2001 at 11:35:57PM +0200, Benjamin Herrenschmidt wrote:
> >We have a host bridge (plus PIC, mem ctlr, etc.) that is essentially
> >identical
> >for ppc and mips. Where is the best place to put the code since we
> >don't want to
> >duplicate it for both architectures?
>
> Well, most of the PCI & interrupt frameworks are mostly arch specific.
> I can't tell for MIPS, but the way you setup a PCI host bridge on PPC
> was written by me and Paulus without looking at MIPS.

Well, MIPS has been looking at us a bit I know. Also, the patch that
Mark/Matt did uses the pci_auto stuff for setting up the bridges (iirc
thats what that code is for anyhow :)) and MIPS has been using that
as well of late, tho their gt64120 bits don't look like they use it
right now.

> I don't think there is real need to have common code here. Maybe some
> common definitions (register defs for example) could go into a linux/*.h
> file.

If nothing else, yeah. And all of the drivers into drivers/.

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.034 / U:4.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site