Subject: Re: Adding video mode info to struct wsscreen_descr
To: der Mouse <mouse@rodents.montreal.qc.ca>
From: Noriyuki Soda <soda@sra.co.jp>
List: tech-kern
Date: 07/09/2002 23:56:52
>>>>> On Tue, 9 Jul 2002 10:50:55 -0400 (EDT),
der Mouse <mouse@Rodents.Montreal.QC.CA> said:
>> Even if modecookie is used as opaque type from wscons related
>> routines, "struct video_modetiming" is better than "void *", because
>> compiler can check its type with the former.
> This may not be good. A given OS may support multiple cards with very
> different parameters; using a single type for that requires either
> constant casting (which defeats the typechecking you cite anyway) or a
> single huge struct supporting all the parameters any such card wants.
Hmm, you are right, especially for the type that multiple different
implelmentations of the type co-exist in one kernel image.
--
soda