102 unsigned int slave_count; /**< number of slaves on the bus */ |
102 unsigned int slave_count; /**< number of slaves on the bus */ |
103 |
103 |
104 struct list_head configs; /**< Bus configuration list. */ |
104 struct list_head configs; /**< Bus configuration list. */ |
105 unsigned int configs_attached; /**< Slave configurations were attached. */ |
105 unsigned int configs_attached; /**< Slave configurations were attached. */ |
106 |
106 |
107 ec_request_state_t scan_state; /**< current scanning state */ |
107 unsigned int scan_busy; /**< Current scan state. */ |
108 unsigned int allow_scan; /**< non-zero, if slave scanning is allowed */ |
108 unsigned int allow_scan; /**< non-zero, if slave scanning is allowed */ |
109 struct semaphore scan_sem; /**< semaphore protecting the scan_state |
109 struct semaphore scan_sem; /**< semaphore protecting the scan_state |
110 variable and the allow_scan flag */ |
110 variable and the allow_scan flag */ |
111 wait_queue_head_t scan_queue; /**< queue for processes that wait for |
111 wait_queue_head_t scan_queue; /**< queue for processes that wait for |
112 slave scanning */ |
112 slave scanning */ |
113 |
113 |
114 ec_request_state_t config_state; /**< state of slave configuration */ |
114 unsigned int config_busy; /**< State of slave configuration. */ |
115 unsigned int allow_config; /**< non-zero, if slave scanning is allowed */ |
115 unsigned int allow_config; /**< non-zero, if slave scanning is allowed */ |
116 struct semaphore config_sem; /**< semaphore protecting the config_state |
116 struct semaphore config_sem; /**< semaphore protecting the config_state |
117 variable and the allow_config flag */ |
117 variable and the allow_config flag */ |
118 wait_queue_head_t config_queue; /**< queue for processes that wait for |
118 wait_queue_head_t config_queue; /**< queue for processes that wait for |
119 slave configuration */ |
119 slave configuration */ |
123 |
123 |
124 struct list_head domains; /**< list of domains */ |
124 struct list_head domains; /**< list of domains */ |
125 |
125 |
126 int debug_level; /**< master debug level */ |
126 int debug_level; /**< master debug level */ |
127 ec_stats_t stats; /**< cyclic statistics */ |
127 ec_stats_t stats; /**< cyclic statistics */ |
128 unsigned int pdo_slaves_offline; /**< number of slaves, for which Pdos |
|
129 were registered and that are offline |
|
130 (used for bus status) */ |
|
131 unsigned int frames_timed_out; /**< there were frame timeouts in the last |
128 unsigned int frames_timed_out; /**< there were frame timeouts in the last |
132 call to ecrt_master_receive() */ |
129 call to ecrt_master_receive() */ |
133 |
130 |
134 int thread_id; /**< master thread PID */ |
131 int thread_id; /**< master thread PID */ |
135 struct completion thread_exit; /**< thread completion object */ |
132 struct completion thread_exit; /**< thread completion object */ |