equal
deleted
inserted
replaced
25 * EtherCAT technology and brand is only permitted in compliance with the |
25 * EtherCAT technology and brand is only permitted in compliance with the |
26 * industrial property and similar rights of Beckhoff Automation GmbH. |
26 * industrial property and similar rights of Beckhoff Automation GmbH. |
27 * |
27 * |
28 *****************************************************************************/ |
28 *****************************************************************************/ |
29 |
29 |
|
30 #include <linux/version.h> |
30 #include <linux/module.h> |
31 #include <linux/module.h> |
31 #include <linux/timer.h> |
32 #include <linux/timer.h> |
32 #include <linux/semaphore.h> |
|
33 #include <linux/interrupt.h> |
33 #include <linux/interrupt.h> |
34 #include <linux/err.h> |
34 #include <linux/err.h> |
|
35 |
|
36 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) |
|
37 #include <linux/semaphore.h> |
|
38 #else |
|
39 #include <asm/semaphore.h> |
|
40 #endif |
35 |
41 |
36 #include "../../include/ecrt.h" // EtherCAT realtime interface |
42 #include "../../include/ecrt.h" // EtherCAT realtime interface |
37 |
43 |
38 /*****************************************************************************/ |
44 /*****************************************************************************/ |
39 |
45 |