Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752079Ab0HYPDl (ORCPT ); Wed, 25 Aug 2010 11:03:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22799 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696Ab0HYPDj (ORCPT ); Wed, 25 Aug 2010 11:03:39 -0400 Message-ID: <4C7530B8.3090806@redhat.com> Date: Wed, 25 Aug 2010 11:03:20 -0400 From: Peter Jones User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1 MIME-Version: 1.0 To: Colin Watson CC: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Garrett Subject: Re: [PATCH] Add new linearfb driver References: <20100825141111.GI21862@riva.ucam.org> In-Reply-To: <20100825141111.GI21862@riva.ucam.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 23420 Lines: 715 On 08/25/2010 10:11 AM, Colin Watson wrote: > Split out linearfb from efifb so that boot loaders can program it as a > simple linear framebuffer on non-EFI systems. This is useful for boot > loaders with their own graphics drivers, e.g. GRUB 2, since in some > cases on x86 they can set up non-VESA modes and thus can't program > vesafb. > > efifb is reworked on top of this common code, and it should be possible > to do the same with some other framebuffer drivers in future. > > Signed-off-by: Colin Watson > Acked-by: Matthew Garrett > Cc: Peter Jones Looks reasonable to me. Acked-by: Peter Jones > --- > drivers/video/Kconfig | 17 ++- > drivers/video/Makefile | 1 + > drivers/video/efifb.c | 222 +---------------------------- > drivers/video/linearfb.c | 332 +++++++++++++++++++++++++++++++++++++++++++ > include/linux/fb.h | 8 + > include/linux/screen_info.h | 2 + > 6 files changed, 364 insertions(+), 218 deletions(-) > create mode 100644 drivers/video/linearfb.c > > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index 59c51d9..a7735ec 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -721,13 +721,24 @@ config FB_VESA > You will get a boot time penguin logo at no additional cost. Please > read . If unsure, say Y. > > -config FB_EFI > - bool "EFI-based Framebuffer Support" > - depends on (FB = y) && X86 && EFI > +config FB_LINEAR > + bool "Simple linear framebuffer support" > + depends on FB > select FB_CFB_FILLRECT > select FB_CFB_COPYAREA > select FB_CFB_IMAGEBLIT > help > + This is a simple linear frame buffer device driver. It has no > + hardware-specific programming capability, but must be programmed > + by the boot loader or by another frame buffer driver. > + > + If unsure, say N. > + > +config FB_EFI > + bool "EFI-based Framebuffer Support" > + depends on (FB = y) && X86 && EFI > + select FB_LINEAR > + help > This is the EFI frame buffer device driver. If the firmware on > your platform is EFI 1.10 or UEFI 2.0, select Y to add support for > using the EFI framebuffer as your console. > diff --git a/drivers/video/Makefile b/drivers/video/Makefile > index ddc2af2..ad74d3b 100644 > --- a/drivers/video/Makefile > +++ b/drivers/video/Makefile > @@ -133,6 +133,7 @@ obj-$(CONFIG_FB_MSM) += msm/ > obj-$(CONFIG_FB_NUC900) += nuc900fb.o > > # Platform or fallback drivers go here > +obj-$(CONFIG_FB_LINEAR) += linearfb.o > obj-$(CONFIG_FB_UVESA) += uvesafb.o > obj-$(CONFIG_FB_VESA) += vesafb.o > obj-$(CONFIG_FB_EFI) += efifb.o > diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c > index 4a56f46..72e5873 100644 > --- a/drivers/video/efifb.c > +++ b/drivers/video/efifb.c > @@ -16,24 +16,6 @@ > > #include