Displaying 1 result from an estimated 1 matches for "gatt_reg".
Did you mean:
data_reg
2006 Jan 16
13
Support for AGP aperture as IOMMU in AMD64 mode [2/2]
...e));
+ gatt = (void *) alloc_gatt_pages(get_order(gatt_size));
if (!gatt)
panic("Cannot allocate GATT table");
memset(gatt, 0, gatt_size);
- agp_gatt_table = gatt;
+ if (!agp_gatt_table)
+ agp_gatt_table = gatt;
+ else
+ goto nommu;
for_all_nb(dev) {
u32 ctl;
u32 gatt_reg;
- gatt_reg = __pa(gatt) >> 12;
+ gatt_reg = (0xffffffff & virt_to_gart(gatt)) >> 12;
gatt_reg <<= 4;
pci_write_config_dword(dev, 0x98, gatt_reg);
pci_read_config_dword(dev, 0x90, &ctl);
@@ -782,6 +792,7 @@
struct pci_dev *dev;
unsigned long scratch;...