diff options
Diffstat (limited to 'drivers/char/agp/ati-agp.c')
-rw-r--r-- | drivers/char/agp/ati-agp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c index 5b74c36c116c..4a26a2a01c2f 100644 --- a/drivers/char/agp/ati-agp.c +++ b/drivers/char/agp/ati-agp.c | |||
@@ -74,7 +74,7 @@ static int ati_create_page_map(ati_page_map *page_map) | |||
74 | /*CACHE_FLUSH();*/ | 74 | /*CACHE_FLUSH();*/ |
75 | global_cache_flush(); | 75 | global_cache_flush(); |
76 | 76 | ||
77 | for(i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++) { | 77 | for (i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++) { |
78 | writel(agp_bridge->scratch_page, page_map->remapped+i); | 78 | writel(agp_bridge->scratch_page, page_map->remapped+i); |
79 | readl(page_map->remapped+i); /* PCI Posting. */ | 79 | readl(page_map->remapped+i); /* PCI Posting. */ |
80 | } | 80 | } |
@@ -99,7 +99,7 @@ static void ati_free_gatt_pages(void) | |||
99 | ati_page_map *entry; | 99 | ati_page_map *entry; |
100 | 100 | ||
101 | tables = ati_generic_private.gatt_pages; | 101 | tables = ati_generic_private.gatt_pages; |
102 | for(i = 0; i < ati_generic_private.num_tables; i++) { | 102 | for (i = 0; i < ati_generic_private.num_tables; i++) { |
103 | entry = tables[i]; | 103 | entry = tables[i]; |
104 | if (entry != NULL) { | 104 | if (entry != NULL) { |
105 | if (entry->real != NULL) | 105 | if (entry->real != NULL) |
@@ -387,7 +387,7 @@ static int ati_create_gatt_table(struct agp_bridge_data *bridge) | |||
387 | agp_bridge->gart_bus_addr = addr; | 387 | agp_bridge->gart_bus_addr = addr; |
388 | 388 | ||
389 | /* Calculate the agp offset */ | 389 | /* Calculate the agp offset */ |
390 | for(i = 0; i < value->num_entries / 1024; i++, addr += 0x00400000) { | 390 | for (i = 0; i < value->num_entries / 1024; i++, addr += 0x00400000) { |
391 | writel(virt_to_gart(ati_generic_private.gatt_pages[i]->real) | 1, | 391 | writel(virt_to_gart(ati_generic_private.gatt_pages[i]->real) | 1, |
392 | page_dir.remapped+GET_PAGE_DIR_OFF(addr)); | 392 | page_dir.remapped+GET_PAGE_DIR_OFF(addr)); |
393 | readl(page_dir.remapped+GET_PAGE_DIR_OFF(addr)); /* PCI Posting. */ | 393 | readl(page_dir.remapped+GET_PAGE_DIR_OFF(addr)); /* PCI Posting. */ |