Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:probe_roms

Proto:void __init probe_roms(void)

Type:void

Parameter:Nothing

206  upper = start
207  When start < upper cycle
208  rom = isa_bus_to_virt(start)
209  If Not romsignature(rom) Then Continue
212  start = start
214  If probe_kernel_address(): safely attempt to read from a location*@addr: address to read from*@retval: read into this variable* Returns 0 on success, or -EFAULT.(rom + 2, c) != 0 Then Continue
218  length = c * 512
221  If length && romchecksum(rom, length) Then end = start + length - 1
224  request_resource( & iomem_resource, & video_rom_resource)
225  Break
228  start = end + 1 + 2047 & ~2047UL
229  If start < upper Then start = upper
233  request_resource( & iomem_resource, & system_rom_resource)
234  upper = start
237  rom = isa_bus_to_virt(start)
238  If romsignature(rom) Then
239  length = resource_size( & extension_rom_resource)
240  If romchecksum(rom, length) Then
242  upper = start
247  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(adapter_rom_resources) && start < upper cycle
248  rom = isa_bus_to_virt(start)
249  If Not romsignature(rom) Then Continue
252  If probe_kernel_address(): safely attempt to read from a location*@addr: address to read from*@retval: read into this variable* Returns 0 on success, or -EFAULT.(rom + 2, c) != 0 Then Continue
256  length = c * 512
259  If Not length || start + length > upper || Not romchecksum(rom, length) Then Continue
262  start = start
263  end = start + length - 1
264  request_resource( & iomem_resource, & adapter_rom_resources[i])
266  start = end & ~2047UL