forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/drivers/video/fbdev/core/fbcon_ud.c
....@@ -50,8 +50,8 @@
5050 {
5151 struct fbcon_ops *ops = info->fbcon_par;
5252 struct fb_copyarea area;
53
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
54
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
53
+ u32 vyres = GETVYRES(ops->p, info);
54
+ u32 vxres = GETVXRES(ops->p, info);
5555
5656 area.sy = vyres - ((sy + height) * vc->vc_font.height);
5757 area.sx = vxres - ((sx + width) * vc->vc_font.width);
....@@ -69,8 +69,8 @@
6969 struct fbcon_ops *ops = info->fbcon_par;
7070 struct fb_fillrect region;
7171 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12;
72
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
73
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
72
+ u32 vyres = GETVYRES(ops->p, info);
73
+ u32 vxres = GETVXRES(ops->p, info);
7474
7575 region.color = attr_bgcol_ec(bgshift,vc,info);
7676 region.dy = vyres - ((sy + height) * vc->vc_font.height);
....@@ -162,8 +162,8 @@
162162 u32 mod = vc->vc_font.width % 8, cnt, pitch, size;
163163 u32 attribute = get_attribute(info, scr_readw(s));
164164 u8 *dst, *buf = NULL;
165
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
166
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
165
+ u32 vyres = GETVYRES(ops->p, info);
166
+ u32 vxres = GETVXRES(ops->p, info);
167167
168168 if (!ops->fontbuffer)
169169 return;
....@@ -255,12 +255,12 @@
255255 struct fbcon_ops *ops = info->fbcon_par;
256256 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff;
257257 int w = (vc->vc_font.width + 7) >> 3, c;
258
- int y = real_y(ops->p, vc->vc_y);
259
- int attribute, use_sw = (vc->vc_cursor_type & 0x10);
258
+ int y = real_y(ops->p, vc->state.y);
259
+ int attribute, use_sw = vc->vc_cursor_type & CUR_SW;
260260 int err = 1, dx, dy;
261261 char *src;
262
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
263
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
262
+ u32 vyres = GETVYRES(ops->p, info);
263
+ u32 vxres = GETVXRES(ops->p, info);
264264
265265 if (!ops->fontbuffer)
266266 return;
....@@ -306,7 +306,7 @@
306306 }
307307
308308 dy = vyres - ((y * vc->vc_font.height) + vc->vc_font.height);
309
- dx = vxres - ((vc->vc_x * vc->vc_font.width) + vc->vc_font.width);
309
+ dx = vxres - ((vc->state.x * vc->vc_font.width) + vc->vc_font.width);
310310
311311 if (ops->cursor_state.image.dx != dx ||
312312 ops->cursor_state.image.dy != dy ||
....@@ -339,7 +339,7 @@
339339 ops->p->cursor_shape = vc->vc_cursor_type;
340340 cursor.set |= FB_CUR_SETSHAPE;
341341
342
- switch (ops->p->cursor_shape & CUR_HWMASK) {
342
+ switch (CUR_SIZE(ops->p->cursor_shape)) {
343343 case CUR_NONE:
344344 cur_height = 0;
345345 break;
....@@ -410,8 +410,8 @@
410410 {
411411 struct fbcon_ops *ops = info->fbcon_par;
412412 int xoffset, yoffset;
413
- u32 vyres = GETVYRES(ops->p->scrollmode, info);
414
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
413
+ u32 vyres = GETVYRES(ops->p, info);
414
+ u32 vxres = GETVXRES(ops->p, info);
415415 int err;
416416
417417 xoffset = vxres - info->var.xres - ops->var.xoffset;