Commit 38a45f47 authored by Russell King's avatar Russell King

[ARM] Unuse scsi host->base

This eliminates the final usage of deprecated elements in scsi_host by
Acorn SCSI drivers.
Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent ffb76417
...@@ -305,8 +305,6 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) ...@@ -305,8 +305,6 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
goto out_unmap; goto out_unmap;
} }
host->base = (unsigned long)base;
info = (struct arxescsi_info *)host->hostdata; info = (struct arxescsi_info *)host->hostdata;
info->ec = ec; info->ec = ec;
info->base = base; info->base = base;
......
...@@ -427,8 +427,6 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) ...@@ -427,8 +427,6 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id)
goto out_unmap; goto out_unmap;
} }
host->base = (unsigned long)base;
ecard_set_drvdata(ec, host); ecard_set_drvdata(ec, host);
info = (struct cumanascsi2_info *)host->hostdata; info = (struct cumanascsi2_info *)host->hostdata;
......
...@@ -545,8 +545,6 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) ...@@ -545,8 +545,6 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
goto out_unmap; goto out_unmap;
} }
host->base = (unsigned long)base;
ecard_set_drvdata(ec, host); ecard_set_drvdata(ec, host);
info = (struct eesoxscsi_info *)host->hostdata; info = (struct eesoxscsi_info *)host->hostdata;
......
...@@ -142,19 +142,13 @@ __setup("fas216_logging=", fas216_log_setup); ...@@ -142,19 +142,13 @@ __setup("fas216_logging=", fas216_log_setup);
static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg) static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg)
{ {
unsigned int off = reg << info->scsi.io_shift; unsigned int off = reg << info->scsi.io_shift;
if (info->scsi.io_base)
return readb(info->scsi.io_base + off); return readb(info->scsi.io_base + off);
else
return inb(info->scsi.io_port + off);
} }
static inline void fas216_writeb(FAS216_Info *info, unsigned int reg, unsigned int val) static inline void fas216_writeb(FAS216_Info *info, unsigned int reg, unsigned int val)
{ {
unsigned int off = reg << info->scsi.io_shift; unsigned int off = reg << info->scsi.io_shift;
if (info->scsi.io_base)
writeb(val, info->scsi.io_base + off); writeb(val, info->scsi.io_base + off);
else
outb(val, info->scsi.io_port + off);
} }
static void fas216_dumpstate(FAS216_Info *info) static void fas216_dumpstate(FAS216_Info *info)
...@@ -197,8 +191,8 @@ static void fas216_dumpinfo(FAS216_Info *info) ...@@ -197,8 +191,8 @@ static void fas216_dumpinfo(FAS216_Info *info)
printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n", printk(" { magic_start=%lX host=%p SCpnt=%p origSCpnt=%p\n",
info->magic_start, info->host, info->SCpnt, info->magic_start, info->host, info->SCpnt,
info->origSCpnt); info->origSCpnt);
printk(" scsi={ io_port=%X io_shift=%X irq=%X cfg={ %X %X %X %X }\n", printk(" scsi={ io_shift=%X irq=%X cfg={ %X %X %X %X }\n",
info->scsi.io_port, info->scsi.io_shift, info->scsi.irq, info->scsi.io_shift, info->scsi.irq,
info->scsi.cfg[0], info->scsi.cfg[1], info->scsi.cfg[2], info->scsi.cfg[0], info->scsi.cfg[1], info->scsi.cfg[2],
info->scsi.cfg[3]); info->scsi.cfg[3]);
printk(" type=%p phase=%X\n", printk(" type=%p phase=%X\n",
...@@ -2967,10 +2961,10 @@ int fas216_print_host(FAS216_Info *info, char *buffer) ...@@ -2967,10 +2961,10 @@ int fas216_print_host(FAS216_Info *info, char *buffer)
return sprintf(buffer, return sprintf(buffer,
"\n" "\n"
"Chip : %s\n" "Chip : %s\n"
" Address: 0x%08lx\n" " Address: 0x%p\n"
" IRQ : %d\n" " IRQ : %d\n"
" DMA : %d\n", " DMA : %d\n",
info->scsi.type, info->host->io_port, info->scsi.type, info->scsi.io_base,
info->scsi.irq, info->scsi.dma); info->scsi.irq, info->scsi.dma);
} }
......
...@@ -236,8 +236,7 @@ typedef struct { ...@@ -236,8 +236,7 @@ typedef struct {
/* driver information */ /* driver information */
struct { struct {
phase_t phase; /* current phase */ phase_t phase; /* current phase */
void *io_base; /* iomem base of FAS216 */ void __iomem *io_base; /* iomem base of FAS216 */
unsigned int io_port; /* base address of FAS216 */
unsigned int io_shift; /* shift to adjust reg offsets by */ unsigned int io_shift; /* shift to adjust reg offsets by */
unsigned char cfg[4]; /* configuration registers */ unsigned char cfg[4]; /* configuration registers */
const char *type; /* chip type */ const char *type; /* chip type */
......
...@@ -340,8 +340,6 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) ...@@ -340,8 +340,6 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
goto out_unmap; goto out_unmap;
} }
host->base = (unsigned long)base;
ecard_set_drvdata(ec, host); ecard_set_drvdata(ec, host);
info = (struct powertec_info *)host->hostdata; info = (struct powertec_info *)host->hostdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment