mtd/include/linux/mtd cfi.h,1.31,1.32

acurtis at onz.com acurtis at onz.com
Thu Sep 5 01:15:35 EDT 2002


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv25376/include/linux/mtd

Modified Files:
	cfi.h 
Log Message:
Added 64-bit support

Index: cfi.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/cfi.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- cfi.h	7 Aug 2002 10:38:29 -0000	1.31
+++ cfi.h	5 Sep 2002 05:15:32 -0000	1.32
@@ -71,6 +71,14 @@
 /* pick the largest necessary */
 #ifdef CONFIG_MTD_CFI_B8
 typedef __u64 cfi_word;
+
+/* This only works if asm/io.h is included first */
+#ifndef __raw_readll
+#define __raw_readll(addr)	(*(volatile __u64 *)(addr))
+#endif
+#ifndef __raw_writell
+#define __raw_writell(v, addr)	(*(volatile __u64 *)(addr) = (v))
+#endif
 #define CFI_WORD_64
 #else  /* CONFIG_MTD_CFI_B8 */
 /* All others can use 32-bits. It's probably more efficient than





More information about the linux-mtd-cvs mailing list