Commit Graph

1164 Commits

Author SHA1 Message Date
Florian Pose 6ad6b0cb0b Fixed possible race with next request pointer again. 2007-03-02 08:45:21 +00:00
Florian Pose d2094a18e5 Fixed possible bug in master FSM concerning unqueueing of EEPROM write
requests.
2007-03-02 07:45:00 +00:00
Florian Pose 2ec4d25fce Introduced EEPROM write requests: EEPROM write operations from user
space are now queued and block until completion. Also, appropriate error
codes are returned.
2007-03-01 21:34:10 +00:00
Florian Pose e1315d14f4 Made data pointer in ec_fsm_sii_write() const. 2007-03-01 21:23:07 +00:00
Florian Pose 04056ce182 ec_slave_write_eeprom now returns certain error codes. 2007-03-01 15:03:08 +00:00
Florian Pose 9afbed92d2 Removed eeprom_write_enable file. 2007-03-01 14:50:53 +00:00
Florian Pose e3412a4c2f Completely removed ecrt_slave_pdo_size() code. 2007-02-28 09:22:03 +00:00
Florian Pose 53c66dad4f Added datagram state to "Failed to receive..." messages. 2007-02-22 13:39:19 +00:00
Florian Pose 7e373ee0c9 Removed faulty polling before device->open(). 2007-02-22 09:19:02 +00:00
Florian Pose 7b59f69823 Destroy slaves when leaving idle mode. 2007-02-21 13:43:47 +00:00
Florian Pose 6c08745e55 Made master devices persistent; added ec_device_attach() and ec_device_detach(). 2007-02-20 17:15:43 +00:00
Florian Pose b1a770729c Removed ktype for module kobject; added backup device for master; device
connection information and IDs in master info file.
2007-02-20 13:42:44 +00:00
Florian Pose 046d9e7cd5 Added ec_device_id_print(). 2007-02-20 13:40:30 +00:00
Florian Pose 27f9a4af2d New module file /sys/ethercat, masters moved to /sys/ethercat/masterX. 2007-02-20 11:28:15 +00:00
Florian Pose 383a1f7631 Layed out device ID functionality in own files. 2007-02-20 09:43:23 +00:00
Florian Pose afd188c829 Minor change in device.c (removed unused header). 2007-02-20 09:37:57 +00:00
Florian Pose 0f53f8fa3e Introduced device IDs; removed comment lines from 8139too; removed
ec_eoeif_count parameter.
2007-02-16 17:13:39 +00:00
Florian Pose cef0cc6409 Removed ec_eoeif_count parameter from master module. 2007-02-16 13:30:46 +00:00
Florian Pose 2cbddbb9d1 Removed XML device from master structure. 2007-02-16 13:23:57 +00:00
Florian Pose e643409867 Made ec_sync_config() and ec_fmmu_config() to methods of ec_slave_t. 2007-02-13 11:48:46 +00:00
Florian Pose 8e2a5258cc Introduced topology_change_pending to delay bus scanning until IDLE mode
has been reached.
2007-02-13 10:51:40 +00:00
Florian Pose 9a5fcf81f7 Minor: Removed warning when EoE interface is up upon master unloading. 2007-02-12 14:42:36 +00:00
Florian Pose 9a9e5d719c Fixed bug causing unloading of realtime module being very slow after topology change. 2007-02-12 11:15:23 +00:00
Florian Pose 6d74555dad schedule() other processes while waiting in ec_master_sync_io(). 2007-02-12 11:12:00 +00:00
Florian Pose 3b4c23a436 Ignore queued datagrams while waiting in ec_master_sync_io(). 2007-02-12 10:39:52 +00:00
Florian Pose 7f322ac764 Added EXPORT macro for ecrt_version_magic(). 2007-02-09 18:29:16 +00:00
Florian Pose 80566cd979 Introduced ECRT version magic. 2007-02-09 10:23:13 +00:00
Florian Pose 5f7ac3aa85 Minor changes in master thread messages. 2007-02-09 10:04:05 +00:00
Florian Pose df9f71f93d Fixed invalid module pointer in device structure. 2007-02-09 09:52:43 +00:00
Florian Pose f2c447a006 Fixed bug that caused the last slave not to be scanned. 2007-02-06 15:13:51 +00:00
Florian Pose 9a53bf1aa6 Fixed modules_install target: create dir before copying. 2007-01-12 15:18:11 +00:00
Florian Pose 291d63856b Replaced ec_isr_t by ec_pollfunc_t; added poll function s in network drivers. 2007-01-12 14:28:33 +00:00
Florian Pose d5cd924844 Warn on duplicate master releasing. 2007-01-12 12:10:09 +00:00
Florian Pose cde396cdc2 Fixed bug in master state machine that came up in r745. 2007-01-12 12:09:38 +00:00
Florian Pose 413fdbb006 Minor fix on master.c (name of master thread). 2007-01-10 16:34:42 +00:00
Florian Pose df1cc1d939 Layed out slave state machines in own files fsm_slave.[ch]; renamed fsm.[ch] to fsm_master.[ch] 2007-01-10 16:32:06 +00:00
Florian Pose ba97994717 Added some documentation. 2007-01-10 10:58:49 +00:00
Florian Pose 16684ccffd Minor changes to slave.c 2007-01-10 10:51:43 +00:00
Florian Pose ea7e0ca982 Master workqueue replaced with kernel thread. 2007-01-10 10:45:57 +00:00
Florian Pose 81acf0c368 Fixed blocking of EoE processing while entering or leaving operational mode. 2007-01-09 14:51:00 +00:00
Florian Pose 9ff5f1348b Re-added slave.configured flag as slave.self_configured. 2007-01-09 14:36:08 +00:00
Florian Pose 3123861960 Removed debug messages again. 2007-01-09 14:19:37 +00:00
Florian Pose cda48ab659 Temporarily added some debug information. 2007-01-09 14:12:37 +00:00
Florian Pose ec252a2df6 Removed slave.configured flag. 2007-01-09 13:57:34 +00:00
Florian Pose 5d927adad9 Display requested state in slave info. 2007-01-09 13:42:38 +00:00
Florian Pose 4dc453ef55 Fixed race: Stop EoE processing when entering or leaving operation mode. 2007-01-09 12:56:03 +00:00
Florian Pose 8f51b59d3e Minor fix in master.c 2007-01-08 15:15:17 +00:00
Florian Pose ed70ae4999 Internal locking callbacks, improved locking. 2007-01-08 15:01:18 +00:00
Florian Pose 680c2146f2 Datagram preallocation with ATOMIC flag, because it is calles in timer context. 2007-01-08 14:24:33 +00:00
Florian Pose 03c3e13bf9 Removed datagram.cycles_queued, needed for "starved" datagrams (deprecated). 2007-01-08 08:23:18 +00:00
Florian Pose 54b06ceb6f State machines re-send datagrams on timeout. 2006-12-18 18:10:52 +00:00
Florian Pose 6fcaaff11b Improved error messages in mailbox.c 2006-12-18 17:53:29 +00:00
Florian Pose 0c3d8c8ce1 Fixed warnings in master.c. 2006-12-18 11:51:43 +00:00
Florian Pose 7edbaa7ec7 Fixed typo in CoE FSM. 2006-12-18 11:48:48 +00:00
Florian Pose fc6917709a Corrected error messages in get_slave(). 2006-12-18 11:00:26 +00:00
Florian Pose b00258a4d8 Current consumption in sysfs; "lsec -c" shows current consumption and remaining current. 2006-12-08 11:52:33 +00:00
Florian Pose 3f8978f998 Re-introduced ecdev_open() and ecdev_close(), to avoid a race condition regarding the link state. 2006-12-08 11:39:56 +00:00
Florian Pose b3de249e28 Fixed lost frames display bug when no frames were sent. 2006-11-24 11:09:36 +00:00
Florian Pose c0f6188104 Interface changes for version 1.2, see NEWS file. 2006-11-24 11:02:35 +00:00
Florian Pose ded638c296 Version 1.2.0-rc1, re-introduced ecrt_domain_queue(). 2006-11-23 20:19:26 +00:00
Florian Pose 2568ef35d1 Added frame counter. 2006-11-21 15:46:21 +00:00
Florian Pose bae7fb4e90 Introduced "starved" datagrams. 2006-11-21 15:13:48 +00:00
Florian Pose daa10ed44a Updated source code documentation. 2006-11-07 13:38:40 +00:00
Florian Pose 026dc769d3 Improved autotools, added config.kbuild, --with-msr-dir, --with-rtai-dir, --with-8139too-kernel. 2006-11-06 16:27:40 +00:00
Florian Pose e3b241a79a kobject_add() in constructors. 2006-11-06 14:22:35 +00:00
Florian Pose 1999d5d4a0 Minor change in master.c. 2006-11-06 14:21:35 +00:00
Florian Pose 286825d02a Added clear function for SDO kobject. 2006-11-06 14:19:03 +00:00
Florian Pose a71ecdabdd Fixed workqueue cancelling. 2006-11-06 14:15:21 +00:00
Florian Pose 05557b7766 Fix: Configuration of process data sync managers now in PREOP. 2006-11-03 15:35:31 +00:00
Florian Pose f9f2b40b65 Improved installation, added quick modules_install target. 2006-11-03 14:18:05 +00:00
Florian Pose 9f6d10e2b8 Fixed CoE Upload Request, now 10 bytes of Mailbox Service Data. 2006-11-03 12:18:37 +00:00
Florian Pose 02c7006f24 Allow CoE requests, even if slave has error flag set. 2006-11-03 12:17:22 +00:00
Florian Pose 2b0041da50 Fixed debug interfaces. 2006-10-31 15:32:57 +00:00
Florian Pose cbe660aa68 Fixed EEPROM writing. 2006-10-31 14:25:01 +00:00
Florian Pose b67bbd398a Fixed state change FSM again. 2006-10-31 11:12:50 +00:00
Florian Pose 9c59a83aca Remove estimated sync manager sizes when leaving operation mode. 2006-10-30 15:39:03 +00:00
Florian Pose d301450949 BUGFIX: Remove SDO configurations when leaving OPERATION mode. 2006-10-27 15:04:12 +00:00
Florian Pose 4b9ee9b959 SDO configurations in Sysfs. 2006-10-27 15:01:32 +00:00
Florian Pose ab80d57c03 New state in slaveconf FSM: Clear FMMU configurations after INIT. 2006-10-27 14:41:09 +00:00
Florian Pose 1f44556083 Print certain warnings only at debug_level. 2006-10-27 13:59:49 +00:00
Florian Pose b53d42b6e3 Minor output changes in ethernet.c 2006-10-27 13:58:14 +00:00
Florian Pose fa99dfa321 Print certain logs only at debug_level. 2006-10-27 13:31:26 +00:00
Florian Pose 7a114fdb9d Added slave flags to Sysfs. 2006-10-27 13:20:16 +00:00
Florian Pose 1154f9294d Explicit use of slave configuration FSM in ecrt_master_activate() and ecrt_master_release(). 2006-10-27 12:45:22 +00:00
Florian Pose dcb9f67263 Minor output changes in master/debug.c. 2006-10-27 12:43:20 +00:00
Florian Pose fb9c619686 State acknowledgement in master state machine. 2006-10-27 11:15:07 +00:00
Florian Pose 2a90bd26da Changed output of ec_state_string() for error flag to "+ ERROR". 2006-10-27 10:41:02 +00:00
Florian Pose 0573bbce4d Moved functionality of ecrt_master_deactivate() (now deprecated) to ecrt_master_release(). 2006-10-27 09:29:46 +00:00
Florian Pose 131589f534 FIX: Introduced destroy() functions for kobject-derived classes and thus fixed memory leak. 2006-10-27 09:19:58 +00:00
Florian Pose b6e88ad403 Persistent slave lists. 2006-10-26 16:29:26 +00:00
Florian Pose 66f345ae29 Minor changes in Kbuild files. 2006-10-25 16:53:17 +00:00
Florian Pose 4fbd230e2b Compiler flag -DSVNREV only for module.c to avoid unnecessary recompiling. 2006-10-25 16:49:53 +00:00
Florian Pose e5a176ba9b Fixes in state change FSM. 2006-10-25 13:32:17 +00:00
Florian Pose 1a75b5c32a SDO dictionary and SDO access only in IDLE mode, because of kmalloc()s. 2006-10-25 07:41:14 +00:00
Florian Pose 5ae68fa1db SDO uploading via Sysfs without master FSM calling wake_up(). 2006-10-24 15:14:25 +00:00
Florian Pose b25fdd525b Increased state change checking timeout to 1s. 2006-10-24 10:37:05 +00:00
Florian Pose 4db2d27655 Output state names instead of codes in change FSM. 2006-10-24 08:41:39 +00:00
Florian Pose 6d7f65a072 Minot output changes in fsm.c 2006-10-24 08:09:42 +00:00
Florian Pose fb556ebefd Layed out CoE state machine. 2006-10-24 08:00:24 +00:00
Florian Pose daf2544626 Removed state machine running() methods. 2006-10-23 14:00:58 +00:00
Florian Pose 3b431ec5c4 Layed out state change state machine. 2006-10-23 13:45:09 +00:00
Florian Pose dd11743497 Layed out SII state machine. 2006-10-23 12:59:42 +00:00
Florian Pose a04ef48976 Minor Makefile changes. 2006-10-20 15:35:15 +00:00
Florian Pose af837c7717 Improved output at mailbox error. 2006-10-20 13:15:19 +00:00
Florian Pose 93658f687b Implemented SDO reading via Sysfs. 2006-10-20 13:05:48 +00:00
Florian Pose 2dc4d186c3 Always begin with subindex 0 while fetching SDO dictionary. 2006-10-20 13:03:01 +00:00
Florian Pose e6b2b80be5 Set initial state of all slaves to PREOP. 2006-10-20 12:57:09 +00:00
Florian Pose c782b9166c Added EC_WAIT_SDO_DICT define. 2006-10-20 12:54:32 +00:00
Florian Pose 0260f9a080 Fixed bug in master state machine. 2006-10-20 12:50:28 +00:00
Florian Pose e5ee925558 Better debugging output for SDO dictionaries. 2006-10-20 12:45:06 +00:00
Florian Pose d549cc4c2c Display debug data on mailbox error. 2006-10-20 12:41:22 +00:00
Florian Pose cd884f45d0 Better debugging output for SDO dictionaries. 2006-10-20 12:33:48 +00:00
Florian Pose 9fd6548b84 Minor output changes in fsm.c 2006-10-20 12:19:20 +00:00
Florian Pose c800b84949 Reconfiguration of slaves, though they are in the correct state at startup. 2006-10-20 10:48:30 +00:00
Florian Pose ce9cf72367 Guess sync manager settings if mailbox information available. 2006-10-20 10:05:52 +00:00
Florian Pose e33b75b2b5 Moved SDO dictionary fetching to master FSMs; added SDO parent kobj. 2006-10-19 14:23:24 +00:00
Florian Pose 7642448f62 Fixed memory leak in master and slave destructors. 2006-10-19 14:05:56 +00:00
Florian Pose 5d90e96f72 ecrt_domain_register_pdo_range() implemented. 2006-10-18 13:11:48 +00:00
Florian Pose 95e186804e Do net reset debug level on master reset. 2006-10-18 13:10:06 +00:00
Florian Pose 6d2d0b6674 Added enable bit to sync manager debugging. 2006-10-18 12:34:00 +00:00
Florian Pose 3edfc24f83 Improved SM and FMMU debugging output. 2006-10-18 12:04:24 +00:00
Florian Pose dafb6721a3 Added FMMU debugging. 2006-10-18 11:50:31 +00:00
Florian Pose e3a571e08d Fixed typo. 2006-10-18 10:30:34 +00:00
Florian Pose 41a6b5bfee Added ec_slave_validate() 2006-10-18 08:59:53 +00:00
Florian Pose 25964ccc9a Implemented fetching of SDO dictionary. 2006-10-17 14:50:04 +00:00
Florian Pose d430dec17c Minor output changes in master.c 2006-10-17 14:37:46 +00:00
Florian Pose 7dcc0827f1 BUGFIX: Fixed faulty state acknowledge behavior. 2006-10-17 14:36:53 +00:00
Florian Pose 6ede67c31d Fixed typo. 2006-10-17 14:24:24 +00:00
Florian Pose 900cc231e3 Renamed fsm->sdodata to fsm->coe_sdodata 2006-10-17 14:22:19 +00:00
Florian Pose 9c7dd75ed9 Removed clear functions from headers of kobject-classes. 2006-10-17 14:19:59 +00:00
Florian Pose 3dc90146fd Added EC_SLAVE_STATE_ACK_ERR to ec_state_string(); added EC_STATE_STRING_SIZE 2006-10-17 14:15:48 +00:00
Florian Pose 9f751d8e72 Renamed EC_ACK to EC_SLAVE_STATE_ACK_ERR 2006-10-17 14:10:29 +00:00
Florian Pose d8bfe9569d Removed varsized_fields II 2006-10-17 07:30:01 +00:00
Florian Pose 1c3ada4e59 Corrected subbus product code. 2006-10-17 07:27:05 +00:00
Florian Pose e0a3174a9b Removed varsized_fields 2006-10-17 07:25:13 +00:00
Florian Pose 302c2e77c7 Fixed serveral races while starting up under high CPU load. 2006-10-16 14:38:14 +00:00
Florian Pose 459e7f391c Serveral changes to avoid timeouts under high CPU load. 2006-10-16 09:07:49 +00:00
Florian Pose 0c8d3e94c3 Minor output changes. 2006-10-16 08:03:28 +00:00
Florian Pose ae32682925 BUGFIX: Added returns after timeout in SII state machine. 2006-10-13 20:44:23 +00:00
Florian Pose 0c02680146 Added ec_slave_has_subbus() 2006-10-13 09:45:22 +00:00
Florian Pose d916522200 Debug interfaces not compiled by default. 2006-10-13 09:38:23 +00:00
Florian Pose 57dbce8626 Removed additional loop in coe_down FSM; renamed mbox_type to mbox_prot. 2006-10-13 09:05:45 +00:00
Florian Pose 11fb5104f0 Fixed mailbox bug, added mailbox error codes. 2006-10-12 13:49:01 +00:00
Florian Pose 77205fa563 Improved autotools files. 2006-10-09 14:43:20 +00:00
Richard Hacker f9b50c6654 Added file ./bootstrap; Added $(DESTDIR) to */Makefile.am make alternate root installs possible 2006-10-09 12:59:09 +00:00
Florian Pose e1a854722a No bus time measuring on device registration. 2006-09-28 13:24:44 +00:00
Florian Pose 2303af54b2 Altered master version string. 2006-09-28 13:22:43 +00:00
Florian Pose 302b826fe1 Fixed race on duplicate device registering or device unregistering while requesting master. 2006-09-28 12:58:06 +00:00
Florian Pose 541ae381cb Replaced master's reserved flag by atomic_t available. 2006-09-26 16:34:24 +00:00
Florian Pose e63c611a0f Changes in ecrt_request_master(); minor output changes. 2006-09-26 16:16:13 +00:00
Florian Pose 12afcedc0a Autotools "--with-linux" switch; "mydist" target 2006-09-25 14:13:23 +00:00
Florian Pose aa8b2b6e90 Added SVN revision to distribution. 2006-09-25 12:11:05 +00:00
Florian Pose c58df7a0dd EtherCAT master with Autotools. 2006-09-25 10:24:44 +00:00
Florian Pose b662560ff2 Bugfix: ecrt_domain_state() always returned -1. 2006-09-23 10:56:02 +00:00
Florian Pose 08dabebba4 Allow only one open() on XML device. 2006-09-19 14:08:31 +00:00
Florian Pose e594f09d72 Introduced per-master character devices for XML descriptions. 2006-09-19 13:28:40 +00:00
Florian Pose 46b98fdbb1 Coupler information in slave info file, lines in lsec. 2006-09-11 08:52:41 +00:00
Florian Pose 024460b94b Compile/Version info in sysconfig master info file. 2006-09-08 12:51:04 +00:00
Florian Pose e4b401063b Fixed bug in data pointer calculation. 2006-08-31 16:29:15 +00:00
Florian Pose c30ed6a8c1 Removed unused code. 2006-08-15 09:36:56 +00:00
Florian Pose ac6458d2c9 Removed delayed datagram statistics. 2006-08-15 09:22:22 +00:00
Florian Pose ff83e87344 Improved datagram reception in sync_io and frame dequeuing. 2006-08-15 08:48:00 +00:00
Florian Pose dfc4089c4c Replaced longer cycle timestamps with jiffies. 2006-08-15 08:09:18 +00:00
Florian Pose 7aa7a95c2e Added missing code documentation. 2006-08-09 15:00:20 +00:00
Florian Pose 2fb55f48c7 Added EoE rate in KB/s to master info. 2006-08-08 13:06:36 +00:00
Florian Pose 719b7b7c9c Fixed EoE debugging. 2006-08-08 13:06:02 +00:00
Florian Pose aaea721316 Minor changes. 2006-08-08 12:07:25 +00:00
Florian Pose 40745b789e New transition in slave conf state machine: Skip fmmu and SDO configuration. 2006-08-05 07:11:59 +00:00
Florian Pose 8a6172d8f2 Minor output fix. 2006-08-04 15:37:46 +00:00
Florian Pose 337d7f763b EoE rate statistics. 2006-08-04 15:31:12 +00:00
Florian Pose 577de08992 Better EoE and Idle timing measurement. 2006-08-04 13:49:22 +00:00
Florian Pose 93dcf1c86d Master information, timing. 2006-08-04 09:53:14 +00:00
Florian Pose a02e21fbfc Minor fix: Output of SysFS accepting new slave state. 2006-08-04 09:35:32 +00:00
Florian Pose eed6f1d855 New statistic outputs to avoid blasting the logs. 2006-08-03 20:11:20 +00:00
Florian Pose 4e9ef991e3 Renamed ec_master_receive() to ec_master_receive_datagrams(). 2006-08-03 19:47:29 +00:00
Florian Pose 25ddd08802 Measure bus time. 2006-08-03 19:17:08 +00:00
Florian Pose 32d3bc8d0f SDO configuration interface, SDO download state machine. 2006-08-03 16:48:53 +00:00
Florian Pose e15945b26b Removed deprecated mailbox function headers. 2006-08-03 16:47:06 +00:00
Florian Pose cd98fe51c1 Fixed bug with ec_master_eoe_start() does new coupling all the time. 2006-08-03 16:14:26 +00:00
Florian Pose 258b4d998d VERSION 1.1: New realtime interface, only state machines. 2006-08-03 12:51:17 +00:00
Florian Pose e662e98464 Improved EoE state machine. 2006-08-01 18:37:55 +00:00
Florian Pose 973af4179d Renamed master parameter ec_eoe_devices to ec_eoeif_count. 2006-08-01 15:19:11 +00:00
Florian Pose 7440891396 Fixed bug with bit-sized PDOs leading to wrong Sync-Manager sizes. 2006-08-01 14:15:33 +00:00
Florian Pose 2eba623f2d Minor changes. 2006-07-31 18:52:06 +00:00
Florian Pose 2db9c81ef7 Renamed ec_master_idle() to ec_master_idle_run(). 2006-07-28 07:36:55 +00:00
Florian Pose 7cd6be268e Renamed Sysfs attributes. 2006-07-25 10:05:04 +00:00
Florian Pose c1f7a73172 Minor changes. 2006-07-25 10:04:51 +00:00
Florian Pose ae5f112b9d Reading of eeprom_write_enable. 2006-07-25 10:03:13 +00:00
Florian Pose bed497249d Minor changes. 2006-07-20 11:59:52 +00:00
Florian Pose 30ddafc810 Renamed ACK2 state to CHECK ACK. 2006-07-20 08:39:23 +00:00
Florian Pose ad04403260 Better slave scan sub state machine. 2006-07-19 16:36:36 +00:00
Florian Pose bed60498c5 Better slaveconf sub state machine. 2006-07-19 16:18:51 +00:00
Florian Pose 3da6964ed6 Separated slave scan sub state machine and slave configuration sub state machine. 2006-07-19 15:28:34 +00:00
Florian Pose af1e1bf033 Renamed FREERUN mode to IDLE mode. 2006-07-19 13:15:02 +00:00
Florian Pose 14fe2a8557 Renamed IDLE mode to ORPHANED mode. 2006-07-19 13:08:21 +00:00
Florian Pose c0a73f9615 Better master state machines. 2006-07-19 12:57:41 +00:00
Florian Pose 3ead0fc0b3 SysFS entry for debug level. 2006-07-18 16:48:05 +00:00
Florian Pose 71d7a89468 Ack timeout 100ns in simple IO. 2006-07-18 16:46:26 +00:00
Florian Pose 06d5737cbc Ack timeout in FSM. 2006-07-18 16:42:52 +00:00
Florian Pose 25014a738b Prefer EEPROM sync manager information also in FSM. 2006-07-18 16:40:32 +00:00
Florian Pose 0d76e9719b Prefer EEPROM sync manager information for config. 2006-07-17 13:01:38 +00:00
Florian Pose a6045ba242 Added missing AL status code messages. 2006-07-17 12:58:47 +00:00
Florian Pose 96cb13803c Avoided crashes on kernel 2.4 acc. to patch by M. Schwerin. 2006-07-06 08:39:48 +00:00
Florian Pose 62f69ac0fb Removed warnings acc. to patch by M. Schwerin. 2006-07-06 08:38:08 +00:00
Florian Pose 0fdda5afef Applied include patch by M. Schwerin. 2006-07-06 08:31:55 +00:00
Florian Pose 6fdf205382 Renamed command structure to datagram. 2006-07-06 08:23:24 +00:00
Florian Pose 4a72709aa1 Minor changes in fsm.c and slave.c 2006-06-27 20:24:32 +00:00
Florian Pose 682c27d1d8 Slave: state_error -> error_flag, error_flag only in slave state machine. 2006-06-27 20:08:15 +00:00
Florian Pose a5eb823057 Introducing infrastructural slaves that do not contain process data. 2006-06-27 19:46:25 +00:00
Florian Pose 2bafa768f0 Removing "Modules.symvers" on make clean. 2006-06-27 19:31:26 +00:00
Florian Pose 92a035f82b Added missing documentation. 2006-06-26 16:05:30 +00:00
Florian Pose 004e2af8de Better modules_install targets. 2006-06-26 14:20:36 +00:00
Florian Pose 1d15573863 types.c: BK1120 outputs and EL1004. 2006-06-26 11:28:24 +00:00
Florian Pose dba003179f Removed mbox_command out of slave. 2006-06-21 10:09:36 +00:00
Florian Pose 90cc2fd7e7 Removed debugging output. 2006-06-21 10:08:30 +00:00
Florian Pose cb123b86ae Minor changes. 2006-06-21 09:09:55 +00:00
Florian Pose 85bd5d131d Variable-sized data fields, BK1120. 2006-06-20 14:40:04 +00:00
Florian Pose b01cc85944 Bugfix: Freerun mode not stopped cleanly on device unloading. 2006-06-14 10:23:02 +00:00
Florian Pose 65a14a38fa Applied patches by Maximilian Schwerin. 2006-06-12 14:37:38 +00:00
Florian Pose 51af5bb52f EEPROM writing via SysFS. 2006-06-02 14:25:45 +00:00
Florian Pose 67c2858334 EEPROM write enable SysFS entry. 2006-06-02 12:01:47 +00:00
Florian Pose a62a25ba44 Consistent Makefiles. 2006-06-02 09:02:18 +00:00
Florian Pose 429c0b26cb Read complete eeprom data from slave and map it into SysFS. 2006-06-02 08:38:04 +00:00
Florian Pose b0c8f6d50f Changed EEPROM string/property names and changed sii_desc property to sii_name. 2006-05-29 07:48:33 +00:00
Florian Pose f26a32f340 Corrected output at slave count change. 2006-05-26 14:35:29 +00:00
Florian Pose 4950aed6eb Better state-dependent behaviour for EoE-capable slaves. 2006-05-26 14:28:49 +00:00
Florian Pose 7b3672d62b Correct behaviour of master state machine in RT mode. 2006-05-26 14:26:57 +00:00
Florian Pose a1850ae9c3 Added some documentation. 2006-05-22 09:16:12 +00:00
Florian Pose 6e392ae881 SysFS write access for slave state. 2006-05-22 07:34:58 +00:00
Florian Pose fa97fca47e Read current AL status of slaves while scanning bus. 2006-05-19 14:05:58 +00:00
Florian Pose 0a166b3f43 Link down treated as topology change in state machine. 2006-05-19 13:58:15 +00:00
Florian Pose 47585b668a Fixed bug with coupling multiple EoE handlers. 2006-05-19 13:39:35 +00:00
Florian Pose bcd07c466b Changed free-run frequency to HZ. 2006-05-19 13:38:16 +00:00
Florian Pose 4ea2816432 EoE in Free-Run mode; Finished slave configuration state machine. 2006-05-19 13:23:11 +00:00
Florian Pose 1ff86791ee Minor changes in module.c 2006-05-18 17:49:52 +00:00
Florian Pose 2916e10b50 Changed license headers and added EtherCAT license notice. 2006-05-18 12:35:47 +00:00
Florian Pose 59364271ce Minor changes in master.h 2006-05-17 09:22:31 +00:00
Florian Pose f36dd15ccc Removed EoE workqueue option. 2006-05-16 13:03:09 +00:00
Florian Pose 13c2904e0b Added finite state machine (FSM) processing. 2006-05-16 11:57:06 +00:00
Florian Pose dbb65b089d Removed unnecessary includes. 2006-05-15 12:57:24 +00:00
Florian Pose df6f48c98a Started freerun state machine development. 2006-05-12 14:48:24 +00:00
Florian Pose 0afb6324b8 No master locking, if no EoE devices are "up". 2006-05-12 12:40:45 +00:00
Florian Pose 6a12d7f440 Added debug interface for network monitors. 2006-05-11 13:29:06 +00:00
Florian Pose abb3ab22fd EoE processing with kernel timer again. 2006-05-11 09:23:45 +00:00
Florian Pose cab99683df Added EC_EOE_FREQUENCY 2006-05-10 13:56:23 +00:00
Florian Pose c5a63ad548 EoE with workqueue; bugfix in ec_master_init() 2006-05-10 11:51:05 +00:00
Florian Pose aba8b95ca7 EoE documentation updates. 2006-05-09 10:13:53 +00:00
Florian Pose add42dae3e EoE: State machine with function pointers, documentation. 2006-05-09 09:45:42 +00:00
Florian Pose e85475c233 EoE - TX fragmenting works. TCP traffic possible. 2006-05-08 16:46:43 +00:00
Florian Pose 47706fe130 EoE: Corrected faulty MAC address. 2006-05-05 14:45:02 +00:00
Florian Pose 4d37692dcf EoE: TCP traffic possible; TX fragmenting to do. 2006-05-05 13:07:49 +00:00
Florian Pose 7df9388fed EoE frame queuing, receiving of fragmented frames; no TCP possible yet. 2006-05-05 07:20:10 +00:00
Florian Pose ff8472d164 removed unnecessary private structure in eoe net_device. 2006-05-03 08:01:20 +00:00
Florian Pose 013a4a0edc moved stats into eoe struct; persistent rx-skb; tx queue. 2006-05-03 07:47:04 +00:00
Florian Pose 94c930a5bb Using kernel Ethernet constants. 2006-05-03 07:19:19 +00:00
Florian Pose 83220ba14f EoE frame receiving; regarding open/stop commands. 2006-04-26 16:43:01 +00:00
Florian Pose 9821b7ca87 command timeout, EoE processing with kernel timer. 2006-04-26 10:15:02 +00:00
Florian Pose 1f345f7df6 Prepared EoE processing with workqueue. 2006-04-25 13:43:13 +00:00
Florian Pose abdfe2f3a5 documentation update. 2006-04-25 12:15:54 +00:00
Florian Pose c7020c319d Locking callback interface. 2006-04-25 12:04:04 +00:00
Florian Pose ba806d5094 EoE net_device implementation. 2006-04-25 11:39:33 +00:00
Florian Pose 0aea75964c Restart free run mode after requesting failed. 2006-04-24 12:30:38 +00:00
Florian Pose 42fca68ae7 Doxygen added interface modules and file documentation. 2006-04-24 10:10:02 +00:00
Florian Pose b3389cee9f GPLv2 License and enhanced Doxygen output. 2006-04-21 12:35:17 +00:00
Florian Pose 2e17997172 Introduced version number define. 2006-04-20 14:34:58 +00:00
Florian Pose 91c739da77 Translated all comments and documentation to english language. 2006-04-20 13:31:31 +00:00
Florian Pose 7818664587 Prepared Free-Run mode 2006-04-12 10:40:32 +00:00
Florian Pose be21ebac29 Now fetching port physical layer from EEPROM 2006-04-11 14:39:17 +00:00
Florian Pose ad6b1732d6 Better calc. of coupler address; coupler address in SysFS; better output of ec_list 2006-04-11 14:12:01 +00:00
Florian Pose 4d86dd4cfe Slave (special) type in SysFS 2006-04-11 12:51:20 +00:00
Florian Pose 52a37f1e08 Macro for SysFS attribute definition 2006-04-11 10:17:30 +00:00
Florian Pose c225959b1c More slave fields in SysFS; DL link status for 4 ports 2006-04-11 10:05:21 +00:00
Florian Pose 849e02da7c Slaves stored in list, slaves in SysFS 2006-04-11 09:12:00 +00:00
Florian Pose 5b1d341ea9 Advanced build system 2006-04-11 08:26:18 +00:00
Florian Pose d876fe7731 Sourced SysFS attribute show method prototypes out of headers. 2006-04-10 15:00:03 +00:00
Florian Pose 4d3e4f5625 MERGE branches/sysfs -> trunk (whole SysFS implementation) 2006-04-10 14:25:02 +00:00
Florian Pose 652cb7d123 Sending of multiple frames 2006-04-10 10:53:12 +00:00
Florian Pose 02493380b0 Altered CoE "Get object description response" fields 2006-04-10 10:50:45 +00:00
Florian Pose 0d72a7dfcb Fixed bug concerning spuriously shown EoE-Errors. 2006-04-07 14:35:29 +00:00
Florian Pose 84bd407874 Better outputs concerning responding slaves. 2006-04-06 09:32:30 +00:00
Florian Pose 03ae7f543b AL status code reading after failed state transition. 2006-04-05 14:02:56 +00:00
Florian Pose d3ecd483fa Fixed state acknowledgement. 2006-04-05 13:57:01 +00:00
Florian Pose 44c00c852d Bugfix: Discovered memory leak. 2006-04-05 11:46:13 +00:00
Florian Pose 780ae5af5d Renamed slave_set_fmmu() to slave_prepare_fmmu(). 2006-04-05 11:44:41 +00:00
Florian Pose 7c5a99a7db Fixed invalid format string. 2006-04-05 09:53:55 +00:00
Florian Pose 2549224604 Bugfix: Crash after failing to fetch SDO dictionary. 2006-04-05 09:50:57 +00:00
Florian Pose 7bd5f4dfb5 Plugfest: Configure mailbox for unknown slaves. 2006-04-05 08:58:00 +00:00
Florian Pose 586cfd3584 Plugfest: Schönheitskorrekturen an Mailbox. 2006-04-05 08:47:28 +00:00
Florian Pose 0adb0590fa Plugfest: Neue Slave-Typen. 2006-04-05 08:45:34 +00:00
Florian Pose c86b979bdd Plugfest: Globale Debug-Funktionen für Frame-Daten. 2006-04-05 08:23:40 +00:00
Florian Pose 2fa964880b Plugfest: master_open()/close() ausgelagert. 2006-04-05 07:55:51 +00:00
Florian Pose 98411701ac Plugfest: domain_process mit const-Zeiger. 2006-04-05 07:47:26 +00:00
Florian Pose 294639b752 Ausgaben verbessert, Mini-Modul angepasst. 2006-04-03 19:13:11 +00:00
Florian Pose 0eb95d938e Versuche mit EoE. 2006-04-03 15:47:12 +00:00
Florian Pose 4b4092fd7e Mailbox-Interface ausgelagert, erster EOE-Ansatz. 2006-04-03 14:12:45 +00:00
Florian Pose 8306f3e3c1 Dynamischer Kommandospeicher, Domain-Kommandos als Liste. 2006-04-03 10:03:34 +00:00
Florian Pose 819ab0ad9a Link Status ausgelesen. 2006-03-31 09:27:34 +00:00
Florian Pose aaf5d8646c TO-DO und Fragen aktualisiert, kleine Schönheitskorrekturen. 2006-03-29 15:45:25 +00:00
Florian Pose d919deed4b Verbosity level in ecrt_master_print(). 2006-03-29 15:23:10 +00:00
Florian Pose 0bea90e379 Laden der SDO-Subindizes. 2006-03-29 15:10:00 +00:00
Florian Pose 5722b4bc9a SDO-Schnittstelle verbessert. 2006-03-29 10:30:13 +00:00
Florian Pose 740bf6d767 SDO-Zugriff aufgeteilt in Expedited und Normal. Noch nicht fertig... 2006-03-28 17:40:57 +00:00
Florian Pose 3b8f2472a5 Dynamische Mailbox-Kommunikation, auch mit unbekannten Slaves. 2006-03-28 15:45:19 +00:00
Florian Pose 1e150e4553 Laden der SDO Dictionaries funktioniert. 2006-03-28 13:42:50 +00:00
Florian Pose 173d70ba3c Bugfix: Größerer Puffer für CoE-Daten beim SDO upload. 2006-03-28 12:38:05 +00:00
Florian Pose 9ae1bdf63e Unterstützte Prot. auslesen, Mailbox in Slave ausgelagert, Bugfix in Anzeige des Watch-Frames und erste SDO-List-Abfrage. 2006-03-27 15:52:08 +00:00
Florian Pose 43f05519d6 CRC-Counter nach ESC-Datasheet implementiert. 2006-03-27 12:04:55 +00:00
Florian Pose e9c68fda29 Watch-Kommando 2006-03-27 09:53:59 +00:00
Florian Pose e84f011468 Bugfix: Absturz bei unbekannter Klemme. 2006-03-24 08:56:16 +00:00
Florian Pose bc02897af2 Code aufgeräumt und kleines Speicherleck entdeckt. 2006-03-24 08:35:46 +00:00
Florian Pose 2c69194a1a Restliche EEPROM-Daten ausgelesen. 2006-03-22 11:42:44 +00:00
Florian Pose 7b95ac4e32 Nachmals verfälschte Umlaute korrigiert. 2006-03-21 18:28:16 +00:00
Florian Pose ca1ed1e29c Weitere EEPROM-Daten. 2006-03-21 15:45:11 +00:00
Florian Pose 6d4fc835e1 "kaputte" Umlaute korrigiert. 2006-03-21 15:10:18 +00:00
Florian Pose 5483f50edf Bugfix: Absturz behoben, EEPROM-Infos. 2006-03-21 15:00:50 +00:00
Florian Pose 199dcda810 64bit-Division vermieden. 2006-03-21 14:35:52 +00:00
Florian Pose 58d3c00f3d Verschiedene Timeouts verlängert. 2006-03-21 14:23:23 +00:00
Florian Pose f9c4eecee9 Kategorie-Daten aus EEPROM lesen. 2006-03-21 13:57:15 +00:00
Florian Pose bdf2a74f90 Slave-Alias korrigiert. 2006-03-20 15:40:34 +00:00
Florian Pose e6ac6a1900 Slave alias implementiert. 2006-03-20 15:28:25 +00:00
Florian Pose 290d5d86a4 Do-Schleifen ersetzt. 2006-03-20 13:36:10 +00:00
Florian Pose a63d1c52a4 Feldregistrierung: NULL als data_ptr möglich, field_count 0 = 1. 2006-03-20 12:54:17 +00:00
Florian Pose 002ea06431 Bugfix: SDO download. SDO abort codes ausgeben. 2006-03-20 11:02:39 +00:00
Florian Pose 39c4b88d02 Bugfix: EXPORT_SYMBOL für ec_master_prepare_async_io() vergessen. 2006-03-20 08:24:12 +00:00
Florian Pose 463876bb83 Bugfix: Registrieren von mehreren Feldern gleichzeitig geht jetzt. 2006-03-19 15:21:57 +00:00
Florian Pose 34f0114eb6 Bugfix: EL3162 - "Product Name" war falsch. 2006-03-19 14:58:49 +00:00
Florian Pose c9e8fc62c9 ecrt_master_prepare_async_io() hinzugefügt. 2006-03-17 16:25:02 +00:00
Florian Pose e310c9f3e4 Domänen-Status (ecrt_domain_state) hinzugefügt. 2006-03-17 15:18:13 +00:00
Florian Pose 1c0347347a MERGE branches/async -> trunk (alle Unterschiede übernommen) 2006-03-17 14:21:35 +00:00
Florian Pose 38f5bccbca MERGE branches/async -r243:244 -> trunk (intypes). 2006-03-08 13:23:56 +00:00
Florian Pose b38ffbe720 MERGE branches/async 222:233 -> trunk (Kommando-Warteschlangen). 2006-03-06 15:12:34 +00:00
Florian Pose 11d861522b Link-Down-Verhalten verbessert. 2006-03-02 13:08:07 +00:00
Florian Pose 0ffbd968a6 Link-State im Device. 2006-03-02 11:19:27 +00:00
Florian Pose 3a98ea9715 Domains als Liste verwaltet. 2006-02-28 13:07:05 +00:00
Florian Pose a84b1adce5 Zyklische Ausgaben um "Verzögerte" Rahmen erweitert. 2006-02-28 11:36:29 +00:00
Florian Pose cc6039fd29 Code-Dokumentation verbessert. 2006-02-28 11:14:49 +00:00
Florian Pose 42f8695d18 Code-Dokumentation angepasst. 2006-02-28 11:10:57 +00:00
Florian Pose 59be77d01d Rahmen jetzt zustandslos. 2006-02-28 09:25:51 +00:00
Florian Pose 324ce91d67 Wiederholtes Senden, wenn keine Antwort. 2006-02-28 09:09:08 +00:00
Florian Pose d1010330d4 Bessere Ausgaben beim Starten und beenden. 2006-02-26 12:26:23 +00:00
Florian Pose 5fcbcc89c2 Master wird nach nicht erfolgreichem Request resettet. 2006-02-24 17:29:31 +00:00
Florian Pose 48ed6bda64 printk durch Makros ersetzt. 2006-02-24 16:10:52 +00:00
Florian Pose cbcf404f96 Buskoppler werden jetzt gesondert behandelt. 2006-02-24 13:54:27 +00:00
Florian Pose 52aaf39561 Nicht registrierte Slaves in PREOP schalten. 2006-02-24 13:34:31 +00:00
Florian Pose 61c05edf56 CANopen SDO read implementiert. 2006-02-24 13:14:51 +00:00
Florian Pose 4b24372bb2 Compile-Warnings mit ADEOS behoben. 2006-02-24 13:14:21 +00:00
Florian Pose 59782cc7be Frame-Debugging ins Device ausgelagert und verbessert. 2006-02-24 13:09:13 +00:00
Florian Pose f99f9b3e23 EC_READ/WRITE-Makros verwenden Makros aud asm/byteorder.h und werden konsequent verwendet. 2006-02-24 10:19:26 +00:00
Florian Pose d02fbc8701 EL31XX-Typ korrigiert. 2006-02-23 14:51:45 +00:00
Florian Pose 48dad7c5c5 Feature-Flag der Klemmentypen nicht mehr benötigt. 2006-02-23 13:54:27 +00:00
Florian Pose b49d9be301 Neues Slave-Interface, CRC-Prüfung und mehrfaches Scannen nun ungefährlich. 2006-02-23 13:38:54 +00:00
Florian Pose 4d65b22b0f Dynamische FMMU-Konfiguration, zwei Kopieroperationen eingespart, Einrückungen angepasst. 2006-02-23 09:58:50 +00:00
Florian Pose 30f4dfcc59 Klemme Beckhoff EL2032 hinzugefügt. 2006-02-22 17:36:28 +00:00
Florian Pose c5e95b0bc5 Bug: NULL pointer dereference in master/device.c behoben. 2006-02-20 08:30:30 +00:00
Florian Pose 58edfcfe3e Neue ASCII-Adressierung und Code-Dokumantation. 2006-02-14 14:50:20 +00:00
Florian Pose 0e547f96aa EL5101-Inkrementalgeberklemme hinzugefügt. 2006-02-14 14:40:47 +00:00
Florian Pose efa310c45e SSI-Klemmen-Interface und kleinere Änderungen. 2006-02-13 14:11:33 +00:00
Florian Pose fb4b07cf52 CANopen over EtherCAT. 2006-02-03 16:23:52 +00:00
Florian Pose 842f163d28 Unbekannte Klemmen erlaubt, EL5001 integriert. 2006-02-03 10:46:33 +00:00
Florian Pose 0dc495bf11 register_slave_list() und Bugfix in deactivate_slaves() 2006-01-26 13:41:47 +00:00
Florian Pose a8ef8e2cbf Code-Dokumentation mit Doxygen aufgearbeitet. 2006-01-26 09:12:09 +00:00
Florian Pose 5ceefe4379 Bugfix im Master, ec_master_reset() und laufendes Beispiel in rt. 2006-01-20 16:04:10 +00:00
Florian Pose 5fb6877412 Mit neuer Schnittstelle wieder lauffähig. 2006-01-20 13:32:31 +00:00
Florian Pose b0443360ec Vereinheitlichte Schnittstellen, Include-Verzeichnis und Module getrennt. 2006-01-17 18:28:15 +00:00