Subject: Re: ofb proposal
To: Chris Tribo <ctribo@dtcc.edu>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 01/28/2005 15:46:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

> There was also some discussion about being able to do quiesce OF once 
> we don't need OF directly for console I/O.
As far as I can tell the kernel relies completely on ofb_cnattach() and 
doesn't output anything through OF, at least when ofb is present 
(without ofb the last thing you see on the console when booting the 
kernel is the message from ofwboot). We do however use OF a lot to read 
device configuration information.

> It all sounds good to me. I would assume that darwin does something 
> similar to what you propose before it loads a native video driver or 
> attaches the NDRV through a wrapper.
I'm pretty sure it does. I tried to boot it once on a machine without 
OF character console support and it displayed a vaguely ANSIish console 
right after loading the kernel ( which then paniced but that's another 
story )

> Would be interesting if we could attach vga to pc cards without fcode 
> drivers too, but that's a design goal for much later.
vga misses only two bus_space macros/functions, I forgot which exactly 
( bus_space_copy_region or something like that ). But without OF they 
wouldn't attach as console anyway since we use OF's /chosen to figure 
out where the console is and OF wouldn't put anything there it can't 
use itself if I remember correctly.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBQfqkmcpnzkX8Yg2nAQJY8Qf/SR1uF9HRdLpIw/S9sopfOPFFAiSkRKoT
bEqppA55H2NBKpe3KlqjhynXE6mhxiIjTer9LlFmuIHxaRgOzpjeJpPWvkm0jyRn
ngiPd0goL+MBTOhU+qoy4ThZpxM4rhP/u7TRkInN90w5OhcGpD2W/n0nBaJRPLG9
7od0zvn4dUIFKg2meczmZMLUQ8HW3a6ZRp3Qhn0K7luJ5WOr2nqnK9EGk26f6X8S
AoU485o9RZ7RleukdNB0q4owZ7T04etuZUPx3D8X8SOr68x/3wsjDU3qzNp2Qk95
z5og0HeSSKVIKp35Ir++/FhG66Angi2GT9ZvPOV7HYXwUPKD8Ov6yg==
=vFTU
-----END PGP SIGNATURE-----