Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vesa_probe

Proto:static int vesa_probe(void)

Type:int

Parameter:Nothing

37  nmodes = 0
39  modes = GET_HEAP(structmode_info, 0)
41  SPDX-License-Identifier: GPL-2.0-or-later
42  ax = 0x4f00
43  di = (size_t) & VESA information
44  intcall(0x10, & ireg, & oreg)
46  If ax != 0x004f || 0 Magic number = "VESA" != VESA_MAGIC || version < 0x0102 Then Return 0
51  set_fs(seg)
52  mode_ptr = off
54  When (mode = rdfs16(mode_ptr)) != 0xffff cycle
55  mode_ptr += 2
57  If Not heap_free(sizeof(structmode_info)) Then Break
60  If mode & ~0x1ff Then Continue
63  memset( & vminfo, 0, size of vminfo )
65  ax = 0x4f01
66  cx = mode
67  di = (size_t) & vminfo
68  intcall(0x10, & ireg, & oreg)
70  If ax != 0x004f Then Continue
73  If (mode_attr & 0x15) == 0x05 Then
76  mi = GET_HEAP(structmode_info, 1)
79  x = 18
81  nmodes++
82  Else if (mode_attr & 0x99) == 0x99 && ( 27 == 4 || 27 == 6 ) && 24 == 1 Then
101  Return nmodes