]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/can_sysdep.h
Added support for KVASER PCICAN-S/D/Q cards.
[lincan.git] / lincan / include / can_sysdep.h
index 56cfc4ed2ffcfbf20cfda693b460770ccbbd18a0..b719236c30d38e8af0c995e72b47a8ff343762d4 100644 (file)
 #include <asm/irq.h>
 #include <asm/uaccess.h>
 
+/*optional features*/
+#define CAN_ENABLE_KERN_FASYNC
+#define CAN_ENABLE_PCI_SUPPORT
+
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0))
 #include <linux/malloc.h>
 #else
 #include <linux/slab.h>
 #endif
 
+#ifdef CAN_ENABLE_PCI_SUPPORT
+#include "linux/pci.h"
+#endif /*CAN_ENABLE_PCI_SUPPORT*/
 
 /* Next is not sctrictly correct, because of 2.3.0, 2.3.1, 2.3.2
    kernels need next definitions  too */
@@ -92,8 +99,6 @@
   #define del_timer_sync del_timer
 #endif /* <2.4.0 */
 
-#define CAN_ENABLE_KERN_FASYNC
-
 #ifndef CAN_WITH_RTL
 /* Standard LINUX kernel */