forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/video/fbdev/core/fbcon_cw.c
....@@ -50,7 +50,7 @@
5050 {
5151 struct fbcon_ops *ops = info->fbcon_par;
5252 struct fb_copyarea area;
53
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
53
+ u32 vxres = GETVXRES(ops->p, info);
5454
5555 area.sx = vxres - ((sy + height) * vc->vc_font.height);
5656 area.sy = sx * vc->vc_font.width;
....@@ -68,7 +68,7 @@
6868 struct fbcon_ops *ops = info->fbcon_par;
6969 struct fb_fillrect region;
7070 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12;
71
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
71
+ u32 vxres = GETVXRES(ops->p, info);
7272
7373 region.color = attr_bgcol_ec(bgshift,vc,info);
7474 region.dx = vxres - ((sy + height) * vc->vc_font.height);
....@@ -125,7 +125,7 @@
125125 u32 cnt, pitch, size;
126126 u32 attribute = get_attribute(info, scr_readw(s));
127127 u8 *dst, *buf = NULL;
128
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
128
+ u32 vxres = GETVXRES(ops->p, info);
129129
130130 if (!ops->fontbuffer)
131131 return;
....@@ -208,11 +208,11 @@
208208 struct fbcon_ops *ops = info->fbcon_par;
209209 unsigned short charmask = vc->vc_hi_font_mask ? 0x1ff : 0xff;
210210 int w = (vc->vc_font.height + 7) >> 3, c;
211
- int y = real_y(ops->p, vc->vc_y);
212
- int attribute, use_sw = (vc->vc_cursor_type & 0x10);
211
+ int y = real_y(ops->p, vc->state.y);
212
+ int attribute, use_sw = vc->vc_cursor_type & CUR_SW;
213213 int err = 1, dx, dy;
214214 char *src;
215
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
215
+ u32 vxres = GETVXRES(ops->p, info);
216216
217217 if (!ops->fontbuffer)
218218 return;
....@@ -258,7 +258,7 @@
258258 }
259259
260260 dx = vxres - ((y * vc->vc_font.height) + vc->vc_font.height);
261
- dy = vc->vc_x * vc->vc_font.width;
261
+ dy = vc->state.x * vc->vc_font.width;
262262
263263 if (ops->cursor_state.image.dx != dx ||
264264 ops->cursor_state.image.dy != dy ||
....@@ -299,7 +299,7 @@
299299 ops->p->cursor_shape = vc->vc_cursor_type;
300300 cursor.set |= FB_CUR_SETSHAPE;
301301
302
- switch (ops->p->cursor_shape & CUR_HWMASK) {
302
+ switch (CUR_SIZE(ops->p->cursor_shape)) {
303303 case CUR_NONE:
304304 cur_height = 0;
305305 break;
....@@ -369,7 +369,7 @@
369369 static int cw_update_start(struct fb_info *info)
370370 {
371371 struct fbcon_ops *ops = info->fbcon_par;
372
- u32 vxres = GETVXRES(ops->p->scrollmode, info);
372
+ u32 vxres = GETVXRES(ops->p, info);
373373 u32 xoffset;
374374 int err;
375375