Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Note: this probe includes basic information required by all* systems. It should be executed first, by making sure* video-vga.c is listed first in the Makefile.

Proto:static int vga_probe(void)

Type:int

Parameter:Nothing

233  static const char * card_name[] = {"CGA/MDA/HGC", "EGA", "VGA"}
236  static struct mode_info * mode_lists[] = {cga_modes, ega_modes, SPDX-License-Identifier: GPL-2.0-only, }
241  static int mode_count[] = {Useful macros (cga_modes), Useful macros (ega_modes), Useful macros (SPDX-License-Identifier: GPL-2.0-only), }
249  SPDX-License-Identifier: GPL-2.0-or-later
251  ax = 0x1200
252  bl = 0x10
253  intcall(0x10, & ireg, & oreg)
256  0x0a = bx
260  If bl != 0x10 Then
262  ax = 0x1a00
263  intcall(0x10, & ireg, & oreg)
265  If al == 0x1a Then
268  0x0f = 1
270  Else
273  Else
274  0=CGA/MDA/HGC, 1=EGA, 2=VGA+ = CGA/MDA/HGC
277  modes = mode_lists[0=CGA/MDA/HGC, 1=EGA, 2=VGA+ ]
278  card_name = card_name[0=CGA/MDA/HGC, 1=EGA, 2=VGA+ ]
279  Return mode_count[0=CGA/MDA/HGC, 1=EGA, 2=VGA+ ]