diff options
Diffstat (limited to 'drivers/scsi/sym53c8xx_2')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 2 | ||||
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_hipd.c | 29 |
2 files changed, 18 insertions, 13 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 1fffd2b3c654..ec9d93aa160d 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -1874,7 +1874,7 @@ sym_init_device(struct pci_dev *pdev, struct sym_device *device) | |||
1874 | i = pci_get_base_address(pdev, 1, &device->mmio_base); | 1874 | i = pci_get_base_address(pdev, 1, &device->mmio_base); |
1875 | pci_get_base_address(pdev, i, &device->ram_base); | 1875 | pci_get_base_address(pdev, i, &device->ram_base); |
1876 | 1876 | ||
1877 | #ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED | 1877 | #ifdef CONFIG_SCSI_SYM53C8XX_MMIO |
1878 | if (device->mmio_base) | 1878 | if (device->mmio_base) |
1879 | device->s.ioaddr = pci_iomap(pdev, 1, | 1879 | device->s.ioaddr = pci_iomap(pdev, 1, |
1880 | pci_resource_len(pdev, 1)); | 1880 | pci_resource_len(pdev, 1)); |
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 60850cbe3a85..a95b262bbe89 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -973,8 +973,8 @@ static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, stru | |||
973 | * | 973 | * |
974 | * Has to be called with interrupts disabled. | 974 | * Has to be called with interrupts disabled. |
975 | */ | 975 | */ |
976 | #ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED | 976 | #ifdef CONFIG_SCSI_SYM53C8XX_MMIO |
977 | static int sym_regtest (struct sym_hcb *np) | 977 | static int sym_regtest(struct sym_hcb *np) |
978 | { | 978 | { |
979 | register volatile u32 data; | 979 | register volatile u32 data; |
980 | /* | 980 | /* |
@@ -992,20 +992,25 @@ static int sym_regtest (struct sym_hcb *np) | |||
992 | #endif | 992 | #endif |
993 | printf ("CACHE TEST FAILED: reg dstat-sstat2 readback %x.\n", | 993 | printf ("CACHE TEST FAILED: reg dstat-sstat2 readback %x.\n", |
994 | (unsigned) data); | 994 | (unsigned) data); |
995 | return (0x10); | 995 | return 0x10; |
996 | } | 996 | } |
997 | return (0); | 997 | return 0; |
998 | } | ||
999 | #else | ||
1000 | static inline int sym_regtest(struct sym_hcb *np) | ||
1001 | { | ||
1002 | return 0; | ||
998 | } | 1003 | } |
999 | #endif | 1004 | #endif |
1000 | 1005 | ||
1001 | static int sym_snooptest (struct sym_hcb *np) | 1006 | static int sym_snooptest(struct sym_hcb *np) |
1002 | { | 1007 | { |
1003 | u32 sym_rd, sym_wr, sym_bk, host_rd, host_wr, pc, dstat; | 1008 | u32 sym_rd, sym_wr, sym_bk, host_rd, host_wr, pc, dstat; |
1004 | int i, err=0; | 1009 | int i, err; |
1005 | #ifndef CONFIG_SCSI_SYM53C8XX_IOMAPPED | 1010 | |
1006 | err |= sym_regtest (np); | 1011 | err = sym_regtest(np); |
1007 | if (err) return (err); | 1012 | if (err) |
1008 | #endif | 1013 | return err; |
1009 | restart_test: | 1014 | restart_test: |
1010 | /* | 1015 | /* |
1011 | * Enable Master Parity Checking as we intend | 1016 | * Enable Master Parity Checking as we intend |
@@ -1094,7 +1099,7 @@ restart_test: | |||
1094 | err |= 4; | 1099 | err |= 4; |
1095 | } | 1100 | } |
1096 | 1101 | ||
1097 | return (err); | 1102 | return err; |
1098 | } | 1103 | } |
1099 | 1104 | ||
1100 | /* | 1105 | /* |