[FIX] Fix plkload to correctly handle multiple threads/irqs

For some drivers multiple IRQs and IRQ threads could exist. plkload
is fixed to work correctly even if there are several threads and
interrupts.

Change-Id: I0df74842bc14ea4d725dd59453c721aa97c7dfdf
[FIX]  Reimplement handling of PRes in transition DLL_CT4

Reimplement handling of PRes in transition DLL_CT4 in state
DLL_CS_WAIT_SOC as specified in EPSG 301. This covers the following
situations on CN implementations:
1. Just one SoC from MN is lost, because of EMI for example. So the
   next cycle starts with a PRes instead of SoC.
2. Multiple SoCs and the frames in between were lost, because of short
   cable disconnect for example (but frame timeout didn't occur yet).
   So the next cycle which is received by MN starts with a PRes.
3. A late PRes from another CN is received (PRes between SoA and SoC).
   On this CN this is handled as a loss of SoC, but the next SoC isn't
   actually lost. There is just a wrong PRes on the network.

The latter situation might be the reason why the PRes case has been
commented since the early versions of this stack. Why should one CN
care about mistakes of another CN? The answer is that the POWERLINK
network shall provide a deterministic real-time communication and
errors must not remain undetected.

Futhermore, with this fix we indirectly catch the case that an
openPOWERLINK MN (without further hardware support like frame
timestamps) cannot detect late PRes after the SoA. Now another CN
would increment its Loss-of-SoC error counter and force it to go back
to PreOp1 when the threshold is exceeded. For the user the root cause
of this error is a little bit hard to detect, but the error is unveiled
(if there are at least too CNs in the network).

Based on change for V1.8.4 by
Daniel Krueger <daniel.krueger@systec-electronic.com>

Change-Id: Ib5f41389bf4d43fd116e17a1256da43ceb92f14e
[FIX] Resolve Xilinx cmake filename case issue

This issue occures only on Linux where the case
of files is observed.

Change-Id: I2792b96af57c5c0eba729e11ab6a763bdd134065
[FIX] Add missing openMAC waveforms to documentation

Change-Id: If09aba765f4dac6e0dcc985235a827751db6e20f
[FIX] Fix MN issuing StatusRequest after NMTEnableReadyToOperate

If the MN issues an NMTCommand NMTEnableReadyToOperate the initial and
destination NMT state of the node must be NMT_CS_PRE_OPERATIONAL_2.
Therefore, it is not necessary to issue a StatusRequest frame after
C_NMT_STATE_TOLERANCE cycles monitoring the state change.
This change skips setting up the state change monitoring if the
initial and destination state is NMT_CS_PRE_OPERATIONAL_2.

Resolves: #838

Change-Id: I09bb1bfe7998b323f36a47835926a2a2bcae4c94
[FEATURE] Add cross toolchain file for Xilinx ARM

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Change-Id: I582111ef3ce6f4618d1579d3d5c093a2cd7107f1
[FEATURE] Add Edrv module for Xilinx Zynq Gigabit Ethernet controller

Add edrv module for Xilinx Zynq Gigabit Ethernet controller (GEM).

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Change-Id: I3d7b7cbff735e4de033e73b2cd4db6c291255ec2
[FEATURE] Add high resolution timer module for Xilinx Zynq

Add high resolution timer module for Triple Timer Counter(TTC1) on
Xilinx Zynq SoC. The implementation is used for the Linux kernel
implementation of the stack.

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Change-Id: Id703d7066fb5f8a17bfba61288c08d85f20124af
[FEATURE] Add Xilinx Zynq support in Linux edrv module

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Change-Id: I2b8052d6bfadf90441bc8fdc853405dd7d9362b4
[FEATURE] Add documentation for Linux on Zynq ARM platform

Change-Id: Ied0aababf4309ac6b68463bc534b4dafeb5a4481
[TASK] Clean up oplk_sendAsndFrame()

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>

Change-Id: I1f074b8dd7d1cce4ee2edcb5dd5d9f3d5a3bc10e
[FIX] Add missing include in host interface driver

Change-Id: If8bafa6af2f409a2f501fcf91de7aaedf835f280
[TASK] Modify oplk_sendAsndFrame() to check async MTU

oplk_sendAsndFrame() checks if the size of the data to be sent
exceeds the maximum asynchronous frame size.

Change-Id: I42734e54d8f961325d280f489b608da4d85a7228
[TASK] Improve documentation of oplk_sendAsndFrame()

Change-Id: I80654d9f4487a0b154106304f40d32314373490f
[FEATURE] Add support for Linux shared library

 - Add option to library CMake files for building static
   or shared libraries.

Change-Id: I41c78dad3807deceee2407c2a05e35839c67a915
[FIX] Fix include directories in Linux kernel driver

The CMake configuration for the Linux kernel driver is special
because it only links the source files into the build directory,
set compiler options and then uses kbuild for doing the real build.

Therefore, it is not necessary to set include directories with the
INCLUDE_DIRECTORIES statement. However, if a eclipse CDT project is
created by CMake the include directories must be correctly set for
the indexer to work.

This change correctly sets the include directories in the Linux
kernel module project.

Josef Baumgartner <josef.baumgartner@br-automation.com>
- Cleanup change and commit message for integration

Signed-off-by: Josef Baumgartner <josef.baumgartner@br-automation.com>

Change-Id: I57bc721dc388971e2357b5675034914526488607
[TASK] Cleanup source and headers for Linux kernel driver

- Merge ctrlkcal-linuxkernel into ctrlkcal-direct.c
  As the ctrlu functions will be translated into kernel space by ioctls
  the ctrlkcal functions are nearly the same as for the direct
  call implementation and can be implemented in a single file.
- Merge dllkcal-linuxkernel into dllkcal-circbuf.c
  As the circular buffer for the DLL is implemented in the Linux
  kernelspace and the user-to-kernelspace crossing is implemented with
  ioctls, the dllkcal-circbuf.c can be used for Linux kernel driver.
- Rename oplk/powerlink-module to common/driver.h and update references
- Move Linux specific stuff from driver.h into driver-linux.h

Change-Id: I47739b2fda5a398692d7034933ef90f324535809
[MERGE] Merge branch 'develop-2.0' into develop-2.1

* develop-2.0:
  [FIX] Fix MN issuing StatusRequest after NMTEnableReadyToOperate
  [FIX] Add missing openMAC waveforms to documentation
  [FIX] Resolve Xilinx cmake filename case issue
  [FIX] Reimplement handling of PRes in transition DLL_CT4
  [FIX] Fix plkload to correctly handle multiple threads/irqs

Change-Id: I126859c96c351aaede6410763e59c98dce02530e