Subject: Re: dev/ofw/ofdisk.c
To: None <port-ofppc@NetBSD.org>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-ofppc
Date: 10/17/2007 09:48:30
On Tue, 16 Oct 2007 20:38:16 +0200
Frank Wille <frank@phoenix.owl.de> wrote:

> I tried it today and it works great on the Pegasos. And it seems that
> Jochen has good success on the RS6000 as well.
Jorge tested my code on the Pegasos back when I was writing it...

> Hm. I noticed that you also removed the 'platform'-stuff in ofppc.
As Tim already wrote: The platform code just doesn't fit. It was too
static. E.g. every platorm had its own bus_space(9) and interupt code.
But since the inception of port-ofppc we became a generic, run time
configurable PPC bus_space(9) backend. So we have to replace the one,
single big platform-switch by many different subsystem switches and make
it all run time configurable. That way port-ofppc can adapt itself to
any generic ofppc machine, parametrized by the OFW. With the platform
code you actually needed to write support code for every new platform.
With the new model the code should adapt itself to a new machine
automagically at run time. (Modulo machine speciffic quirks, that, if
needed at all, are much less work the the entire platform code.)
--=20


tsch=FC=DF,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/