aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-gart_64.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2008-04-08 04:49:03 -0400
committerIngo Molnar <mingo@elte.hu>2008-05-12 15:28:10 -0400
commitaa134f1b09df6beaa4d031a50d5fda1f3cebce6c (patch)
tree3bd632e6fa8490cf5b472271d57c8c70abaa62b4 /arch/x86/kernel/pci-gart_64.c
parent492c2e476eac010962850006c49df326919b284c (diff)
x86: iommu: use symbolic constants, not hardcoded numbers
Move symbolic constants into gart.h, and use them instead of hardcoded constant. Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/pci-gart_64.c')
-rw-r--r--arch/x86/kernel/pci-gart_64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index c07455d1695f..bffcf455c857 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -598,13 +598,13 @@ static __init int init_k8_gatt(struct agp_kern_info *info)
598 dev = k8_northbridges[i]; 598 dev = k8_northbridges[i];
599 gatt_reg = __pa(gatt) >> 12; 599 gatt_reg = __pa(gatt) >> 12;
600 gatt_reg <<= 4; 600 gatt_reg <<= 4;
601 pci_write_config_dword(dev, 0x98, gatt_reg); 601 pci_write_config_dword(dev, AMD64_GARTTABLEBASE, gatt_reg);
602 pci_read_config_dword(dev, 0x90, &ctl); 602 pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl);
603 603
604 ctl |= 1; 604 ctl |= GARTEN;
605 ctl &= ~((1<<4) | (1<<5)); 605 ctl &= ~(DISGARTCPU | DISGARTIO);
606 606
607 pci_write_config_dword(dev, 0x90, ctl); 607 pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl);
608 } 608 }
609 flush_gart(); 609 flush_gart();
610 610