equal
deleted
inserted
replaced
54 #ifdef __KERNEL__ |
54 #ifdef __KERNEL__ |
55 #include <linux/types.h> |
55 #include <linux/types.h> |
56 #else |
56 #else |
57 #include <stdint.h> |
57 #include <stdint.h> |
58 #endif |
58 #endif |
|
59 |
|
60 /*****************************************************************************/ |
|
61 |
|
62 #define ECRT_VER_MAJOR 1U |
|
63 #define ECRT_VER_MINOR 2U |
|
64 |
|
65 #define ECRT_VERSION(a,b) (((a) << 8) + (b)) |
|
66 #define ECRT_VERSION_MAGIC ECRT_VERSION(ECRT_VER_MAJOR, ECRT_VER_MINOR) |
59 |
67 |
60 /*****************************************************************************/ |
68 /*****************************************************************************/ |
61 |
69 |
62 struct ec_master; |
70 struct ec_master; |
63 typedef struct ec_master ec_master_t; /**< \see ec_master */ |
71 typedef struct ec_master ec_master_t; /**< \see ec_master */ |
97 *****************************************************************************/ |
105 *****************************************************************************/ |
98 |
106 |
99 ec_master_t *ecrt_request_master(unsigned int master_index); |
107 ec_master_t *ecrt_request_master(unsigned int master_index); |
100 void ecrt_release_master(ec_master_t *master); |
108 void ecrt_release_master(ec_master_t *master); |
101 |
109 |
|
110 unsigned int ecrt_version_magic(void); |
|
111 |
102 /****************************************************************************** |
112 /****************************************************************************** |
103 * Master methods |
113 * Master methods |
104 *****************************************************************************/ |
114 *****************************************************************************/ |
105 |
115 |
106 void ecrt_master_callbacks(ec_master_t *master, int (*request_cb)(void *), |
116 void ecrt_master_callbacks(ec_master_t *master, int (*request_cb)(void *), |