Skip to contentSkip to conversation

fbcon: Console Rotation - Add support for 270-degree rotation

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

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

PATCH 6/8 fbcon: Console Rotation - Add support for 270-degree rotation

Add support for 270-degree (counterclockwise) rotation of the console. To activate, boot with:

fbcon=rotate:3

---
 Makefile       |    3 
 fbcon_ccw.c    |  428 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fbcon_rotate.c |    3 
 fbcon_rotate.h |    1 
 4 files changed, 434 insertions(+), 1 deletion(-)
drivers/video/console/Makefile +2 -1
index 830ff46..fed600c 100644
@@ -32,7 +32,8 @@ 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 fbcon_ud.o
+obj-$(CONFIG_FRAMEBUFFER_CONSOLE)     += fbcon_rotate.o fbcon_cw.o fbcon_ud.o \
+                                         fbcon_ccw.o
 endif
 
 obj-$(CONFIG_FB_STI)              += sticore.o font.o
drivers/video/console/fbcon_ccw.c new file +428 -0

428 lines not on this page · raw message

drivers/video/console/fbcon_rotate.c +3 -0
index 3d64ad1..ec0dd8f 100644
@@ -105,6 +105,9 @@ void fbcon_set_rotate(struct fbcon_ops *
 	case FB_ROTATE_UD:
 		fbcon_rotate_ud(ops);
 		break;
+	case FB_ROTATE_CCW:
+		fbcon_rotate_ccw(ops);
+		break;
 	}
 }
 EXPORT_SYMBOL(fbcon_set_rotate);
drivers/video/console/fbcon_rotate.h +1 -0
index 0966efc..89021d8 100644
@@ -101,4 +101,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);
+extern void fbcon_rotate_ccw(struct fbcon_ops *ops);
 #endif

-------------------------------------------------------
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