X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/d8365e7fd56ca15c05502848338017013e628a9d..f82bd1d22c6e3c27e06ded96e89463888cff2b8e:/lincan/include/can_sysdep.h diff --git a/lincan/include/can_sysdep.h b/lincan/include/can_sysdep.h index 5b33971..7117044 100644 --- a/lincan/include/can_sysdep.h +++ b/lincan/include/can_sysdep.h @@ -30,8 +30,13 @@ /*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 @@ -179,6 +184,8 @@ #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*/