From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antonino Daplas Subject: [patch 1] Console Rotation Date: 09 Sep 2002 22:21:31 +0800 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <1031580667.632.7.camel@daplas> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from [203.167.79.9] (helo=willow.compass.com.ph) by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 17oPPE-0002aA-00 for ; Mon, 09 Sep 2002 07:20:49 -0700 Received: from AP-202-70-99-9.compass.com.ph (AP-202-70-99-9.compass.com.ph [202.70.99.9]) by willow.compass.com.ph (8.9.3/8.9.3) with ESMTP id WAA90329 for ; Mon, 9 Sep 2002 22:20:39 +0800 (PHT) (envelope-from adaplas@pol.net) Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: fbdev The patch (fb_rotate.diff) adds console rotation support to the fb framework. Console rotation wrappers are lumped in fbcon-rotate.h and fbcon-rotate.c. p->fontdata is pre-rotated during fbcon_xx_setup(), thus changing fonts may corrupt the display until fbcon_setup() is called again. Tony <<----------------------------------------------------------------------->> diff -Naur linux-2.5.33/drivers/video/Config.in linux/drivers/video/Config.in --- linux-2.5.33/drivers/video/Config.in Sun Sep 8 19:38:45 2002 +++ linux/drivers/video/Config.in Sun Sep 8 19:45:59 2002 @@ -227,6 +227,7 @@ tristate ' 24 bpp packed pixels support' CONFIG_FBCON_CFB24 tristate ' 32 bpp packed pixels support' CONFIG_FBCON_CFB32 tristate ' Hardware acceleration support' CONFIG_FBCON_ACCEL + dep_tristate ' Console Display Rotation support' CONFIG_FBCON_ROTATE $CONFIG_FBCON_ACCEL tristate ' Amiga bitplanes support' CONFIG_FBCON_AFB tristate ' Amiga interleaved bitplanes support' CONFIG_FBCON_ILBM tristate ' Atari interleaved bitplanes (2 planes) support' CONFIG_FBCON_IPLAN2P2 diff -Naur linux-2.5.33/drivers/video/Makefile linux/drivers/video/Makefile --- linux-2.5.33/drivers/video/Makefile Sun Sep 8 19:38:45 2002 +++ linux/drivers/video/Makefile Sun Sep 8 19:45:59 2002 @@ -6,7 +6,7 @@ # This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'. export-objs := fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \ - fbcon-afb.o fbcon-ilbm.o fbcon-accel.o \ + fbcon-afb.o fbcon-ilbm.o fbcon-accel.o fbcon-rotate.o \ fbcon-vga.o fbcon-iplan2p2.o fbcon-iplan2p4.o \ fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ @@ -118,6 +118,7 @@ obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o obj-$(CONFIG_FBCON_STI) += fbcon-sti.o obj-$(CONFIG_FBCON_ACCEL) += fbcon-accel.o +obj-$(CONFIG_FBCON_ROTATE) += fbcon-rotate.o include $(TOPDIR)/Rules.make diff -Naur linux-2.5.33/drivers/video/fbcon-rotate.c linux/drivers/video/fbcon-rotate.c --- linux-2.5.33/drivers/video/fbcon-rotate.c Thu Jan 1 00:00:00 1970 +++ linux/drivers/video/fbcon-rotate.c Sun Sep 8 19:46:35 2002 @@ -0,0 +1,611 @@ +/* + * linux/drivers/video/fbcon-accel.c -- Framebuffer Display Rotation + * + * Created 20 Feb 2001 by James Simmons + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file COPYING in the main directory of this archive for + * more details. + */ + +#include +#include +#include +#include +#include + +#include