equal
deleted
inserted
replaced
45 #include <linux/sysfs.h> |
45 #include <linux/sysfs.h> |
46 #include <linux/timer.h> |
46 #include <linux/timer.h> |
47 |
47 |
48 #include "device.h" |
48 #include "device.h" |
49 #include "domain.h" |
49 #include "domain.h" |
|
50 #include "xmldev.h" |
50 #include "fsm.h" |
51 #include "fsm.h" |
51 |
52 |
52 /*****************************************************************************/ |
53 /*****************************************************************************/ |
53 |
54 |
54 /** |
55 /** |
96 |
97 |
97 struct kobject kobj; /**< kobject */ |
98 struct kobject kobj; /**< kobject */ |
98 |
99 |
99 ec_device_t *device; /**< EtherCAT device */ |
100 ec_device_t *device; /**< EtherCAT device */ |
100 |
101 |
|
102 ec_xmldev_t xmldev; /**< XML character device */ |
|
103 |
101 ec_fsm_t fsm; /**< master state machine */ |
104 ec_fsm_t fsm; /**< master state machine */ |
102 ec_master_mode_t mode; /**< master mode */ |
105 ec_master_mode_t mode; /**< master mode */ |
103 |
106 |
104 struct list_head slaves; /**< list of slaves on the bus */ |
107 struct list_head slaves; /**< list of slaves on the bus */ |
105 unsigned int slave_count; /**< number of slaves on the bus */ |
108 unsigned int slave_count; /**< number of slaves on the bus */ |
134 }; |
137 }; |
135 |
138 |
136 /*****************************************************************************/ |
139 /*****************************************************************************/ |
137 |
140 |
138 // master creation and deletion |
141 // master creation and deletion |
139 int ec_master_init(ec_master_t *, unsigned int, unsigned int); |
142 int ec_master_init(ec_master_t *, unsigned int, unsigned int, dev_t); |
140 void ec_master_clear(struct kobject *); |
143 void ec_master_clear(struct kobject *); |
141 void ec_master_reset(ec_master_t *); |
144 void ec_master_reset(ec_master_t *); |
142 |
145 |
143 // free run |
146 // free run |
144 void ec_master_idle_start(ec_master_t *); |
147 void ec_master_idle_start(ec_master_t *); |