Subject: Re: CVS commit: syssrc/sys/dev/pci
To: Perry E. Metzger <perry@piermont.com>
From: Bang Jun-Young <junyoung@mogua.com>
List: source-changes
Date: 10/30/2002 03:02:58
On Tue, Oct 29, 2002 at 11:47:37AM -0500, Perry E. Metzger wrote:
> 
> Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> writes:
> > In article <20021029163659.GA7095@krishna>
> > junyoung@mogua.com wrote:
> > 
> > > #ifdef __sparc__ can't easily be avoided in machfb.c, since i386 and 
> > > sparc64 have very different boot process. As you might know, this change
> > > was basically to reduce the number of #ifdef __sparc__ (from 7 to 5).
> > 
> > Can't some of these code be moved to MD consinit()?
> 
> And if it could not, could we not invent a new MD API to move these
> things to?

One API would be needed that returns the current type of console,
whether normal or serial. By using it, it is possible to remove all of
remaining #ifdef __sparc__ from machfb.c, and also some from
igsfb.c. However, I have no idea how to implement it right now.

Jun-Young

-- 
Bang Jun-Young <junyoung@mogua.com>