diff options
Diffstat (limited to 'drivers/scsi/sym53c8xx_2')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 5 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.h | 1 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 7 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.h | 3 |
4 files changed, 3 insertions, 13 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index cbe31f2923bc..6e768c542225 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -1432,17 +1432,14 @@ static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt, | |||
1432 | np->mmio_ba = (u32)dev->mmio_base; | 1432 | np->mmio_ba = (u32)dev->mmio_base; |
1433 | np->s.ioaddr = dev->s.ioaddr; | 1433 | np->s.ioaddr = dev->s.ioaddr; |
1434 | np->s.ramaddr = dev->s.ramaddr; | 1434 | np->s.ramaddr = dev->s.ramaddr; |
1435 | np->s.io_ws = (np->features & FE_IO256) ? 256 : 128; | ||
1436 | 1435 | ||
1437 | /* | 1436 | /* |
1438 | * Map on-chip RAM if present and supported. | 1437 | * Map on-chip RAM if present and supported. |
1439 | */ | 1438 | */ |
1440 | if (!(np->features & FE_RAM)) | 1439 | if (!(np->features & FE_RAM)) |
1441 | dev->ram_base = 0; | 1440 | dev->ram_base = 0; |
1442 | if (dev->ram_base) { | 1441 | if (dev->ram_base) |
1443 | np->ram_ba = (u32)dev->ram_base; | 1442 | np->ram_ba = (u32)dev->ram_base; |
1444 | np->ram_ws = (np->features & FE_RAM8K) ? 8192 : 4096; | ||
1445 | } | ||
1446 | 1443 | ||
1447 | if (sym_hcb_attach(instance, fw, dev->nvram)) | 1444 | if (sym_hcb_attach(instance, fw, dev->nvram)) |
1448 | goto attach_failed; | 1445 | goto attach_failed; |
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.h b/drivers/scsi/sym53c8xx_2/sym_glue.h index b961f704ccb1..ab2de1ca9438 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.h +++ b/drivers/scsi/sym53c8xx_2/sym_glue.h | |||
@@ -184,7 +184,6 @@ struct sym_shcb { | |||
184 | 184 | ||
185 | void __iomem * ioaddr; /* MMIO kernel io address */ | 185 | void __iomem * ioaddr; /* MMIO kernel io address */ |
186 | void __iomem * ramaddr; /* RAM kernel io address */ | 186 | void __iomem * ramaddr; /* RAM kernel io address */ |
187 | u_short io_ws; /* IO window size */ | ||
188 | 187 | ||
189 | struct timer_list timer; /* Timer handler link header */ | 188 | struct timer_list timer; /* Timer handler link header */ |
190 | u_long lasttime; | 189 | u_long lasttime; |
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 5443394a60e5..39f84bbe6856 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -1910,7 +1910,7 @@ void sym_start_up (struct sym_hcb *np, int reason) | |||
1910 | if (sym_verbose >= 2) | 1910 | if (sym_verbose >= 2) |
1911 | printf("%s: Downloading SCSI SCRIPTS.\n", sym_name(np)); | 1911 | printf("%s: Downloading SCSI SCRIPTS.\n", sym_name(np)); |
1912 | memcpy_toio(np->s.ramaddr, np->scripta0, np->scripta_sz); | 1912 | memcpy_toio(np->s.ramaddr, np->scripta0, np->scripta_sz); |
1913 | if (np->ram_ws == 8192) { | 1913 | if (np->features & FE_RAM8K) { |
1914 | memcpy_toio(np->s.ramaddr + 4096, np->scriptb0, np->scriptb_sz); | 1914 | memcpy_toio(np->s.ramaddr + 4096, np->scriptb0, np->scriptb_sz); |
1915 | phys = scr_to_cpu(np->scr_ram_seg); | 1915 | phys = scr_to_cpu(np->scr_ram_seg); |
1916 | OUTL(np, nc_mmws, phys); | 1916 | OUTL(np, nc_mmws, phys); |
@@ -5595,16 +5595,13 @@ int sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram | |||
5595 | np->scriptz_ba = vtobus(np->scriptz0); | 5595 | np->scriptz_ba = vtobus(np->scriptz0); |
5596 | 5596 | ||
5597 | if (np->ram_ba) { | 5597 | if (np->ram_ba) { |
5598 | np->scripta_ba = np->ram_ba; | 5598 | np->scripta_ba = np->ram_ba; |
5599 | if (np->features & FE_RAM8K) { | 5599 | if (np->features & FE_RAM8K) { |
5600 | np->ram_ws = 8192; | ||
5601 | np->scriptb_ba = np->scripta_ba + 4096; | 5600 | np->scriptb_ba = np->scripta_ba + 4096; |
5602 | #if 0 /* May get useful for 64 BIT PCI addressing */ | 5601 | #if 0 /* May get useful for 64 BIT PCI addressing */ |
5603 | np->scr_ram_seg = cpu_to_scr(np->scripta_ba >> 32); | 5602 | np->scr_ram_seg = cpu_to_scr(np->scripta_ba >> 32); |
5604 | #endif | 5603 | #endif |
5605 | } | 5604 | } |
5606 | else | ||
5607 | np->ram_ws = 4096; | ||
5608 | } | 5605 | } |
5609 | 5606 | ||
5610 | /* | 5607 | /* |
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.h b/drivers/scsi/sym53c8xx_2/sym_hipd.h index b8908e10162a..f76b27f0aa2c 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.h +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.h | |||
@@ -883,10 +883,7 @@ struct sym_hcb { | |||
883 | * Physical bus addresses of the chip. | 883 | * Physical bus addresses of the chip. |
884 | */ | 884 | */ |
885 | u32 mmio_ba; /* MMIO 32 bit BUS address */ | 885 | u32 mmio_ba; /* MMIO 32 bit BUS address */ |
886 | int mmio_ws; /* MMIO Window size */ | ||
887 | |||
888 | u32 ram_ba; /* RAM 32 bit BUS address */ | 886 | u32 ram_ba; /* RAM 32 bit BUS address */ |
889 | int ram_ws; /* RAM window size */ | ||
890 | 887 | ||
891 | /* | 888 | /* |
892 | * SCRIPTS virtual and physical bus addresses. | 889 | * SCRIPTS virtual and physical bus addresses. |