Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13472
b: refs/heads/master
c: dbcbfe1
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Nov 9, 2005
1 parent 0b31cc2 commit 5a6e9ce
Show file tree
Hide file tree
Showing 6 changed files with 434 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cc50e1c5b57180fd37a31282000f43859b0fe73
refs/heads/master: dbcbfe1ea41e404d960a06fa2faf7da568909f33
2 changes: 1 addition & 1 deletion trunk/drivers/video/console/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
obj-$(CONFIG_FRAMEBUFFER_CONSOLE) += fbcon_rotate.o fbcon_cw.o
endif

obj-$(CONFIG_FB_STI) += sticore.o font.o
Expand Down
13 changes: 13 additions & 0 deletions trunk/drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,25 @@ static irqreturn_t fb_vbl_detect(int irq, void *dummy, struct pt_regs *fp)
}
#endif

#ifdef CONFIG_FRAMEBUFFER_CONSOLE_ROTATION
static inline void fbcon_set_rotation(struct fb_info *info, struct display *p)
{
struct fbcon_ops *ops = info->fbcon_par;

if (!(info->flags & FBINFO_MISC_TILEBLITTING) &&
p->con_rotate < 4)
ops->rotate = p->con_rotate;
else
ops->rotate = 0;
}
#else
static inline void fbcon_set_rotation(struct fb_info *info, struct display *p)
{
struct fbcon_ops *ops = info->fbcon_par;

ops->rotate = FB_ROTATE_UR;
}
#endif /* CONFIG_FRAMEBUFFER_CONSOLE_ROTATION */

static inline int fbcon_is_inactive(struct vc_data *vc, struct fb_info *info)
{
Expand Down
Loading

0 comments on commit 5a6e9ce

Please sign in to comment.