Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\gart.h Create Date:2022-07-28 07:39:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:enable_gart_translation

Proto:static inline void enable_gart_translation(struct pci_dev *dev, u64 addr)

Type:void

Parameter:

TypeParameterName
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)
Caller
NameDescribe
enable_gart_translations