added typedef of dma_addr_t for earlier 2.2 kernels
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 3 May 2002 02:27:56 +0000 (02:27 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 3 May 2002 02:27:56 +0000 (02:27 +0000)
include/asm/types.h [new file with mode: 0644]

diff --git a/include/asm/types.h b/include/asm/types.h
new file mode 100644 (file)
index 0000000..f20ca18
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * asm/types.h compatibility header
+ */
+
+#ifndef __COMPAT_ASM_TYPES_H_
+#define __COMPAT_ASM_TYPES_H_
+
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
+typedef unsigned long dma_addr_t;
+#endif
+
+#include_next <asm/types.h>
+
+#endif // __COMPAT_ASM_TYPES_H_
+