/* agp_rebind_emmory - Rewrite the entire GATT, useful on resume  */
int agp_rebind_memory(void)
/* agp_rebind_emmory - Rewrite the entire GATT, useful on resume  */
int agp_rebind_memory(void)
{
	struct agp_memory *curr;
	int ret_val = 0;
	spin_lock(&agp_bridge->mapped_lock);
	list_for_each_entry(curr, &agp_bridge->mapped_list, mapped_list) {
		ret_val = curr->bridge->driver->insert_memory(curr,
							      curr->pg_start,
							      curr->type);
		if (ret_val != 0)
			break;
	}
	spin_unlock(&agp_bridge->mapped_lock);
	return ret_val;
}