void __iomem *zalon = ioremap(dev->hpa, 4096); 
void __iomem *zalon = ioremap(dev->hpa.start, 4096); 
zalon_probe(struct parisc_device *dev){	struct gsc_irq gsc_irq;	u32 zalon_vers;	int error = -ENODEV;	void __iomem *zalon = ioremap(dev->hpa, 4096);	void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET;	static int unit = 0;	struct Scsi_Host *host;	struct ncr_device device;	__raw_writel(CMD_RESET, zalon + IO_MODULE_IO_COMMAND);	while (!(__raw_readl(zalon + IO_MODULE_IO_STATUS) & IOSTATUS_RY))		cpu_relax();	__raw_writel(IOIIDATA_MINT5EN | IOIIDATA_PACKEN | IOIIDATA_PREFETCHEN,		zalon + IO_MODULE_II_CDATA);	/* XXX: Save the Zalon version for bug workarounds? */	zalon_vers = (__raw_readl(zalon + IO_MODULE_II_CDATA) >> 24) & 0x07;	/* Setup the interrupts first.	** Later on request_irq() will register the handler.	*/	dev->irq = gsc_alloc_irq(&gsc_irq);	printk(KERN_INFO "%s: Zalon version %d, IRQ %d\n", __FUNCTION__,		zalon_vers, dev->irq);	__raw_writel(gsc_irq.txn_addr | gsc_irq.txn_data, zalon + IO_MODULE_EIM);	if (zalon_vers == 0)		printk(KERN_WARNING "%s: Zalon 1.1 or earlier\n", __FUNCTION__);	memset(&device, 0, sizeof(struct ncr_device));	/* The following three are needed before any other access. */	__raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG,  EA  */	__raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */	__raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */	/* Initialise ncr_device structure with items required by ncr_attach. */	device.chip		= zalon720_chip;	device.host_id		= 7;	device.dev		= &dev->dev;	device.slot.base	= dev->hpa + GSC_SCSI_ZALON_OFFSET;	device.slot.base_v	= io_port;	device.slot.irq		= dev->irq;	device.differential	= 2;	host = ncr_attach(&zalon7xx_template, unit, &device);	if (!host)		goto fail;	if (request_irq(dev->irq, ncr53c8xx_intr, SA_SHIRQ, "zalon", host)) {		printk(KERN_ERR "%s: irq problem with %d, detaching\n ",			dev->dev.bus_id, dev->irq);		goto fail;	}	unit++;	dev_set_drvdata(&dev->dev, host);	error = scsi_add_host(host, &dev->dev);	if (error)		goto fail_free_irq;	scsi_scan_host(host);	return 0; fail_free_irq:	free_irq(dev->irq, host); fail:	ncr53c8xx_release(host);	return error;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f01bba49938f115237fe43a261c31ac13ae5c6/zalon.c/buggy/drivers/scsi/zalon.c