if (list_empty(info->ca_devices)) continue; 
static int __devinit agp_sgi_init(void){	unsigned int j;	struct tioca_kernel *info;	struct pci_dev *pdev = NULL;	if (tioca_gart_found)		printk(KERN_INFO PFX "SGI TIO CA GART driver initialized.\n");	else		return 0;	sgi_tioca_agp_bridges =	    (struct agp_bridge_data **)kmalloc(tioca_gart_found *					       sizeof(struct agp_bridge_data *),					       GFP_KERNEL);	j = 0;	list_for_each_entry(info, &tioca_list, ca_list) {		struct list_head *tmp;		list_for_each(tmp, info->ca_devices) {			u8 cap_ptr;			pdev = pci_dev_b(tmp);			if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8))				continue;			cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);			if (!cap_ptr)				continue;		}		sgi_tioca_agp_bridges[j] = agp_alloc_bridge();		printk(KERN_INFO PFX "bridge %d = 0x%p\n", j,		       sgi_tioca_agp_bridges[j]);		if (sgi_tioca_agp_bridges[j]) {			sgi_tioca_agp_bridges[j]->dev = pdev;			sgi_tioca_agp_bridges[j]->dev_private_data = info;			sgi_tioca_agp_bridges[j]->driver = &sgi_tioca_driver;			sgi_tioca_agp_bridges[j]->gart_bus_addr =			    info->ca_gfxap_base;			sgi_tioca_agp_bridges[j]->mode = (0x7D << 24) |	/* 126 requests */			    (0x1 << 9) |	/* SBA supported */			    (0x1 << 5) |	/* 64-bit addresses supported */			    (0x1 << 4) |	/* FW supported */			    (0x1 << 3) |	/* AGP 3.0 mode */			    0x2;	/* 8x transfer only */			sgi_tioca_agp_bridges[j]->current_size =			    sgi_tioca_agp_bridges[j]->previous_size =			    (void *)&sgi_tioca_sizes[0];			agp_add_bridge(sgi_tioca_agp_bridges[j]);		}		j++;	}	agp_find_bridge = &sgi_tioca_find_bridge;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/146a209967886e57eb34b4cdb85ca52078a4f8cc/sgi-agp.c/buggy/drivers/char/agp/sgi-agp.c