forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/video/fbdev/core/fbcon_ccw.c
....@@ -65,7 +65,7 @@
6565 {
6666 struct fbcon_ops *ops = info->fbcon_par;
6767 struct fb_copyarea area;
68
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
68
+ u32 vyres = GETVYRES(ops->p, info);
6969
7070 area.sx = sy * vc->vc_font.height;
7171 area.sy = vyres - ((sx + width) * vc->vc_font.width);
....@@ -83,7 +83,7 @@
8383 struct fbcon_ops *ops = info->fbcon_par;
8484 struct fb_fillrect region;
8585 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12;
86
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
86
+ u32 vyres = GETVYRES(ops->p, info);
8787
8888 region.color = attr_bgcol_ec(bgshift,vc,info);
8989 region.dx = sy * vc->vc_font.height;
....@@ -140,7 +140,7 @@
140140 u32 cnt, pitch, size;
141141 u32 attribute = get_attribute(info, scr_readw(s));
142142 u8 *dst, *buf = NULL;
143
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
143
+ u32 vyres = GETVYRES(ops->p, info);
144144
145145 if (!ops->fontbuffer)
146146 return;
....@@ -225,11 +225,11 @@
225225 struct fbcon_ops *ops = info->fbcon_par;
226226 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff;
227227 int w = (vc->vc_font.height + 7) >> 3, c;
228
- int y = real_y(ops->p, vc->vc_y);
229
- int attribute, use_sw = (vc->vc_cursor_type & 0x10);
228
+ int y = real_y(ops->p, vc->state.y);
229
+ int attribute, use_sw = vc->vc_cursor_type & CUR_SW;
230230 int err = 1, dx, dy;
231231 char *src;
232
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
232
+ u32 vyres = GETVYRES(ops->p, info);
233233
234234 if (!ops->fontbuffer)
235235 return;
....@@ -275,7 +275,7 @@
275275 }
276276
277277 dx = y * vc->vc_font.height;
278
- dy = vyres - ((vc->vc_x + 1) * vc->vc_font.width);
278
+ dy = vyres - ((vc->state.x + 1) * vc->vc_font.width);
279279
280280 if (ops->cursor_state.image.dx != dx ||
281281 ops->cursor_state.image.dy != dy ||
....@@ -316,7 +316,7 @@
316316 ops->p->cursor_shape = vc->vc_cursor_type;
317317 cursor.set |= FB_CUR_SETSHAPE;
318318
319
- switch (ops->p->cursor_shape & CUR_HWMASK) {
319
+ switch (CUR_SIZE(ops->p->cursor_shape)) {
320320 case CUR_NONE:
321321 cur_height = 0;
322322 break;
....@@ -387,7 +387,7 @@
387387 {
388388 struct fbcon_ops *ops = info->fbcon_par;
389389 u32 yoffset;
390
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
390
+ u32 vyres = GETVYRES(ops->p, info);
391391 int err;
392392
393393 yoffset = (vyres - info->var.yres) - ops->var.xoffset;