Commit Graph

89 Commits

Author SHA1 Message Date
Florian Pose dc92e57bc3 Minor changes. 2016-06-22 13:49:16 +02:00
Florian Pose be5dfb7278 Do not touch AL state of EoE slaves. 2016-05-03 15:14:42 +02:00
Florian Pose ccbec710d5 Fixed EoE data debug level 3. 2016-05-03 14:18:29 +02:00
Florian Pose 621241b394 New alloc_netdev() API since kernel 3.17. 2015-05-07 15:53:42 +02:00
Florian Pose 69c3f671f6 Fixed line wrapping. 2015-04-17 11:22:17 +02:00
Knud Baastrup c4b7de9406 Eoe mac address now derived from unique mac.
The EoE MAC address is now derived from the NIC part of the first global
unique MAC address of the linked list of available network interfaces or
otherwise the MAC address used by the EtherCAT master. The EoE MAC address
will get the format 02:NIC:NIC:NIC:RP:RP where NIC comes from the unique MAC
address (if available) and RP is the ring position of the EoE slave.
2015-04-14 10:12:55 -04:00
Florian Pose 8165f931df Cleaned up EoE frame type definitions. 2014-11-06 08:53:11 +01:00
Florian Pose 887f04c02b EoE frame types. 2014-11-05 19:04:36 +01:00
Florian Pose 217888ccc3 Centrally defined mailbox types. 2014-11-05 18:42:12 +01:00
Florian Pose 99418519bd Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
Florian Pose 4aaba1c675 Avoided unused variable warnings. 2012-01-09 17:42:28 +01:00
Florian Pose c57242219f Minor: Fixed line wraps and spacing. 2011-08-01 17:02:45 +02:00
Martin Troxler ae09c143c9 Reduced frame size when sending to mailbox, uses 2 datagrams. Enabled with configure option --enable-mboxframesize 2011-03-14 16:55:09 +01:00
Martin Troxler f405ebef0a fixed race condition when comparing datagram state
EC_DATAGRAM_QUEUED must be compared before EC_DATAGRAM_SENT because it might change in between
2011-03-14 16:08:25 +01:00
Martin Troxler c059ec6f49 use rt_mutex instead of semaphore for mutual exclusion (use --enable-mutex) 2011-01-05 08:36:53 +01:00
Martin Troxler c15f66ae48 removed eoe thread: eoe processing now done by Idle/Operation thread 2010-12-16 11:23:32 +01:00
Florian Pose 62b722ab33 Improved syslog macros. 2010-05-03 18:07:57 +02:00
Florian Pose 6373e38ca3 Introduced effective_alias variable to separate reg12 alias from SII alias. 2010-04-23 16:42:27 +02:00
Florian Pose d24bede41c Added missing code documentation. 2010-04-19 21:56:16 +02:00
Florian Pose 699b184f6f Merged changes from Martin Troxler. 2009-12-14 13:11:36 +01:00
Martin Troxler dfeb99b1cb applied komax patch to version r1822
- adapted to 2.6.31 (-rt): init_MUTEX -> sema_init, net_device_ops (Matthias Lüscher)
- 8139too eth driver for 2.6.31 (Matthias Lüscher)
- scan_busy queryable in user mode (ec_master_info_t) (Martin Troxler)
- read alias from register 0x0012 (TODO: reread alias after sii write) (Martin Troxler)
- cancel external SDO/FOE,Reg&SII requests (Martin Troxler)
2009-11-19 14:39:10 +01:00
Florian Pose bd90926ab3 Use net_device_ops also for EoE devices from 2.6.29 on. 2009-11-19 13:53:33 +01:00
Florian Pose fa26232937 Later freeing of netdev. 2009-10-28 14:59:34 +01:00
Florian Pose a3c32e8b67 Improved the callback mechanism. 2009-07-13 15:18:28 +00:00
Florian Pose f7e14d2915 EoE processing with kthread. 2009-06-30 11:11:56 +00:00
Florian Pose e9b881e6db Output device opened/closed only on debug level 2. 2009-06-29 14:27:06 +00:00
Florian Pose 70d8767f7c Minor: Changed comment style. 2009-06-29 14:25:31 +00:00
Florian Pose 5176ca3cf3 EoE transmit retry; EoE warnings. 2009-06-26 12:21:56 +00:00
Florian Pose 1baa06d05b ethercat eoe command. 2009-06-26 09:46:57 +00:00
Florian Pose 2bb56b4f15 Debug statements with EC_DBG() in EoE code. 2009-06-26 08:00:47 +00:00
Florian Pose 12c12b1bab Improved and added license headers. 2009-02-24 12:51:39 +00:00
Florian Pose 8c76942245 merge -c1635 branches/1.4-foe: Removed todo line. 2009-01-26 14:14:17 +00:00
Florian Pose 40ee89a77f merge -c1621 branches/1.4-foe: Introduced configured_[tr]x_mailbox(size|offset) members of slave. 2009-01-26 13:28:19 +00:00
Florian Pose 5d4b915317 merge -c1619 branches/1.4-foe: Implemented going to bootstrap state BOOT. 2009-01-26 13:22:05 +00:00
Florian Pose 826ae37b26 merge -c1604 branches/stable-1.4: Fixed spelling of EtherCAT terms. 2009-01-26 11:45:30 +00:00
Florian Pose 5ca3d24337 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only. 2009-01-26 11:16:10 +00:00
Florian Pose 8d46a283f6 Improved error case return codes of many functions. 2008-11-17 17:18:02 +00:00
Florian Pose 12d30c487a Added VoE handler. 2008-09-01 14:17:18 +00:00
Florian Pose 2a7a7e2e5c Replaced misleading %i by %u. 2008-06-10 11:54:39 +00:00
Florian Pose 0b9015848b Removed slave online flag. 2008-04-25 12:45:44 +00:00
Florian Pose a4095b4201 Separated SII data from slave. 2008-02-27 15:24:00 +00:00
Florian Pose fac8cc4b73 Improved EoE debugging. 2007-12-21 16:12:30 +00:00
Florian Pose 1c829731ed Improved EoE handling: Avoided skipping of datagrams and release lock
while processing.
2007-09-12 14:48:53 +00:00
Florian Pose 7597e2795e Store skipped information in datagrams; name datagrams for statistics
output.
2007-09-12 14:06:35 +00:00
Florian Pose fd2c20530e Create network interfaces for EoE devices with alias as eoeXaY. 2007-09-12 10:00:39 +00:00
Florian Pose 7ddb6848d9 Removed checking for NULL slave pointer in EoE handler; added comments. 2007-08-09 14:38:18 +00:00
Florian Pose 2d6ec6ec99 Renamed EoE interfaces to eoe<MASTER>s<SLAVE>. 2007-08-07 13:33:21 +00:00
Florian Pose 9466d51185 Dynamic creation of EoE handlers. 2007-03-16 14:00:12 +00:00
Florian Pose a5eabfa35d Moved a few constants to the files they are needed in. 2007-03-07 13:12:33 +00:00
Florian Pose b0285d88a9 Introduced ec_slave_online_state_t, ec_slave_set_online_state(), renamed
slave->online to ec_online_state and introduced
ec_slave_set_app_state().
2007-03-05 09:55:39 +00:00