···1818 */19192020#if defined(__arm__)2121-#define DUMMY_COLUMNS ORIG_VIDEO_COLS2222-#define DUMMY_ROWS ORIG_VIDEO_LINES2121+#define DUMMY_COLUMNS screen_info.orig_video_cols2222+#define DUMMY_ROWS screen_info.orig_video_lines2323#elif defined(__hppa__)2424/* set by Kconfig. Use 80x25 for 640x480 and 160x64 for 1280x1024 */2525#define DUMMY_COLUMNS CONFIG_DUMMY_CONSOLE_COLUMNS
+25-24
drivers/video/console/vgacon.c
···362362 u16 saved1, saved2;363363 volatile u16 *p;364364365365- if (ORIG_VIDEO_ISVGA == VIDEO_TYPE_VLFB) {365365+ if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB) {366366 no_vga:367367#ifdef CONFIG_DUMMY_CONSOLE368368 conswitchp = &dummy_con;···373373 }374374375375 /* boot_params.screen_info initialized? */376376- if ((ORIG_VIDEO_MODE == 0) &&377377- (ORIG_VIDEO_LINES == 0) &&378378- (ORIG_VIDEO_COLS == 0))376376+ if ((screen_info.orig_video_mode == 0) &&377377+ (screen_info.orig_video_lines == 0) &&378378+ (screen_info.orig_video_cols == 0))379379 goto no_vga;380380381381 /* VGA16 modes are not handled by VGACON */382382- if ((ORIG_VIDEO_MODE == 0x0D) || /* 320x200/4 */383383- (ORIG_VIDEO_MODE == 0x0E) || /* 640x200/4 */384384- (ORIG_VIDEO_MODE == 0x10) || /* 640x350/4 */385385- (ORIG_VIDEO_MODE == 0x12) || /* 640x480/4 */386386- (ORIG_VIDEO_MODE == 0x6A)) /* 800x600/4, 0x6A is very common */382382+ if ((screen_info.orig_video_mode == 0x0D) || /* 320x200/4 */383383+ (screen_info.orig_video_mode == 0x0E) || /* 640x200/4 */384384+ (screen_info.orig_video_mode == 0x10) || /* 640x350/4 */385385+ (screen_info.orig_video_mode == 0x12) || /* 640x480/4 */386386+ (screen_info.orig_video_mode == 0x6A)) /* 800x600/4 (VESA) */387387 goto no_vga;388388389389- vga_video_num_lines = ORIG_VIDEO_LINES;390390- vga_video_num_columns = ORIG_VIDEO_COLS;389389+ vga_video_num_lines = screen_info.orig_video_lines;390390+ vga_video_num_columns = screen_info.orig_video_cols;391391 state.vgabase = NULL;392392393393- if (ORIG_VIDEO_MODE == 7) { /* Is this a monochrome display? */393393+ if (screen_info.orig_video_mode == 7) {394394+ /* Monochrome display */394395 vga_vram_base = 0xb0000;395396 vga_video_port_reg = VGA_CRT_IM;396397 vga_video_port_val = VGA_CRT_DM;397397- if ((ORIG_VIDEO_EGA_BX & 0xff) != 0x10) {398398+ if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {398399 static struct resource ega_console_resource =399400 { .name = "ega", .start = 0x3B0, .end = 0x3BF };400401 vga_video_type = VIDEO_TYPE_EGAM;···423422 vga_vram_base = 0xb8000;424423 vga_video_port_reg = VGA_CRT_IC;425424 vga_video_port_val = VGA_CRT_DC;426426- if ((ORIG_VIDEO_EGA_BX & 0xff) != 0x10) {425425+ if ((screen_info.orig_video_ega_bx & 0xff) != 0x10) {427426 int i;428427429428 vga_vram_size = 0x8000;430429431431- if (!ORIG_VIDEO_ISVGA) {430430+ if (!screen_info.orig_video_isVGA) {432431 static struct resource ega_console_resource433432 = { .name = "ega", .start = 0x3C0, .end = 0x3DF };434433 vga_video_type = VIDEO_TYPE_EGAC;···522521 || vga_video_type == VIDEO_TYPE_VGAC523522 || vga_video_type == VIDEO_TYPE_EGAM) {524523 vga_hardscroll_enabled = vga_hardscroll_user_enable;525525- vga_default_font_height = ORIG_VIDEO_POINTS;526526- vga_video_font_height = ORIG_VIDEO_POINTS;524524+ vga_default_font_height = screen_info.orig_video_points;525525+ vga_video_font_height = screen_info.orig_video_points;527526 /* This may be suboptimal but is a safe bet - go with it */528527 vga_scan_lines =529528 vga_video_font_height * vga_video_num_lines;530529 }531530532532- vgacon_xres = ORIG_VIDEO_COLS * VGA_FONTWIDTH;531531+ vgacon_xres = screen_info.orig_video_cols * VGA_FONTWIDTH;533532 vgacon_yres = vga_scan_lines;534533535534 if (!vga_init_done) {···799798{800799 int x = c->vc_cols * VGA_FONTWIDTH;801800 int y = c->vc_rows * c->vc_font.height;802802- int rows = ORIG_VIDEO_LINES * vga_default_font_height/801801+ int rows = screen_info.orig_video_lines * vga_default_font_height/803802 c->vc_font.height;804803 /*805804 * We need to save screen size here as it's the only way···819818820819 if ((vgacon_xres != x || vgacon_yres != y) &&821820 (!(vga_video_num_columns % 2) &&822822- vga_video_num_columns <= ORIG_VIDEO_COLS &&821821+ vga_video_num_columns <= screen_info.orig_video_cols &&823822 vga_video_num_lines <= rows))824823 vgacon_doresize(c, c->vc_cols, c->vc_rows);825824 }···12811280static int vgacon_resize(struct vc_data *c, unsigned int width,12821281 unsigned int height, unsigned int user)12831282{12841284- if (width % 2 || width > ORIG_VIDEO_COLS ||12851285- height > (ORIG_VIDEO_LINES * vga_default_font_height)/12831283+ if (width % 2 || width > screen_info.orig_video_cols ||12841284+ height > (screen_info.orig_video_lines * vga_default_font_height)/12861285 c->vc_font.height)12871286 /* let svgatextmode tinker with video timings and12881287 return success */···13141313 * console initialization routines.13151314 */13161315 vga_bootup_console = 1;13171317- c->vc_x = ORIG_X;13181318- c->vc_y = ORIG_Y;13161316+ c->vc_x = screen_info.orig_x;13171317+ c->vc_y = screen_info.orig_y;13191318 }1320131913211320 /* We can't copy in more then the size of the video buffer,
+3-2
drivers/video/intelfb/intelfbdrv.c
···804804 if (bailearly == 1)805805 bailout(dinfo);806806807807- if (FIXED_MODE(dinfo) && ORIG_VIDEO_ISVGA != VIDEO_TYPE_VLFB) {807807+ if (FIXED_MODE(dinfo) &&808808+ screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB) {808809 ERR_MSG("Video mode must be programmed at boot time.\n");809810 cleanup(dinfo);810811 return -ENODEV;···816815817816 /* Initialise dinfo and related data. */818817 /* If an initial mode was programmed at boot time, get its details. */819819- if (ORIG_VIDEO_ISVGA == VIDEO_TYPE_VLFB)818818+ if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB)820819 get_initial_mode(dinfo);821820822821 if (bailearly == 3)