Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:read_aperture

Proto:static __init unsigned read_aperture(struct pci_dev *dev, unsigned int *size)

Type:unsigned

Parameter:

TypeParameterName
struct pci_dev *dev
unsigned int *size
523  aper_size = 0
526  pci_read_config_dword(dev, AMD64_GARTAPERTUREBASE, & aper_base_32)
527  pci_read_config_dword(dev, K8 On-cpu GART registers , & aper_order)
528  aper_order = aper_order >> 1 & 7
530  aper_base = aper_base_32 & 0x7fff
531  aper_base <<= 25
533  aper_size = 32 * 1024 * 1024 << aper_order
534  If aper_base + aper_size > 0x100000000UL || Not aper_size Then aper_base = 0
537  size = aper_size
538  Return aper_base
Caller
NameDescribe
init_amd_gattPrivate Northbridge GATT initialization in case we cannot use the* AGP driver for some reason.