zalon.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) zalon.c (53f01bba49938f115237fe43a261c31ac13ae5c6)
1/*
2 * Zalon 53c7xx device driver.
3 * By Richard Hirst (rhirst@linuxcare.com)
4 */
5
6#include <linux/init.h>
7#include <linux/interrupt.h>
8#include <linux/module.h>

--- 74 unchanged lines hidden (view full) ---

83};
84
85static int __init
86zalon_probe(struct parisc_device *dev)
87{
88 struct gsc_irq gsc_irq;
89 u32 zalon_vers;
90 int error = -ENODEV;
1/*
2 * Zalon 53c7xx device driver.
3 * By Richard Hirst (rhirst@linuxcare.com)
4 */
5
6#include <linux/init.h>
7#include <linux/interrupt.h>
8#include <linux/module.h>

--- 74 unchanged lines hidden (view full) ---

83};
84
85static int __init
86zalon_probe(struct parisc_device *dev)
87{
88 struct gsc_irq gsc_irq;
89 u32 zalon_vers;
90 int error = -ENODEV;
91 void __iomem *zalon = ioremap(dev->hpa, 4096);
91 void __iomem *zalon = ioremap(dev->hpa.start, 4096);
92 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET;
93 static int unit = 0;
94 struct Scsi_Host *host;
95 struct ncr_device device;
96
97 __raw_writel(CMD_RESET, zalon + IO_MODULE_IO_COMMAND);
98 while (!(__raw_readl(zalon + IO_MODULE_IO_STATUS) & IOSTATUS_RY))
99 cpu_relax();

--- 22 unchanged lines hidden (view full) ---

122 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */
123 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */
124 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */
125
126 /* Initialise ncr_device structure with items required by ncr_attach. */
127 device.chip = zalon720_chip;
128 device.host_id = 7;
129 device.dev = &dev->dev;
92 void __iomem *io_port = zalon + GSC_SCSI_ZALON_OFFSET;
93 static int unit = 0;
94 struct Scsi_Host *host;
95 struct ncr_device device;
96
97 __raw_writel(CMD_RESET, zalon + IO_MODULE_IO_COMMAND);
98 while (!(__raw_readl(zalon + IO_MODULE_IO_STATUS) & IOSTATUS_RY))
99 cpu_relax();

--- 22 unchanged lines hidden (view full) ---

122 __raw_writeb(0x20, io_port + 0x38); /* DCNTL_REG, EA */
123 __raw_writeb(0x04, io_port + 0x1b); /* CTEST0_REG, EHP */
124 __raw_writeb(0x80, io_port + 0x22); /* CTEST4_REG, MUX */
125
126 /* Initialise ncr_device structure with items required by ncr_attach. */
127 device.chip = zalon720_chip;
128 device.host_id = 7;
129 device.dev = &dev->dev;
130 device.slot.base = dev->hpa + GSC_SCSI_ZALON_OFFSET;
130 device.slot.base = dev->hpa.start + GSC_SCSI_ZALON_OFFSET;
131 device.slot.base_v = io_port;
132 device.slot.irq = dev->irq;
133 device.differential = 2;
134
135 host = ncr_attach(&zalon7xx_template, unit, &device);
136 if (!host)
137 goto fail;
138

--- 67 unchanged lines hidden ---
131 device.slot.base_v = io_port;
132 device.slot.irq = dev->irq;
133 device.differential = 2;
134
135 host = ncr_attach(&zalon7xx_template, unit, &device);
136 if (!host)
137 goto fail;
138

--- 67 unchanged lines hidden ---