函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_gart_64.c Create Date:2022-07-27 09:51:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:read_aperture

函数原型:static __init unsigned read_aperture(struct pci_dev *dev, unsigned int *size)

返回类型:unsigned

参数:

类型参数名称
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  如果aper_baseaper_size大于0x100000000UL或非aper_sizeaper_base等于0
537  size等于aper_size
538  返回:aper_base
调用者
名称描述
init_amd_gattPrivate Northbridge GATT initialization in case we cannot use the* AGP driver for some reason.