Skip to content

Commit

Permalink
vt(4) integration: Log FB_INFO based on struct linux_fb_info
Browse files Browse the repository at this point in the history
... instead of FreeBSD's `struct fb_info`.

[Why]
With the introduction of `vt_drmfb`, we try to use `struct
linux_fb_info` for every parameters and all callbacks. This is to make
sure we use the same values as Linux, just in case we forget to update
the corresponding FreeBSD's `struct fb_info`.
  • Loading branch information
dumbbell committed Apr 14, 2023
1 parent bdf9d69 commit 82ffa79
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions drivers/gpu/drm/linux_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,16 @@ vt_unfreeze_main_vd(void)
}

void
fb_info_print(struct fb_info *t)
fb_info_print(struct linux_fb_info *info)
{
printf("start FB_INFO:\n");
printf("type=%d height=%d width=%d depth=%d\n",
t->fb_type, t->fb_height, t->fb_width, t->fb_depth);
printf("height=%d width=%d depth=%d\n",
info->var.yres, info->var.xres, info->var.bits_per_pixel);
printf("pbase=0x%lx vbase=0x%lx\n",
t->fb_pbase, t->fb_vbase);
printf("name=%s flags=0x%x stride=%d bpp=%d\n",
t->fb_name, t->fb_flags, t->fb_stride, t->fb_bpp);
info->fix.smem_start, info->screen_base);
printf("name=%s id=%s flags=0x%x stride=%d\n",
info->fbio.fb_name, info->fix.id, info->fbio.fb_flags,
info->fix.line_length);
printf("end FB_INFO\n");
}

Expand Down Expand Up @@ -242,7 +243,7 @@ __register_framebuffer(struct linux_fb_info *fb_info)
}
return (-err);
}
fb_info_print(&fb_info->fbio);
fb_info_print(fb_info);
return 0;
}

Expand Down

0 comments on commit 82ffa79

Please sign in to comment.