patch-2.4.0-test3 linux/drivers/scsi/NCR53C9x.h

Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/scsi/NCR5380.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/scsi/NCR53C9x.h linux/drivers/scsi/NCR53C9x.h
@@ -144,7 +144,12 @@
 
 #ifndef MULTIPLE_PAD_SIZES
 
+#ifdef CONFIG_CPU_HAS_WB
+#include <asm/wbflush.h>
+#define esp_write(__reg, __val) do{(__reg) = (__val); wbflush();} while(0)
+#else
 #define esp_write(__reg, __val) ((__reg) = (__val))
+#endif
 #define esp_read(__reg) (__reg)
 
 struct ESP_regs {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)