new->memory[0] = virt_to_phys(addr); 
new->memory[0] = virt_to_gart(addr); 
static struct agp_memory *alloc_agpphysmem_i8xx(size_t pg_count, int type){	struct agp_memory *new;	void *addr;	if (pg_count != 1 && pg_count != 4)		return NULL;	switch (pg_count) {	case 1: addr = agp_bridge->driver->agp_alloc_page(agp_bridge);		break;	case 4:		/* kludge to get 4 physical pages for ARGB cursor */		addr = i8xx_alloc_pages();		break;	default:		return NULL;	}	if (addr == NULL)		return NULL;	new = agp_create_memory(pg_count);	if (new == NULL)		return NULL;	new->memory[0] = virt_to_phys(addr);	if (pg_count == 4) {		/* kludge to get 4 physical pages for ARGB cursor */		new->memory[1] = new->memory[0] + PAGE_SIZE;		new->memory[2] = new->memory[1] + PAGE_SIZE;		new->memory[3] = new->memory[2] + PAGE_SIZE;	}	new->page_count = pg_count;	new->num_scratch_pages = pg_count;	new->type = AGP_PHYS_MEMORY;	new->physical = new->memory[0];	return new;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/07eee78ea8ba2d0b7b20551c35a3e7dd158d50bb/intel-agp.c/clean/drivers/char/agp/intel-agp.c