summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2002-12-01 02:27:17 -0800
committerJames Bottomley <jejb@raven.il.steeleye.com>2002-12-01 02:27:17 -0800
commit6506be2380c13734979cab5c06bf74068dbf0b96 (patch)
tree54b2bda89e77115004634ad445dd58157bdf73a1 /include
parent9649e47cf0547f101f75850db2474011e92572d6 (diff)
[PATCH] maintainer wants ifdefs left
Diffstat (limited to 'include')
-rw-r--r--include/net/irda/vlsi_ir.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/net/irda/vlsi_ir.h b/include/net/irda/vlsi_ir.h
index 3ce8cd6cd1e7..32d30cbc0920 100644
--- a/include/net/irda/vlsi_ir.h
+++ b/include/net/irda/vlsi_ir.h
@@ -27,6 +27,26 @@
#ifndef IRDA_VLSI_FIR_H
#define IRDA_VLSI_FIR_H
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4)
+#ifdef CONFIG_PROC_FS
+/* PDE() introduced in 2.5.4 */
+#define PDE(inode) ((inode)->u.generic_ip)
+#endif
+#endif
+
+/*
+ * #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,xx)
+ *
+ * missing pci-dma api call to give streaming dma buffer back to hw
+ * patch floating on lkml - probably present in 2.5.26 or later
+ * otherwise defining it as noop is ok, since the vlsi-ir is only
+ * used on two oldish x86-based notebooks which are cache-coherent
+ */
+#define pci_dma_prep_single(dev, addr, size, direction) /* nothing */
+/*
+ * #endif
+ */
+
/* ================================================================ */
/* non-standard PCI registers */