if(dev->num_addrs) { rom = dev->addr[0]; } if (!rom) { rom = dev->hpa; DPRINTK((KERN_DEBUG "Trying STI ROM at %08lx, hpa at %08lx\n", rom, dev->hpa)); sti = sti_try_rom_generic(rom, dev->hpa, NULL); rom = PAGE0->proc_sti; } if (!sti) { DPRINTK((KERN_DEBUG "Trying STI ROM at %08lx, hpa at %08lx\n", rom, dev->hpa)); sti = sti_try_rom_generic(rom, dev->hpa, NULL); }
int hpa = dev->hpa.start;  if (dev->num_addrs && dev->addr[0]) sti = sti_try_rom_generic(dev->addr[0], hpa, NULL); if (!sti) sti = sti_try_rom_generic(hpa, hpa, NULL); if (!sti) sti = sti_try_rom_generic(PAGE0->proc_sti, hpa, NULL);
static int __init sticore_pa_init(struct parisc_device *dev){	unsigned long rom = 0;	char pa_path[21];	struct sti_struct *sti = NULL;		if(dev->num_addrs) {		rom = dev->addr[0];	}	if (!rom) {		rom = dev->hpa;		DPRINTK((KERN_DEBUG "Trying STI ROM at %08lx, hpa at %08lx\n", rom, dev->hpa));		sti = sti_try_rom_generic(rom, dev->hpa, NULL);		rom = PAGE0->proc_sti;	}	if (!sti) {		DPRINTK((KERN_DEBUG "Trying STI ROM at %08lx, hpa at %08lx\n", rom, dev->hpa));		sti = sti_try_rom_generic(rom, dev->hpa, NULL);	}	if (!sti)		return 1;		print_pa_hwpath(dev, pa_path);	sticore_check_for_default_sti (sti, pa_path);	return 0;}