函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\aperture_64.c Create Date:2022-07-27 09:52:19
Last Modify:2020-03-17 10:38:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Find a PCI capability

函数原型:static unsigned int __init find_cap(int bus, int slot, int func, int cap)

返回类型:unsigned int

参数:

类型参数名称
intbus
intslot
intfunc
intcap
137  如果非read_pci_config_16(bus, slot, func, 16 bits )按位与Support Capability List 的值则返回:0
141  pos等于read_pci_config_byte(bus, slot, func, Offset of first capability list entry )
142 bytes小于48且pos大于等于0x40循环
145  pos与等于3的反
146  id等于read_pci_config_byte(bus, slot, func, pos + Capability ID )
147  如果id恒等于0xff则退出
149  如果id恒等于cap则返回:pos
151  pos等于read_pci_config_byte(bus, slot, func, pos + Next capability in the list )
154  返回:0
调用者
名称描述
search_agp_bridgeLook for an AGP bridge