/* This call looks only at xoffset, yoffset and the FB_VMODE_YWRAP flag  */
static int g364fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
/* This call looks only at xoffset, yoffset and the FB_VMODE_YWRAP flag  */
static int g364fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
{
	if (var->xoffset || var->yoffset + var->yres > var->yres_virtual)
		return -EINVAL;
	*(unsigned int *) TOP_REG = var->yoffset * var->xres;
	return 0;
}