]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/include/can_sysdep.h
Added option for VME bus support
[lincan.git] / lincan / include / can_sysdep.h
index 5b33971292dc6e9061582317fdea0f6e8146b989..71170446c02a62aaf998255c68604d246b0ad0c6 100644 (file)
 /*optional features*/
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0))
 #define CAN_ENABLE_KERN_FASYNC
+#ifdef CONFIG_PCI
 #define CAN_ENABLE_PCI_SUPPORT
 #endif
+#ifdef CONFIG_OC_LINCAN_VME
+#define CAN_ENABLE_VME_SUPPORT
+#endif
+#endif
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0))
 #include <linux/malloc.h>
 #define can_set_rtl_file_private_data(fptr, p) do{ fptr->f_minor=(long)(p); } while(0)
 #define can_get_rtl_file_private_data(fptr) ((void*)((fptr)->f_minor))
 
+extern can_spinlock_t can_irq_manipulation_lock;
+
 #endif /*CAN_WITH_RTL*/
 
 #endif /*_CAN_SYSDEP_H*/