All of lore.kernel.org
 help / color / mirror / Atom feed
* Can we get video card information in EFI environment ?
@ 2008-06-07 18:38 Bean
  2008-06-08 17:08 ` Bean
  0 siblings, 1 reply; 6+ messages in thread
From: Bean @ 2008-06-07 18:38 UTC (permalink / raw)
  To: The development of GRUB 2

Hi,

I encounter a small problem when writing the x86_64 EFI code. The
loader does work, but I'm struggle to get the frame buffer to work. In
order to do so, I need some information to fill in the linux header:

1. frame buffer address
2. frame buffer size
3. line buffer length

Other information, width, height and color depth can be retrieved
using UGA Draw protocol.

I have figured out the correct value for my macbook. By setting them
manually, I can get vesafb and efifb to work properly. intelfb is
supposed to work by accessing video card directly,  but it doesn't
work for me. imacfb is just a hack, it works if I feed in the value
properly.

But for a normal user, they can't know the values. Is there a way to
query them using pci interface, or is there some EFI service that I
miss ?

BTW, EFI 2.0 support Gop protocol which can be used to returned the
above information. Unfortunately, apple don't support it. When would
they upgrade to 2.0 ?

-- 
Bean



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-08 18:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 18:38 Can we get video card information in EFI environment ? Bean
2008-06-08 17:08 ` Bean
2008-06-08 17:17   ` Vesa Jääskeläinen
2008-06-08 17:35     ` Bean
2008-06-08 17:51       ` Vesa Jääskeläinen
2008-06-08 18:00         ` Bean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.