/openbmc/linux/arch/x86/xen/ |
H A D | vga.c | 13 struct screen_info *screen_info) in xen_init_vga() argument 17 screen_info->orig_video_mode = 3; in xen_init_vga() 18 screen_info->orig_video_isVGA = 1; in xen_init_vga() 19 screen_info->orig_video_lines = 25; in xen_init_vga() 20 screen_info->orig_video_cols = 80; in xen_init_vga() 21 screen_info->orig_video_ega_bx = 3; in xen_init_vga() 22 screen_info->orig_video_points = 16; in xen_init_vga() 23 screen_info->orig_y = screen_info->orig_video_lines - 1; in xen_init_vga() 30 screen_info->orig_video_lines = info->u.text_mode_3.rows; in xen_init_vga() 31 screen_info->orig_video_cols = info->u.text_mode_3.columns; in xen_init_vga() [all …]
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | sysfb_efi.c | 70 void efifb_setup_from_dmi(struct screen_info *si, const char *opt) in efifb_setup_from_dmi() 103 if (screen_info.lfb_base == 0) { in efifb_set_system() 109 screen_info.lfb_base = choose_value(info->base, in efifb_set_system() 110 screen_info.lfb_base, OVERRIDE_BASE, in efifb_set_system() 137 if (screen_info.lfb_base >= start && in efifb_set_system() 138 screen_info.lfb_base < end) { in efifb_set_system() 145 screen_info.lfb_base = 0; in efifb_set_system() 149 if (screen_info.lfb_base) { in efifb_set_system() 150 screen_info.lfb_linelength = choose_value(info->stride, in efifb_set_system() 151 screen_info.lfb_linelength, OVERRIDE_STRIDE, in efifb_set_system() [all …]
|
H A D | earlycon.c | 39 efi_fb = memremap(fb_base, screen_info.lfb_size, in efi_earlycon_remap_fb() 79 len = screen_info.lfb_linelength; in efi_earlycon_clear_scanline() 102 len = screen_info.lfb_linelength; in efi_earlycon_scroll_up() 103 height = screen_info.lfb_height; in efi_earlycon_scroll_up() 148 struct screen_info *si; in efi_earlycon_write() 154 si = &screen_info; in efi_earlycon_write() 229 struct screen_info *si; in efi_earlycon_setup() 235 if (screen_info.orig_video_isVGA != VIDEO_TYPE_EFI) { in efi_earlycon_setup() 240 fb_base = screen_info.lfb_base; in efi_earlycon_setup() 241 if (screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) in efi_earlycon_setup() [all …]
|
H A D | efi-init.c | 60 struct screen_info *si; in init_screen_info() 68 screen_info = *si; in init_screen_info() 72 if (memblock_is_map_memory(screen_info.lfb_base)) in init_screen_info() 73 memblock_mark_nomap(screen_info.lfb_base, in init_screen_info() 74 screen_info.lfb_size); in init_screen_info()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | efifb.c | 111 static void efifb_copy_bmp(u8 *src, u32 *dst, int width, struct screen_info *si) in efifb_copy_bmp() 133 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check() 144 static bool efifb_bgrt_sanity_check(struct screen_info *si, u32 bmp_width) in efifb_bgrt_sanity_check() 153 struct screen_info *si = &screen_info; in efifb_show_boot_graphics() 293 efifb_setup_from_dmi(&screen_info, this_opt); in efifb_setup() 296 screen_info.lfb_base = simple_strtoul(this_opt+5, NULL, 0); in efifb_setup() 298 screen_info.lfb_linelength = simple_strtoul(this_opt+7, NULL, 0) * 4; in efifb_setup() 300 screen_info.lfb_height = simple_strtoul(this_opt+7, NULL, 0); in efifb_setup() 302 screen_info.lfb_width = simple_strtoul(this_opt+6, NULL, 0); in efifb_setup() 315 if (screen_info.lfb_base) in fb_base_is_valid() [all …]
|
/openbmc/linux/arch/x86/boot/ |
H A D | video-vesa.c | 177 boot_params.screen_info.red_size = dac_size; in vesa_dac_set_8bits() 178 boot_params.screen_info.green_size = dac_size; in vesa_dac_set_8bits() 179 boot_params.screen_info.blue_size = dac_size; in vesa_dac_set_8bits() 180 boot_params.screen_info.rsvd_size = dac_size; in vesa_dac_set_8bits() 182 boot_params.screen_info.red_pos = 0; in vesa_dac_set_8bits() 183 boot_params.screen_info.green_pos = 0; in vesa_dac_set_8bits() 184 boot_params.screen_info.blue_pos = 0; in vesa_dac_set_8bits() 185 boot_params.screen_info.rsvd_pos = 0; in vesa_dac_set_8bits() 200 boot_params.screen_info.vesapm_seg = oreg.es; in vesa_store_pm_info() 201 boot_params.screen_info.vesapm_off = oreg.di; in vesa_store_pm_info() [all …]
|
H A D | video.c | 30 boot_params.screen_info.orig_x = oreg.dl; in store_cursor_position() 31 boot_params.screen_info.orig_y = oreg.dh; in store_cursor_position() 34 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position() 37 boot_params.screen_info.flags |= VIDEO_FLAGS_NOCURSOR; in store_cursor_position() 51 boot_params.screen_info.orig_video_mode = oreg.al & 0x7f; in store_video_mode() 52 boot_params.screen_info.orig_video_page = oreg.bh; in store_video_mode() 74 if (boot_params.screen_info.orig_video_mode == 0x07) { in store_mode_params() 84 boot_params.screen_info.orig_video_points = font_size; in store_mode_params() 94 boot_params.screen_info.orig_video_cols = x; in store_mode_params() 95 boot_params.screen_info.orig_video_lines = y; in store_mode_params() [all …]
|
H A D | video-bios.c | 50 if (new_mode != boot_params.screen_info.orig_video_mode) { in set_bios_mode() 54 ireg.ax = boot_params.screen_info.orig_video_mode; in set_bios_mode() 67 u8 saved_mode = boot_params.screen_info.orig_video_mode; in bios_probe()
|
/openbmc/u-boot/include/linux/ |
H A D | screen_info.h | 10 struct screen_info { struct 72 extern struct screen_info screen_info; 74 #define ORIG_X (screen_info.orig_x) 75 #define ORIG_Y (screen_info.orig_y) 76 #define ORIG_VIDEO_MODE (screen_info.orig_video_mode) 77 #define ORIG_VIDEO_COLS (screen_info.orig_video_cols) 78 #define ORIG_VIDEO_EGA_BX (screen_info.orig_video_ega_bx) 79 #define ORIG_VIDEO_LINES (screen_info.orig_video_lines) 80 #define ORIG_VIDEO_ISVGA (screen_info.orig_video_isVGA) 81 #define ORIG_VIDEO_POINTS (screen_info.orig_video_points)
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_rom.c | 204 void setup_video(struct screen_info *screen_info) in setup_video() argument 212 screen_info->orig_video_isVGA = VIDEO_TYPE_VLFB; in setup_video() 214 screen_info->lfb_width = vesa->x_resolution; in setup_video() 215 screen_info->lfb_height = vesa->y_resolution; in setup_video() 216 screen_info->lfb_depth = vesa->bits_per_pixel; in setup_video() 217 screen_info->lfb_linelength = vesa->bytes_per_scanline; in setup_video() 218 screen_info->lfb_base = vesa->phys_base_ptr; in setup_video() 219 screen_info->lfb_size = in setup_video() 220 ALIGN(screen_info->lfb_linelength * screen_info->lfb_height, in setup_video() 222 screen_info->lfb_size >>= 16; in setup_video() [all …]
|
/openbmc/linux/include/linux/ |
H A D | screen_info.h | 22 static inline u64 __screen_info_lfb_base(const struct screen_info *si) in __screen_info_lfb_base() 32 static inline void __screen_info_set_lfb_base(struct screen_info *si, u64 lfb_base) in __screen_info_set_lfb_base() 43 static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned int type) in __screen_info_lfb_size() 52 static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si) in __screen_info_vbe_mode_nonvga() 92 static inline unsigned int screen_info_video_type(const struct screen_info *si) in screen_info_video_type() 129 ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num); 133 struct pci_dev *screen_info_pci_dev(const struct screen_info *si); 137 static inline struct pci_dev *screen_info_pci_dev(const struct screen_info *si) in screen_info_pci_dev() 143 extern struct screen_info screen_info;
|
H A D | sysfb.h | 13 struct screen_info; 91 bool sysfb_parse_mode(const struct screen_info *si, 93 struct platform_device *sysfb_create_simplefb(const struct screen_info *si, 98 static inline bool sysfb_parse_mode(const struct screen_info *si, in sysfb_parse_mode() 104 static inline struct platform_device *sysfb_create_simplefb(const struct screen_info *si, in sysfb_create_simplefb()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | atags_parse.c | 75 screen_info.orig_x = tag->u.videotext.x; in parse_tag_videotext() 76 screen_info.orig_y = tag->u.videotext.y; in parse_tag_videotext() 77 screen_info.orig_video_page = tag->u.videotext.video_page; in parse_tag_videotext() 78 screen_info.orig_video_mode = tag->u.videotext.video_mode; in parse_tag_videotext() 79 screen_info.orig_video_cols = tag->u.videotext.video_cols; in parse_tag_videotext() 80 screen_info.orig_video_ega_bx = tag->u.videotext.video_ega_bx; in parse_tag_videotext() 81 screen_info.orig_video_lines = tag->u.videotext.video_lines; in parse_tag_videotext() 82 screen_info.orig_video_isVGA = tag->u.videotext.video_isvga; in parse_tag_videotext() 83 screen_info.orig_video_points = tag->u.videotext.video_points; in parse_tag_videotext()
|
H A D | efi.c | 126 if (screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { in arm_efi_init() 128 screen_info.orig_video_cols = 80; in arm_efi_init() 129 screen_info.orig_video_lines = 25; in arm_efi_init()
|
/openbmc/linux/drivers/video/ |
H A D | screen_info_pci.c | 13 static bool __screen_info_relocation_is_valid(const struct screen_info *si, struct resource *pr) in __screen_info_relocation_is_valid() 29 struct screen_info *si = &screen_info; in screen_info_apply_fixups() 56 const struct screen_info *si = &screen_info; in screen_info_fixup_lfb() 118 struct pci_dev *screen_info_pci_dev(const struct screen_info *si) in screen_info_pci_dev()
|
H A D | Makefile | 4 obj-$(CONFIG_SCREEN_INFO) += screen_info.o 11 screen_info-y := screen_info_generic.o 12 screen_info-$(CONFIG_PCI) += screen_info_pci.o
|
/openbmc/linux/drivers/video/console/ |
H A D | vgacon.c | 156 if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB || in vgacon_startup() 157 screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) { in vgacon_startup() 168 if ((screen_info.orig_video_lines == 0) || in vgacon_startup() 169 (screen_info.orig_video_cols == 0)) in vgacon_startup() 173 if ((screen_info.orig_video_mode == 0x0D) || /* 320x200/4 */ in vgacon_startup() 174 (screen_info.orig_video_mode == 0x0E) || /* 640x200/4 */ in vgacon_startup() 175 (screen_info.orig_video_mode == 0x10) || /* 640x350/4 */ in vgacon_startup() 176 (screen_info.orig_video_mode == 0x12) || /* 640x480/4 */ in vgacon_startup() 177 (screen_info.orig_video_mode == 0x6A)) /* 800x600/4 (VESA) */ in vgacon_startup() 180 vga_video_num_lines = screen_info.orig_video_lines; in vgacon_startup() [all …]
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | screen_info.c | 24 struct screen_info *__alloc_screen_info(void) in __alloc_screen_info() 26 struct screen_info *si; in __alloc_screen_info() 46 void free_screen_info(struct screen_info *si) in free_screen_info()
|
H A D | efi-stub.c | 50 void __weak free_screen_info(struct screen_info *si) in free_screen_info() 54 static struct screen_info *setup_graphics(void) in setup_graphics() 60 struct screen_info *si = NULL; in setup_graphics() 161 struct screen_info *si; in efi_stub_common()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | efi.c | 79 struct screen_info *si; in init_screen_info() 89 screen_info = *si; in init_screen_info() 93 memblock_reserve(__screen_info_lfb_base(&screen_info), screen_info.lfb_size); in init_screen_info()
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | misc.c | 135 x = boot_params->screen_info.orig_x; in __putstr() 136 y = boot_params->screen_info.orig_y; in __putstr() 157 boot_params->screen_info.orig_x = x; in __putstr() 158 boot_params->screen_info.orig_y = y; in __putstr() 408 if (boot_params->screen_info.orig_video_mode == 7) { in extract_kernel() 416 lines = boot_params->screen_info.orig_video_lines; in extract_kernel() 417 cols = boot_params->screen_info.orig_video_cols; in extract_kernel()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | zimage.c | 249 setup_base->screen_info.cl_magic = COMMAND_LINE_MAGIC; in setup_zimage() 250 setup_base->screen_info.cl_offset = COMMAND_LINE_OFFSET; in setup_zimage() 274 setup_base->screen_info.cl_magic = COMMAND_LINE_MAGIC; in setup_zimage() 275 setup_base->screen_info.cl_offset = in setup_zimage() 291 setup_video(&setup_base->screen_info); in setup_zimage()
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | setup.c | 90 struct screen_info screen_info; variable 507 memset(&screen_info, 0, sizeof(screen_info)); in screen_info_setup() 525 screen_info.orig_x = orig_x; in screen_info_setup() 526 screen_info.orig_y = orig_y; in screen_info_setup() 527 screen_info.orig_video_cols = num_cols; in screen_info_setup() 528 screen_info.orig_video_lines = num_rows; in screen_info_setup() 529 screen_info.orig_video_points = font_height; in screen_info_setup() 530 screen_info.orig_video_mode = 3; /* XXX fake */ in screen_info_setup() 531 screen_info.orig_video_isVGA = 1; /* XXX fake */ in screen_info_setup() 532 screen_info.orig_video_ega_bx = 3; /* XXX fake */ in screen_info_setup()
|
/openbmc/linux/arch/hexagon/kernel/ |
H A D | screen_info.c | 3 struct screen_info screen_info; variable
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | zimage.h | 37 void setup_video(struct screen_info *screen_info);
|