Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\aperture_64.c Create Date:2022-07-28 08:52:59
Last Modify:2020-03-17 10:38:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Find a PCI capability

Proto:static unsigned int __init find_cap(int bus, int slot, int func, int cap)

Type:unsigned int

Parameter:

TypeParameterName
intbus
intslot
intfunc
intcap
137  If Not (read_pci_config_16(bus, slot, func, 16 bits ) & Support Capability List ) Then Return 0
141  pos = read_pci_config_byte(bus, slot, func, Offset of first capability list entry )
142  When bytes < 48 && pos >= 0x40 cycle
145  pos &= ~3
146  id = read_pci_config_byte(bus, slot, func, pos + Capability ID )
147  If id == 0xff Then Break
149  If id == cap Then Return pos
151  pos = read_pci_config_byte(bus, slot, func, pos + Next capability in the list )
154  Return 0
Caller
NameDescribe
search_agp_bridgeLook for an AGP bridge