patch-2.4.0-test9 linux/drivers/scsi/sym53c8xx.c
Next file: linux/drivers/scsi/sym53c8xx.h
Previous file: linux/drivers/scsi/sym53c416.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Sep 19 08:31:53 2000
- Orig file:
v2.4.0-test8/linux/drivers/scsi/sym53c8xx.c
- Orig date:
Mon Jun 19 17:59:42 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/scsi/sym53c8xx.c linux/drivers/scsi/sym53c8xx.c
@@ -107,6 +107,7 @@
#define LinuxVersionCode(v, p, s) (((v)<<16)+((p)<<8)+(s))
+#include <linux/config.h>
#ifdef MODULE
#include <linux/module.h>
#endif
@@ -698,6 +699,9 @@
#elif defined(__alpha__)
# define pcivtobus(p) ((p) & 0xfffffffful)
# define memcpy_to_pci(a, b, c) memcpy_toio((a), (b), (c))
+#elif defined(CONFIG_PPC)
+# define pcivtobus(p) phys_to_bus(p)
+# define memcpy_to_pci(a, b, c) memcpy_toio((a), (b), (c))
#else /* others */
# define pcivtobus(p) (p)
# define memcpy_to_pci(a, b, c) memcpy_toio((a), (b), (c))
@@ -15059,7 +15063,5 @@
** Module stuff
*/
-#ifdef MODULE
-Scsi_Host_Template driver_template = SYM53C8XX;
+static Scsi_Host_Template driver_template = SYM53C8XX;
#include "scsi_module.c"
-#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)