new |= res->flags & IORESOURCE_ROM_ENABLE; 
if (!(res->flags & IORESOURCE_ROM_ENABLE)) return; new |= PCI_ROM_ADDRESS_ENABLE; 
pci_update_resource(struct pci_dev *dev, struct resource *res, int resno){	struct pci_bus_region region;	u32 new, check, mask;	int reg;	/* Ignore resources for unimplemented BARs and unused resource slots	   for 64 bit BARs. */	if (!res->flags)		return;	pcibios_resource_to_bus(dev, &region, res);	pr_debug("  got res [%lx:%lx] bus [%lx:%lx] flags %lx for "		 "BAR %d of %s\n", res->start, res->end,		 region.start, region.end, res->flags, resno, pci_name(dev));	new = region.start | (res->flags & PCI_REGION_FLAG_MASK);	if (res->flags & IORESOURCE_IO)		mask = (u32)PCI_BASE_ADDRESS_IO_MASK;	else		mask = (u32)PCI_BASE_ADDRESS_MEM_MASK;	if (resno < 6) {		reg = PCI_BASE_ADDRESS_0 + 4 * resno;	} else if (resno == PCI_ROM_RESOURCE) {		new |= res->flags & IORESOURCE_ROM_ENABLE;		reg = dev->rom_base_reg;	} else {		/* Hmm, non-standard resource. */			return;		/* kill uninitialised var warning */	}	pci_write_config_dword(dev, reg, new);	pci_read_config_dword(dev, reg, &check);	if ((new ^ check) & mask) {		printk(KERN_ERR "PCI: Error while updating region "		       "%s/%d (%08x != %08x)\n", pci_name(dev), resno,		       new, check);	}	if ((new & (PCI_BASE_ADDRESS_SPACE|PCI_BASE_ADDRESS_MEM_TYPE_MASK)) ==	    (PCI_BASE_ADDRESS_SPACE_MEMORY|PCI_BASE_ADDRESS_MEM_TYPE_64)) {		new = region.start >> 16 >> 16;		pci_write_config_dword(dev, reg + 4, new);		pci_read_config_dword(dev, reg + 4, &check);		if (check != new) {			printk(KERN_ERR "PCI: Error updating region "			       "%s/%d (high %08x != %08x)\n",			       pci_name(dev), resno, new, check);		}	}	res->flags &= ~IORESOURCE_UNSET;	pr_debug("PCI: moved device %s resource %d (%lx) to %x\n",		pci_name(dev), resno, res->flags,		new & ~PCI_REGION_FLAG_MASK);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/755528c860b05fcecda1c88a2bdaffcb50760a7f/setup-res.c/clean/drivers/pci/setup-res.c