projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3782b59
)
added typedef of dma_addr_t for earlier 2.2 kernels
author
Frank Mori Hess
<fmhess@speakeasy.net>
Fri, 3 May 2002 02:27:56 +0000
(
02:27
+0000)
committer
Frank 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]
patch
|
blob
diff --git a/include/asm/types.h
b/include/asm/types.h
new file mode 100644
(file)
index 0000000..
f20ca18
--- /dev/null
+++ b/
include/asm/types.h
@@ -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_
+