#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 */
#define del_timer_sync del_timer
#endif /* <2.4.0 */
-#define CAN_ENABLE_KERN_FASYNC
-
#ifndef CAN_WITH_RTL
/* Standard LINUX kernel */