Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\video-mode.c Create Date:2022-07-28 07:27:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Recalculate the vertical video cutoff (hack!)

Proto:static void vga_recalc_vertical(void)

Type:void

Parameter:Nothing

122  set_fs(0)
123  font_size = rdfs8(0x485)
124  rows = If Don't query the BIOS for cols/rows Then Don't query the BIOS for cols/rows Else rdfs8(0x484) + 1
126  rows *= font_size
127  rows--
129  crtc = I/O address of the VGA CRTC
131  pt = Accessing VGA indexed registers
132  pt &= ~0x80
133  out_idx(pt, crtc, 0x11)
135  out_idx((u8)rows, crtc, 0x12)
137  ov = Accessing VGA indexed registers
138  ov &= 0xbd
139  ov |= rows >> 8 - 1 & 0x02
140  ov |= rows >> 9 - 6 & 0x40
141  out_idx(ov, crtc, 0x07)
Caller
NameDescribe
set_modeSet mode (with recalc if specified)