void fbcon_afb_setup(struct display *p)
{
- if (p->line_length)
- p->next_line = p->line_length;
+ if (p->fb_info->fix.line_length)
+ p->next_line = p->fb_info->fix.line_length;
else
p->next_line = p->var.xres_virtual>>3;
p->next_plane = p->var.yres_virtual*p->next_line;
void fbcon_cfb2_setup(struct display *p)
{
- p->next_line = p->line_length ? p->line_length : p->var.xres_virtual>>2;
+ p->next_line = p->fb_info->fix.line_length ? p->fb_info->fix.line_length : p->var.xres_virtual>>2;
p->next_plane = 0;
}
{
DPRINTK("fbcon_hga_setup: ll:%d\n", (int)p->line_length);
- p->next_line = p->line_length;
+ p->next_line = p->fb_info->fix.line_length;
p->next_plane = 0;
}
void fbcon_ilbm_setup(struct display *p)
{
- if (p->line_length) {
- p->next_line = p->line_length*p->var.bits_per_pixel;
- p->next_plane = p->line_length;
+ if (p->fb_info->fix.line_length) {
+ p->next_line = p->fb_info->fix.line_length*p->var.bits_per_pixel;
+ p->next_plane = p->fb_info->fix.line_length;
} else {
- p->next_line = p->type_aux;
- p->next_plane = p->type_aux/p->var.bits_per_pixel;
+ p->next_line = p->fb_info->fix.type_aux;
+ p->next_plane = p->fb_info->fix.type_aux/p->var.bits_per_pixel;
}
}
void fbcon_mfb_setup(struct display *p)
{
- if (p->line_length)
- p->next_line = p->line_length;
+ if (p->fb_info->fix.line_length)
+ p->next_line = p->fb_info->fix.line_length;
else
p->next_line = p->var.xres_virtual>>3;
p->next_plane = 0;
#if defined(CONFIG_FBCON_IPLAN2P2) || defined(CONFIG_FBCON_IPLAN2P4) || \
defined(CONFIG_FBCON_IPLAN2P8)
- int line_length = p->line_length;
+ int line_length = info->fix.line_length;
/* for support of Atari interleaved planes */
#define MAP_X(x) (line_length ? (x) : ((x) & ~1)*depth + ((x) & 1))
#if defined(CONFIG_FBCON_MFB) || defined(CONFIG_FBCON_AFB) || \
defined(CONFIG_FBCON_ILBM) || defined(CONFIG_FBCON_HGA)
- if (depth == 1 && (p->fix.type == FB_TYPE_PACKED_PIXELS ||
- p->fix.type == FB_TYPE_PLANES ||
- p->fix.type == FB_TYPE_INTERLEAVED_PLANES)) {
+ if (depth == 1 && (info->fix.type == FB_TYPE_PACKED_PIXELS ||
+ info->fix.type == FB_TYPE_PLANES ||
+ info->fix.type == FB_TYPE_INTERLEAVED_PLANES)) {
/* monochrome */
- unsigned char inverse = p->inverse || p->visual == FB_VISUAL_MONO01
+ unsigned char inverse = p->inverse || info->fix.visual == FB_VISUAL_MONO01
? 0x00 : 0xff;
int is_hga = !strncmp(p->fb_info->modename, "HGA", 3);