Lines Matching +full:rom +full:- +full:14 +full:h
1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2009-2010 coresystems GmbH
8 #include <common.h>
9 #include <bios_emul.h>
10 #include <vbe.h>
11 #include <linux/linkage.h>
12 #include <asm/cache.h>
13 #include <asm/processor.h>
14 #include <asm/i8259.h>
15 #include <asm/io.h>
16 #include <asm/post.h>
17 #include "bios.h"
19 /* Interrupt handlers for each interrupt the ROM can call */
52 /* system model: IBM-AT */ in setup_rombios()
76 debug("Oops, exception %d while executing option rom\n", regs->vector); in int_exception_handler()
87 return -1; in int_unknown_handler()
102 * but the CPU-generated exceptions ("hardware interrupts") in setup_interrupt_handlers()
175 /* BIOS Int 14 Handler F000:E739 */ in setup_realmode_idt()
183 /* ROM BIOS Int 1A Handler F000:FE6E */ in setup_realmode_idt()
195 mi->video_mode); in vbe_get_mode_info()
200 realmode_interrupt(0x10, VESA_GET_MODE_INFO, 0x0000, mi->video_mode, in vbe_get_mode_info()
202 memcpy(mi->mode_info_block, buffer, sizeof(struct vbe_mode_info)); in vbe_get_mode_info()
203 mi->valid = true; in vbe_get_mode_info()
210 int video_mode = mi->video_mode; in vbe_set_mode()
214 video_mode |= (1 << 14); in vbe_set_mode()
227 mode_info->video_mode = (1 << 14) | vesa_mode; in vbe_set_graphics()
230 framebuffer = (unsigned char *)(ulong)mode_info->vesa.phys_base_ptr; in vbe_set_graphics()
232 le16_to_cpu(mode_info->vesa.x_resolution), in vbe_set_graphics()
233 le16_to_cpu(mode_info->vesa.y_resolution), in vbe_set_graphics()
234 mode_info->vesa.bits_per_pixel); in vbe_set_graphics()
241 mode_info->video_mode &= 0x3ff; in vbe_set_graphics()
264 /* Set up real-mode IDT */ in bios_run_on_x86()
270 debug("Calling Option ROM at %lx, pci device %#x...", addr, num_dev); in bios_run_on_x86()
272 /* Option ROM entry point is at OPROM start + 3 */ in bios_run_on_x86()
278 if (vesa_mode != -1) in bios_run_on_x86()