Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bios_probe

Proto:static int bios_probe(void)

Type:int

Parameter:Nothing

67  saved_mode = 0x06
71  nmodes = 0
73  If 0=CGA/MDA/HGC, 1=EGA, 2=VGA+ != ADAPTER_EGA && 0=CGA/MDA/HGC, 1=EGA, 2=VGA+ != ADAPTER_VGA Then Return 0
76  set_fs(0)
77  crtc = I/O address of the VGA CRTC
79  modes = GET_HEAP(structmode_info, 0)
81  When mode <= 0x7f cycle
82  If Not heap_free(sizeof(structmode_info)) Then Break
85  If Test if a mode is defined Then Continue
88  If Set a conventional BIOS mode Then Continue
94  If Accessing VGA indexed registers & 0x01 Then Continue
98  If Accessing VGA indexed registers & 0x01 Then Continue
102  If Accessing VGA indexed registers Then Continue
105  mi = GET_HEAP(structmode_info, 1)
106  Mode number (vga= style) = Standard BIOS video modes (BIOS number + 0x0100) + mode
107  Bits per pixel, 0 for text mode = 0
108  x = rdfs16(0x44a)
109  Width, height = rdfs8(0x484) + 1
110  nmodes++
113  Set a conventional BIOS mode
115  Return nmodes