Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_simplefb

Proto:__init int create_simplefb(const struct screen_info *si, const struct simplefb_platform_data *mode)

Type:int

Parameter:

TypeParameterName
const struct screen_info *si
const struct simplefb_platform_data *mode
73  base = 0x18
74  If 0x36 & Frame buffer base is 64-bit Then base |= 0x3a << 32
76  If Not base || base != base Then
77  printk(debug-level messages "sysfb: inaccessible VRAM base\n")
78  Return -EINVAL
89  size = 0x1c
90  If 0x0f == VESA VGA in graphic mode Then size <<= 16
92  length = height * stride
93  If length > size Then
94  printk(warning conditions "sysfb: VRAM smaller than advertised\n")
95  Return -EINVAL
97  length = align the pointer to the (next) page boundary (length)
100  memset( & res, 0, size of res )
101  flags = IORESOURCE_MEM | Driver has marked this resource busy
102  name = simplefb_resname
103  start = base
104  end = start + length - 1
105  If end <= start Then Return -EINVAL
108  pd = platform_device_register_resndata - add a platform-level device with* resources and platform-specific data*@parent: parent device for the device we're adding*@name: base name of the device we're adding*@id: instance id*@res: set of resources that needs to
110  Return PTR_ERR_OR_ZERO(pd)