Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LVD7K-000582-GZ for mharc-grub-devel@gnu.org; Thu, 05 Feb 2009 17:54:42 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVD7I-00054S-1j for grub-devel@gnu.org; Thu, 05 Feb 2009 17:54:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVD7E-0004yb-EH for grub-devel@gnu.org; Thu, 05 Feb 2009 17:54:39 -0500 Received: from [199.232.76.173] (port=41957 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVD7E-0004yI-7K for grub-devel@gnu.org; Thu, 05 Feb 2009 17:54:36 -0500 Received: from gateway16.websitewelcome.com ([69.56.239.11]:34939) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LVD7D-0007QD-KL for grub-devel@gnu.org; Thu, 05 Feb 2009 17:54:36 -0500 Received: (qmail 5494 invoked from network); 5 Feb 2009 23:12:14 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway16.websitewelcome.com with SMTP; 5 Feb 2009 23:12:14 -0000 Received: from [146.187.134.233] (port=53138 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1LVD76-0003ex-4P for grub-devel@gnu.org; Thu, 05 Feb 2009 16:54:28 -0600 Date: Thu, 5 Feb 2009 14:54:28 -0800 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20090205145428.2859b6c3@gibibit.com> In-Reply-To: <498B4FCB.6090106@gmail.com> References: <498B4FCB.6090106@gmail.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/7IrGr6+bZI.RpOVuEO3h/Wf"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Framebuffer address and kernel video mode X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 22:54:40 -0000 --Sig_/7IrGr6+bZI.RpOVuEO3h/Wf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 05 Feb 2009 21:44:59 +0100 phcoder wrote: > Hello. First of all some good news: I managed to boot xnu kernel. To do=20 > so I need to set it to video mode and pass video mode info to kernel.=20 > Now I do it in adapter-specific way which is bad and ugly. So I would=20 > like to propose an interface to set video mode before loading kernel and= =20 > then retrieve information: > For this I propose to put grub_gfxterm_init lines 253 (modevar =3D=20 > grub_env_get ("gfxmode"))-482 (grub_video_fill_rect (...)) into video.c as > grub_video_setup_by_var (char *varname) > The informations I need is: >=20 > framebuffer address, bytes_per_scan_line, resolution, color depth >=20 > Unfortunately framebuffer_address and bytes_per_scanline is missing from= =20 > struct grub_video_mode_info. I propose to add it to this structure >=20 > Thanks > Vladimir 'phcoder' Serbinenko Well, we could do this, but I don't really like the idea of making framebuffer address and bytes_per_scan line parts of the generic video API. I think it would be OK to make these data accessible as an optional feature. That is, potentially future video drivers might not use a framebuffer. (OpenGL driver? :-) The VBE driver can return the framebuffer address, but if another driver can't provide it, then maybe NULL is returned instead, and this would have to be handled by clients of the video API. Regards, Colin --Sig_/7IrGr6+bZI.RpOVuEO3h/Wf Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmLbicACgkQokx8fzcGbYfMaQCaAs5kEgFeB3D9LmQk1bV24XEB lVsAn3VoKVBOkaLaD4rsrVQFoof2zIcN =Nddg -----END PGP SIGNATURE----- --Sig_/7IrGr6+bZI.RpOVuEO3h/Wf--