Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1766884AbXEBUDn (ORCPT ); Wed, 2 May 2007 16:03:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1766887AbXEBUDd (ORCPT ); Wed, 2 May 2007 16:03:33 -0400 Received: from mga06.intel.com ([134.134.136.21]:24340 "EHLO orsmga101.jf.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1766875AbXEBUC6 (ORCPT ); Wed, 2 May 2007 16:02:58 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.14,482,1170662400"; d="scan'208";a="238205733" Message-Id: <20070501190111.145499000@em64tdvp.jf.intel.com> References: <20070501185945.237601000@em64tdvp.jf.intel.com> Date: Tue, 01 May 2007 11:59:48 -0700 From: Chandramouli Narayanan To: linux-kernel@vger.kernel.org Cc: ak@suse.de, akpm@linux-foundation.org Subject: [PATCH 2.6.21 3/3] x86_64: EFI64 support Content-Disposition: inline; filename=patch3 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11311 Lines: 328 EFI x86_64 support Patch 3 of 3 ------------------------------- This patch depends on the EFI x86_64 patches 1/3 and 2/3. This patch adds Graphics Output Protocol support to the kernel. x86_64 systems with UEFI2.0 firmware conform to UEFI 2.0 specification. 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. Patch 3 of 3 adds a EFI framebuffer driver. The EFI frame buffer driver in this patch is based on the Intel Mac framebuffer driver. Without the patch 3 of 3, the early console messages will not appear. Nor will switch to the text mode console work. The x86_64 ELILO bootloader takes care of passing the video information as appropriate for EFI firmware. Signed-off-by: Chandramouli Narayanan diff -uprN -X linux-2.6.21rc7-git2-orig/Documentation/dontdiff linux-2.6.21rc7-git2-orig/drivers/video/efifb.c linux-2.6.21rc7-git2-uefi-finaltest/drivers/video/efifb.c --- linux-2.6.21rc7-git2-orig/drivers/video/efifb.c 1969-12-31 16:00:00.000000000 -0800 +++ linux-2.6.21rc7-git2-uefi-finaltest/drivers/video/efifb.c 2007-04-19 13:01:02.000000000 -0700 @@ -0,0 +1,252 @@ +/* + * framebuffer driver for Intel Based Mac's + * + * (c) 2006 Edgar Hucek + * Original efi driver written by Gerd Knorr + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include