bridge->gatt_bus_addr = virt_to_phys(table); 
bridge->gatt_bus_addr = virt_to_gart(table); 
static int uninorth_create_gatt_table(struct agp_bridge_data *bridge){	char *table;	char *table_end;	int size;	int page_order;	int num_entries;	int i;	void *temp;	struct page *page;	/* We can't handle 2 level gatt's */	if (bridge->driver->size_type == LVL2_APER_SIZE)		return -EINVAL;	table = NULL;	i = bridge->aperture_size_idx;	temp = bridge->current_size;	size = page_order = num_entries = 0;	do {		size = A_SIZE_32(temp)->size;		page_order = A_SIZE_32(temp)->page_order;		num_entries = A_SIZE_32(temp)->num_entries;		table = (char *) __get_free_pages(GFP_KERNEL, page_order);		if (table == NULL) {			i++;			bridge->current_size = A_IDX32(bridge);		} else {			bridge->aperture_size_idx = i;		}	} while (!table && (i < bridge->driver->num_aperture_sizes));	if (table == NULL)		return -ENOMEM;	table_end = table + ((PAGE_SIZE * (1 << page_order)) - 1);	for (page = virt_to_page(table); page <= virt_to_page(table_end); page++)		SetPageReserved(page);	bridge->gatt_table_real = (u32 *) table;	bridge->gatt_table = (u32 *)table;	bridge->gatt_bus_addr = virt_to_phys(table);	for (i = 0; i < num_entries; i++)		bridge->gatt_table[i] = 0;	flush_dcache_range((unsigned long)table, (unsigned long)table_end);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/07eee78ea8ba2d0b7b20551c35a3e7dd158d50bb/uninorth-agp.c/clean/drivers/char/agp/uninorth-agp.c