函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\gart.h Create Date:2022-07-27 08:39:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:enable_gart_translation

函数原型:static inline void enable_gart_translation(struct pci_dev *dev, u64 addr)

返回类型:void

参数:

类型参数名称
struct pci_dev *dev
u64addr
80  addr右移等于12位
81  tmp等于addr左移4位
82  tmp与等于0xf的反
83  pci_write_config_dword(dev, AMD64_GARTTABLEBASE, tmp)
86  pci_read_config_dword(dev, K8 On-cpu GART registers , & ctl)
87  ctl或等于Aperture control register bits. 按位或DISTLBWALKPRB
88  ctl与等于DISGARTCPU按位或DISGARTIO的值的反
89  pci_write_config_dword(dev, K8 On-cpu GART registers , ctl)
调用者
名称描述
enable_gart_translations