From: "Huang, Ying" This patch adds Graphics Output Protocol support to the kernel. UEFI2.0 spec deprecates Universal Graphics Adapter (UGA) protocol and only Graphics Output Protocol (GOP) is produced. Therefore, the boot loader needs to query the UEFI firmware with appropriate Output Protocol and pass the video information to the kernel. As a result of GOP protocol, an EFI framebuffer driver is needed for displaying console messages. The patch adds a EFI framebuffer driver. The EFI frame buffer driver in this patch is based on the Intel Mac framebuffer driver. The ELILO bootloader takes care of passing the video information as appropriate for EFI firmware. The framebuffer driver has been tested in i386 kernel and x86_64 kernel on EFI platform. Signed-off-by: Chandramouli Narayanan Signed-off-by: Huang Ying Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andi Kleen Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/efifb.c | 2 +- include/linux/screen_info.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/video/efifb.c~x86_64-efi-boot-support-efi-frame-buffer-v3 drivers/video/efifb.c --- a/drivers/video/efifb.c~x86_64-efi-boot-support-efi-frame-buffer-v3 +++ a/drivers/video/efifb.c @@ -1,5 +1,5 @@ /* - * framebuffer driver for EFI/UEFI based system + * Framebuffer driver for EFI/UEFI based system * * (c) 2006 Edgar Hucek * Original efi driver written by Gerd Knorr diff -puN include/linux/screen_info.h~x86_64-efi-boot-support-efi-frame-buffer-v3 include/linux/screen_info.h --- a/include/linux/screen_info.h~x86_64-efi-boot-support-efi-frame-buffer-v3 +++ a/include/linux/screen_info.h @@ -51,7 +51,6 @@ struct screen_info { #define VIDEO_TYPE_EGAC 0x21 /* EGA in Color Mode */ #define VIDEO_TYPE_VGAC 0x22 /* VGA+ in Color Mode */ #define VIDEO_TYPE_VLFB 0x23 /* VESA VGA in graphic mode */ -#define VIDEO_TYPE_EFI 0x24 /* EFI graphic mode */ #define VIDEO_TYPE_PICA_S3 0x30 /* ACER PICA-61 local S3 video */ #define VIDEO_TYPE_MIPS_G364 0x31 /* MIPS Magnum 4000 G364 video */ @@ -64,6 +63,8 @@ struct screen_info { #define VIDEO_TYPE_PMAC 0x60 /* PowerMacintosh frame buffer. */ +#define VIDEO_TYPE_EFI 0x70 /* EFI graphic mode */ + #ifdef __KERNEL__ extern struct screen_info screen_info; _