Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13469
b: refs/heads/master
c: e4fc276
h: refs/heads/master
i:
  13467: ea5767a
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Nov 9, 2005
1 parent 5cea445 commit 03b52d4
Show file tree
Hide file tree
Showing 7 changed files with 287 additions and 139 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: 1dfcdfae5783fc10d7f8fcc336de838a44e7636c
refs/heads/master: e4fc27618b75234b721c4a13d0e0d9d07e75e641
10 changes: 10 additions & 0 deletions trunk/drivers/video/console/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ config FRAMEBUFFER_CONSOLE
help
Low-level framebuffer-based console driver.

config FRAMEBUFFER_CONSOLE_ROTATION
bool "Framebuffer Console Rotation"
depends on FRAMEBUFFER_CONSOLE
help
Enable display rotation for the framebuffer console. This is done
in software and may be significantly slower than a normally oriented
display. Note that the rotation is done at the console level only
such that other users of the framebuffer will remain normally
oriented.

config STI_CONSOLE
tristate "STI text console"
depends on PARISC
Expand Down
46 changes: 17 additions & 29 deletions trunk/drivers/video/console/bitblit.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,6 @@
/*
* Accelerated handlers.
*/
#define FBCON_ATTRIBUTE_UNDERLINE 1
#define FBCON_ATTRIBUTE_REVERSE 2
#define FBCON_ATTRIBUTE_BOLD 4

static inline int real_y(struct display *p, int ypos)
{
int rows = p->vrows;

ypos += p->yscroll;
return ypos < rows ? ypos : ypos - rows;
}


static inline int get_attribute(struct fb_info *info, u16 c)
{
int attribute = 0;

if (fb_get_color_depth(&info->var, &info->fix) == 1) {
if (attr_underline(c))
attribute |= FBCON_ATTRIBUTE_UNDERLINE;
if (attr_reverse(c))
attribute |= FBCON_ATTRIBUTE_REVERSE;
if (attr_bold(c))
attribute |= FBCON_ATTRIBUTE_BOLD;
}

return attribute;
}

static inline void update_attr(u8 *dst, u8 *src, int attribute,
struct vc_data *vc)
{
Expand Down Expand Up @@ -418,13 +389,30 @@ static void bit_cursor(struct vc_data *vc, struct fb_info *info,
ops->cursor_reset = 0;
}

static int bit_update_start(struct fb_info *info)
{
struct fbcon_ops *ops = info->fbcon_par;
int err;

err = fb_pan_display(info, &ops->var);
ops->var.xoffset = info->var.xoffset;
ops->var.yoffset = info->var.yoffset;
ops->var.vmode = info->var.vmode;
return err;
}

void fbcon_set_bitops(struct fbcon_ops *ops)
{
ops->bmove = bit_bmove;
ops->clear = bit_clear;
ops->putcs = bit_putcs;
ops->clear_margins = bit_clear_margins;
ops->cursor = bit_cursor;
ops->update_start = bit_update_start;
ops->rotate_font = NULL;

if (ops->rotate)
fbcon_set_rotate(ops);
}

EXPORT_SYMBOL(fbcon_set_bitops);
Expand Down
Loading

0 comments on commit 03b52d4

Please sign in to comment.