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:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vesa_set_mode

Proto:static int vesa_set_mode(struct mode_info *mode)

Type:int

Parameter:

TypeParameterName
struct mode_info *mode
108  vesa_mode = Mode number (vga= style) - VESA BIOS video modes (VESA number + 0x0200)
110  memset( & vminfo, 0, size of vminfo )
112  SPDX-License-Identifier: GPL-2.0-or-later
113  ax = 0x4f01
114  cx = vesa_mode
115  di = (size_t) & vminfo
116  intcall(0x10, & ireg, & oreg)
118  If ax != 0x004f Then Return -1
121  If (mode_attr & 0x15) == 0x05 Then
123  is_graphic = 0
130  Else
131  Return -1
135  SPDX-License-Identifier: GPL-2.0-or-later
136  ax = 0x4f02
137  bx = vesa_mode
138  intcall(0x10, & ireg, & oreg)
140  If ax != 0x004f Then Return -1
143  Graphic mode with linear frame buffer = is_graphic
144  If Not is_graphic Then
146  Don't query the BIOS for cols/rows = x
147  Don't query the BIOS for cols/rows = Width, height
148  Screen contents changed during mode flip = 1
149  Else
151  vesa_store_mode_params_graphics()
154  Return 0