函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\boot\video-vga.c Create Date:2022-07-27 08:26:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static int vga_probe(void)

返回类型:int

参数:

233  static const char * card_name[] = {"CGA/MDA/HGC", "EGA", "VGA"}
236  static struct mode_info * mode_lists[] = {CGA显示模式组, EGA显示模式组, VGA显示模式组, }
241  static int mode_count[] = {Useful macros (CGA显示模式组), Useful macros (EGA显示模式组), Useful macros (VGA显示模式组), }
249  初始化寄存器
251  ax等于0x1200
252  bl等于0x10
253  读写端口数据
256  EGA或BX等于bx
260  如果bl不等于0x10则
262  ax等于0x1a00
263  读写端口数据
265  如果al恒等于0x1a则
268  VGA标志等于1
270  否则
273  否则
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[0=CGA/MDA/HGC, 1=EGA, 2=VGA+ ]
279  返回:mode_count[0=CGA/MDA/HGC, 1=EGA, 2=VGA+ ]