]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/pci-gart_64.c
x86: iommu: use symbolic constants, not hardcoded numbers
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / pci-gart_64.c
index c07455d1695f531843df8bf165ce5131bb1ca836..bffcf455c857c157371ff5e5b4e8902ff76aea25 100644 (file)
@@ -598,13 +598,13 @@ static __init int init_k8_gatt(struct agp_kern_info *info)
                dev = k8_northbridges[i];
                gatt_reg = __pa(gatt) >> 12;
                gatt_reg <<= 4;
-               pci_write_config_dword(dev, 0x98, gatt_reg);
-               pci_read_config_dword(dev, 0x90, &ctl);
+               pci_write_config_dword(dev, AMD64_GARTTABLEBASE, gatt_reg);
+               pci_read_config_dword(dev, AMD64_GARTAPERTURECTL, &ctl);
 
-               ctl |= 1;
-               ctl &= ~((1<<4) | (1<<5));
+               ctl |= GARTEN;
+               ctl &= ~(DISGARTCPU | DISGARTIO);
 
-               pci_write_config_dword(dev, 0x90, ctl);
+               pci_write_config_dword(dev, AMD64_GARTAPERTURECTL, ctl);
        }
        flush_gart();