Subject: Re: Adding video mode info to struct wsscreen_descr
To: None <junyoung@mogua.com>
From: TAKEMURA Shin <takemura@netbsd.org>
List: tech-kern
Date: 07/10/2002 18:33:48
From: Bang Jun-Young <junyoung@mogua.com>
Subject: Re: Adding video mode info to struct wsscreen_descr
Date: Wed, 10 Jul 2002 16:49:44 +0900
> To make a story simpler, wscons has support for both character cell
> and raster displays, but it doesn't define where to save video mode
> information for each screen. It only remembers screen size, e.g.
> 80x25. Isn't that unreasonable? wscons is designed to work on raster
> display, but it doesn't have complete support for it.
> 
> If modecookie were there from the beginning, no one would hate 
> that...

I agree.

> On Wed, Jul 10, 2002 at 11:44:54AM +0900, TAKEMURA Shin wrote:
> > You've already use the hack for long time :-)
> > 
> >     struct wsdisplay_softc {
> >         struct device sc_dv;  /* <- HERE! */
> 
> "We can do more hack simply because there's already a hack." ;-)

I think the hack is NOT quick nor adhoc. I believe that it is
very good/sophisticated approach to describe a data structure
which is derived from generic structure. Some C++ compiler do 
this internally to implement class inheritance mechanism. 
In case above, it tells that 'wsdisplay_softc' is a subclass 
of 'device'. Don't you think it is "right" ?

Takemura