X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/1a22ac61861ab5e4ab8cde38503832fbc8fbc818..2c5dbee366e95b46de0cb95cab23d2a94a13f184:/lincan/include/can_sysdep.h diff --git a/lincan/include/can_sysdep.h b/lincan/include/can_sysdep.h index 56cfc4e..b719236 100644 --- a/lincan/include/can_sysdep.h +++ b/lincan/include/can_sysdep.h @@ -27,12 +27,19 @@ #include #include +/*optional features*/ +#define CAN_ENABLE_KERN_FASYNC +#define CAN_ENABLE_PCI_SUPPORT + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) #include #else #include #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 */