u32 rom_reg_orig; void __iomem *p; 
size_t size; void __iomem *p = pci_map_rom(pdev, &size); 
static void get_gem_mac_nonobp(struct pci_dev *pdev, unsigned char *dev_addr){	u32 rom_reg_orig;	void __iomem *p;	if (pdev->resource[PCI_ROM_RESOURCE].parent == NULL) {		if (pci_assign_resource(pdev, PCI_ROM_RESOURCE) < 0)			goto use_random;	}	pci_read_config_dword(pdev, pdev->rom_base_reg, &rom_reg_orig);	pci_write_config_dword(pdev, pdev->rom_base_reg,			       rom_reg_orig | PCI_ROM_ADDRESS_ENABLE);	p = ioremap(pci_resource_start(pdev, PCI_ROM_RESOURCE), (64 * 1024));	if (p != NULL && readb(p) == 0x55 && readb(p + 1) == 0xaa)		find_eth_addr_in_vpd(p, (64 * 1024), dev_addr);	if (p != NULL)		iounmap(p);	pci_write_config_dword(pdev, pdev->rom_base_reg, rom_reg_orig);	return;use_random:	/* Sun MAC prefix then 3 random bytes. */	dev_addr[0] = 0x08;	dev_addr[1] = 0x00;	dev_addr[2] = 0x20;	get_random_bytes(dev_addr + 3, 3);	return;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4120b028dd231743935d954732045a87edda2a0a/sungem.c/buggy/drivers/net/sungem.c