bus = pci_find_bus(0, tioca_common->ca_common.bs_persist_busnum); 
bus = pci_find_bus(tioca_common->ca_common.bs_persist_segment, tioca_common->ca_common.bs_persist_busnum); 
tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *controller){	struct tioca_common *tioca_common;	struct tioca_kernel *tioca_kern;	struct pci_bus *bus;	/* sanity check prom rev */	if (sn_sal_rev() < 0x0406) {		printk		    (KERN_ERR "%s:  SGI prom rev 4.06 or greater required "		     "for tioca support\n", __FUNCTION__);		return NULL;	}	/*	 * Allocate kernel bus soft and copy from prom.	 */	tioca_common = kcalloc(1, sizeof(struct tioca_common), GFP_KERNEL);	if (!tioca_common)		return NULL;	memcpy(tioca_common, prom_bussoft, sizeof(struct tioca_common));	tioca_common->ca_common.bs_base |= __IA64_UNCACHED_OFFSET;	/* init kernel-private area */	tioca_kern = kcalloc(1, sizeof(struct tioca_kernel), GFP_KERNEL);	if (!tioca_kern) {		kfree(tioca_common);		return NULL;	}	tioca_kern->ca_common = tioca_common;	spin_lock_init(&tioca_kern->ca_lock);	INIT_LIST_HEAD(&tioca_kern->ca_dmamaps);	tioca_kern->ca_closest_node =	    nasid_to_cnodeid(tioca_common->ca_closest_nasid);	tioca_common->ca_kernel_private = (uint64_t) tioca_kern;	bus = pci_find_bus(0, tioca_common->ca_common.bs_persist_busnum);	BUG_ON(!bus);	tioca_kern->ca_devices = &bus->devices;	/* init GART */	if (tioca_gart_init(tioca_kern) < 0) {		kfree(tioca_kern);		kfree(tioca_common);		return NULL;	}	tioca_gart_found++;	list_add(&tioca_kern->ca_list, &tioca_list);	if (request_irq(SGI_TIOCA_ERROR,			tioca_error_intr_handler,			SA_SHIRQ, "TIOCA error", (void *)tioca_common))		printk(KERN_WARNING		       "%s:  Unable to get irq %d.  "		       "Error interrupts won't be routed for TIOCA bus %d\n",		       __FUNCTION__, SGI_TIOCA_ERROR,		       (int)tioca_common->ca_common.bs_persist_busnum);	/* Setup locality information */	controller->node = tioca_kern->ca_closest_node;	return tioca_common;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/674c6479b7bdc78528ea83dd43897e3161558b8b/tioca_provider.c/clean/arch/ia64/sn/pci/tioca_provider.c