From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756996AbXFWLA5 (ORCPT ); Sat, 23 Jun 2007 07:00:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756028AbXFWK7f (ORCPT ); Sat, 23 Jun 2007 06:59:35 -0400 Received: from ipn26-148.piekary.net ([83.238.26.148]:59931 "EHLO ipn26-148.piekary.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753795AbXFWK73 (ORCPT ); Sat, 23 Jun 2007 06:59:29 -0400 Date: Sat, 23 Jun 2007 12:52:43 +0200 From: Michal Januszewski To: linux-fbdev-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/4] fbdev: uvesafb driver Message-ID: <20070623105243.GD12623@spock.one.pl> Reply-To: spock@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Disposition: inline X-PGP-Key: http://dev.gentoo.org/~spock/spock.gpg User-Agent: Mutt/1.5.15 (2007-04-06) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Add the uvesafb driver, an enhanced version of vesafb that makes use of a userspace helper to run x86 Video BIOS code. Signed-off-by: Michal Januszewski --- drivers/video/Kconfig | 18 + drivers/video/Makefile | 1 + drivers/video/uvesafb.c | 1902 +++++++++++++++++++++++++++++++++++++++++++++++ include/video/Kbuild | 2 +- include/video/uvesafb.h | 208 ++++++ 5 files changed, 2130 insertions(+), 1 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 403dac7..5cc03f9 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -585,6 +585,24 @@ config FB_TGA Say Y if you have one of those. +config FB_UVESA + tristate "Userspace VESA VGA graphics support" + depends on FB && CONNECTOR + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select FB_CFB_IMAGEBLIT + select FB_MODE_HELPERS + help + This is the frame buffer driver for generic VBE 2.0 compliant + graphic cards. It can also take advantage of VBE 3.0 features, + such as refresh rate adjustment. + + This driver generally provides more features than vesafb but + requires a userspace helper application called 'v86d'. See + for more information. + + If unsure, say N. + config FB_VESA bool "VESA VGA graphics support" depends on (FB = y) && X86 diff --git a/drivers/video/Makefile b/drivers/video/Makefile index bd8b052..b7da8c0 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -115,6 +115,7 @@ obj-$(CONFIG_FB_SM501) += sm501fb.o obj-$(CONFIG_FB_XILINX) += xilinxfb.o # Platform or fallback drivers go here +obj-$(CONFIG_FB_UVESA) += uvesafb.o obj-$(CONFIG_FB_VESA) += vesafb.o obj-$(CONFIG_FB_IMAC) += imacfb.o obj-$(CONFIG_FB_VGA16) += vga16fb.o diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c new file mode 100644 index 0000000..020597f --- /dev/null +++ b/drivers/video/uvesafb.c @@ -0,0 +1,1902 @@ +/* + * A framebuffer driver for VBE 2.0+ compliant video cards + * + * (c) 2007 Michal Januszewski + * Loosely based upon the vesafb driver. + * + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include