fbcon: Console Rotation - Add support for 270-degree rotation
Subsystems (2)
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
Signed-off-by Antonino Daplas <[email protected]>
--- 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
@@ -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
@@ -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
@@ -101,4 +101,5 @@ static inline void rotate_ccw(const charextern 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