Skip to contentSkip to conversation

fbcon: Console Rotation - Add support for 180-degree console rotation

PATCH In review Antonino A. Daplas 1 participant 1 message Nov 7, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 fbcon: Console Rotation - Add support for 180-degree console rotation

Add support for 180-degree (upside down) rotation of the console. To activate, boot with:

fbcon=rotate:2

---
 Makefile       |    2 
 fbcon_rotate.c |    3 
 fbcon_rotate.h |    1 
 fbcon_ud.c     |  454 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 459 insertions(+), 1 deletion(-)
drivers/video/console/Makefile +1 -1
index 984f8cd..830ff46 100644
@@ -32,7 +32,7 @@ ifeq ($(CONFIG_FB_TILEBLITTING),y)
 obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += tileblit.o
 endif
 ifeq ($(CONFIG_FRAMEBUFFER_CONSOLE_ROTATION),y)
-obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += fbcon_rotate.o fbcon_cw.o
+obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += fbcon_rotate.o fbcon_cw.o fbcon_ud.o
 endif
 
 obj-$(CONFIG_FB_STI)              += sticore.o font.o
drivers/video/console/fbcon_rotate.c +3 -0
index 9df009c..3d64ad1 100644
@@ -102,6 +102,9 @@ void fbcon_set_rotate(struct fbcon_ops *
 	case FB_ROTATE_CW:
 		fbcon_rotate_cw(ops);
 		break;
+	case FB_ROTATE_UD:
+		fbcon_rotate_ud(ops);
+		break;
 	}
 }
 EXPORT_SYMBOL(fbcon_set_rotate);
drivers/video/console/fbcon_rotate.h +1 -0
index 8e0320a..0966efc 100644
@@ -100,4 +100,5 @@ static inline void rotate_ccw(const char
 }
 
 extern void fbcon_rotate_cw(struct fbcon_ops *ops);
+extern void fbcon_rotate_ud(struct fbcon_ops *ops);
 #endif
drivers/video/console/fbcon_ud.c new file +454 -0

454 lines not on this page · raw message

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php