DBG("ISA/IDE, window size is %x\n", pci->phb->dma_window_size); 
DBG("ISA/IDE, window size is 0x%lx\n", pci->phb->dma_window_size); 
static void iommu_bus_setup_pSeries(struct pci_bus *bus){	struct device_node *dn;	struct iommu_table *tbl;	struct device_node *isa_dn, *isa_dn_orig;	struct device_node *tmp;	struct pci_dn *pci;	int children;	DBG("iommu_bus_setup_pSeries, bus %p, bus->self %p\n", bus, bus->self);	dn = pci_bus_to_OF_node(bus);	pci = PCI_DN(dn);	if (bus->self) {		/* This is not a root bus, any setup will be done for the		 * device-side of the bridge in iommu_dev_setup_pSeries().		 */		return;	}	/* Check if the ISA bus on the system is under	 * this PHB.	 */	isa_dn = isa_dn_orig = of_find_node_by_type(NULL, "isa");	while (isa_dn && isa_dn != dn)		isa_dn = isa_dn->parent;	if (isa_dn_orig)		of_node_put(isa_dn_orig);	/* Count number of direct PCI children of the PHB.	 * All PCI device nodes have class-code property, so it's	 * an easy way to find them.	 */	for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling)		if (get_property(tmp, "class-code", NULL))			children++;	DBG("Children: %d\n", children);	/* Calculate amount of DMA window per slot. Each window must be	 * a power of two (due to pci_alloc_consistent requirements).	 *	 * Keep 256MB aside for PHBs with ISA.	 */	if (!isa_dn) {		/* No ISA/IDE - just set window size and return */		pci->phb->dma_window_size = 0x80000000ul; /* To be divided */		while (pci->phb->dma_window_size * children > 0x80000000ul)			pci->phb->dma_window_size >>= 1;		DBG("No ISA/IDE, window size is %x\n", pci->phb->dma_window_size);		pci->phb->dma_window_base_cur = 0;		return;	}	/* If we have ISA, then we probably have an IDE	 * controller too. Allocate a 128MB table but	 * skip the first 128MB to avoid stepping on ISA	 * space.	 */	pci->phb->dma_window_size = 0x8000000ul;	pci->phb->dma_window_base_cur = 0x8000000ul;	tbl = kmalloc(sizeof(struct iommu_table), GFP_KERNEL);	iommu_table_setparms(pci->phb, dn, tbl);	pci->iommu_table = iommu_init_table(tbl);	/* Divide the rest (1.75GB) among the children */	pci->phb->dma_window_size = 0x80000000ul;	while (pci->phb->dma_window_size * children > 0x70000000ul)		pci->phb->dma_window_size >>= 1;	DBG("ISA/IDE, window size is %x\n", pci->phb->dma_window_size);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/f951da3757cf46444a6ea52e97b8aa9400fe761a/pSeries_iommu.c/buggy/arch/ppc64/kernel/pSeries_iommu.c