patch-2.1.93 linux/drivers/scsi/ncr53c8xx.h
Next file: linux/drivers/scsi/pci2000.c
Previous file: linux/drivers/scsi/ncr53c8xx.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Apr 6 11:51:23 1998
- Orig file:
v2.1.92/linux/drivers/scsi/ncr53c8xx.h
- Orig date:
Fri Feb 6 15:33:40 1998
diff -u --recursive --new-file v2.1.92/linux/drivers/scsi/ncr53c8xx.h linux/drivers/scsi/ncr53c8xx.h
@@ -161,6 +161,8 @@
#define SCSI_NCR_IOMAPPED
#elif defined(__alpha__) || defined(__powerpc__)
#define SCSI_NCR_IOMAPPED
+#elif defined(__sparc__)
+#undef SCSI_NCR_IOMAPPED
#endif
/*
@@ -347,13 +349,18 @@
#error "BIG ENDIAN byte ordering needs kernel version >= 2.1.0"
#endif
-#ifdef __powerpc__
+#if defined(__powerpc__)
#define inw_l2b inw
#define inl_l2b inl
#define outw_b2l outw
#define outl_b2l outl
+#elif defined(__sparc__)
+#define readw_l2b readw
+#define readl_l2b readl
+#define writew_b2l writew
+#define writel_b2l writel
#else
-#error "Support for BIG ENDIAN is only available for the PowerPC"
+#error "Support for BIG ENDIAN is only available for PowerPC and SPARC"
#endif
#else /* Assumed x86 or alpha */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov