equal
deleted
inserted
replaced
82 struct ec_master { |
82 struct ec_master { |
83 unsigned int index; /**< master index */ |
83 unsigned int index; /**< master index */ |
84 unsigned int reserved; /**< non-zero, if the master is reserved for RT */ |
84 unsigned int reserved; /**< non-zero, if the master is reserved for RT */ |
85 |
85 |
86 ec_cdev_t cdev; /**< Master character device. */ |
86 ec_cdev_t cdev; /**< Master character device. */ |
|
87 struct class_device *class_device; /**< Master class device. */ |
87 |
88 |
88 ec_device_t main_device; /**< EtherCAT device */ |
89 ec_device_t main_device; /**< EtherCAT device */ |
89 const uint8_t *main_mac; /**< MAC address of main device */ |
90 const uint8_t *main_mac; /**< MAC address of main device */ |
90 ec_device_t backup_device; /**< EtherCAT backup device */ |
91 ec_device_t backup_device; /**< EtherCAT backup device */ |
91 const uint8_t *backup_mac; /**< MAC address of backup device */ |
92 const uint8_t *backup_mac; /**< MAC address of backup device */ |
165 |
166 |
166 /*****************************************************************************/ |
167 /*****************************************************************************/ |
167 |
168 |
168 // master creation/deletion |
169 // master creation/deletion |
169 int ec_master_init(ec_master_t *, unsigned int, const uint8_t *, |
170 int ec_master_init(ec_master_t *, unsigned int, const uint8_t *, |
170 const uint8_t *, dev_t); |
171 const uint8_t *, dev_t, struct class *); |
171 void ec_master_clear(ec_master_t *); |
172 void ec_master_clear(ec_master_t *); |
172 |
173 |
173 // mode transitions |
174 // mode transitions |
174 int ec_master_enter_idle_mode(ec_master_t *); |
175 int ec_master_enter_idle_mode(ec_master_t *); |
175 void ec_master_leave_idle_mode(ec_master_t *); |
176 void ec_master_leave_idle_mode(ec_master_t *); |