1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/interrupt.h>
4 #include <console/console.h>
6 #include <x86emu/x86emu.h>
8 static int int15_handler(void)
12 printk(BIOS_DEBUG
, "%s: AX=%04x BX=%04x CX=%04x DX=%04x\n",
13 __func__
, X86_AX
, X86_BX
, X86_CX
, X86_DX
);
18 * Set Panel Fitting Hook:
19 * bit 2 = Graphics Stretching
20 * bit 1 = Text Stretching
21 * bit 0 = Centering (do not set with bit1 or bit2)
22 * 0 = video BIOS default
30 * Boot Display Device Hook:
46 * Hook to select active LFP configuration:
47 * 00h = No LVDS, VBIOS does not enable LVDS
48 * 01h = Int-LVDS, LFP driven by integrated LVDS decoder
49 * 02h = SVDO-LVDS, LFP driven by SVDO decoder
50 * 03h = eDP, LFP Driven by Int-DisplayPort encoder
57 switch ((X86_CX
>> 8) & 0xff) {
71 /* Get SG/Non-SG mode */
77 /* Interrupt was not handled */
79 "Unknown INT15 5f70 function: 0x%02x\n",
80 ((X86_CX
>> 8) & 0xff));
86 printk(BIOS_DEBUG
, "Unknown INT15 function %04x!\n", X86_AX
);
92 void install_baytrail_vga_int15_handler(void)
94 mainboard_interrupt_handlers(0x15, &int15_handler
);