[FIX] Fix initialization of process image

The process image is uninitialized until the application
uses it. This may be dangerous, therefore this fix initializes
the process image with 0.

This change is based on change for V1.08.4 from
Romain Naour <romain.naour@openwide.fr>

Change-Id: I9e69dbe6cc66781ce319016430fe4c64206df5fc
[FIX] Fix typos in 00000000_POWERLINK_CiA302-4_MN.xdd

The xdd was unusable with openCONFIGURATOR due to duplicate 0x20
subindexes and missing 0x2E subindexes.

Based on change for V1.08.4 from:
Romain Naour <romain.naour@openwide.fr>

Change-Id: I3477cbb9f5ebae870e5eb76ec7c9b20e01a44d18
[FIX] Fix access rights in obdmacro.h

This fix changes access rights for sub-index 0 for macro
OBD_RAM_INDEX_RAM_ARRAY_ALT and OBD_RAM_INDEX_RAM_PDO_MAPPING.
This is necessary to set storage attribute (e.g. kEplObdAccSRW) for
sub-index 0 too. It is needed if store/restore support is
implemented.

The change is based on change for V1.08.4 from
Daniel Krueger <daniel.krueger@systec-electronic.com>

Change-Id: Ib95ce216eb31874d607b5cd6f04c8e27eef60edc
[TASK] Extend PDO mapping subindexes (objects 0x16xx and 0x1Axx)

The mapping objects in 0x16xx and 0x1Axx are extended up to 0xFE.
This is done by replacing the discrete subindex definition with
macro OBD_RAM_INDEX_RAM_PDO_MAPPING.

The commit fixes errors with big configurations where more than 40
objects per CN are mapped.

The change is based on change for V1.08.4 from
Romain Naour <romain.naour@openwide.fr>
Daniel Krueger <daniel.krueger@systec-electronic.com>

Change-Id: Ifaacf1be3f4b6390eaa82321c0955f1fe9e9866e
[FIX] Fix 8255x Edrv NULL pointer crash

- Modify pci_unmap_single function to free temporary address
  of the dma buffer instead of NULL address.
- Initialize TailTxDesc and HeadTxDesc to zero to avoid corruption.
- Set up Rx filtering for local MAC after the mac address
  initialization to accept unicast packets directed to local MAC.
This change is based on the fix for null pointer issue in V1.08.5

Signed-off-by: Avinash Alfred <avinash.a@kalycito.com>

Josef Baumgartner <josef.baumgartner@br-automation.com>
- Clean up coding style issues

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

Change-Id: Ie74e1fdc0067c70f12067d9a35f20623c8bd99ab
[FIX] Fix doxygen issues

Change-Id: I4f7982e57257f18875b03424f032b9257e43ce3d
[FIX] Ensure that ctrlk module is initialized/deinitialized

The initialization and deinitialization of the ctrlk module was missing
for the single process solution. Now, ctrlk_init() and ctrlk_exit()
is called in the ctrlucal-direct module.

Change-Id: I9268c1e7d1e4d07a7e3bcbf2e4893fa62efbbada
[FIX] Fix C compiler warnings

- Fix C compiler warnings caused by the cache mem read, write,
  flush and invalidate operation
- Fix missing header files in obdcdc.c and hostlib_microblaze.h file
- Fix empty 'If' warnings for release mode compilation
- Update the invalid irq_id for Microblaze to greater than the
  maximum possible irq id.

Change-Id: I61ef99d00408420adb6a7a81ed4f88bb6ef31ae9
Signed-off-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[FIX] Fix MN hostif app stack library

- Add memory map sources in hostif MN stack library

Change-Id: I59ad2439d3e020cb858ca4e8964598b9b66a31f7
Signed-off-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[FIX] Fix warning in Linux driver

Change-Id: Idebd6c02c2c34a7975d27bb3ef52fb09516e8e2a
[FEATURE] Add API event for default gateway change

This feature introduces an API event which is triggered when the default
gateway object (0x1E40/5) is changed.

Change-Id: Idd074984af3de888479f452a17d06560587cf2f5
[TASK] Change ARP demo send request function interface

Change arp_sendRequest function parameter to target IP address. This
enables to send an ARP request to any IP address.

Change-Id: I587022dfebc86bb01c2df575c9c12ba5ac551093
[FEATURE] Add default gateway handling in embedded demos

- Embedded demos handle API event for changed default gateway
- Add default gateway setter in ARP demo
- ARP reply from default gateway is recognized

Change-Id: I6c143d24ed09714ea391e109588fffaa296aadd2
[FIX] Fix potential crash in PRes forwarding

This change cleans up array access in PRes forwarding to avoid crashes
for invalid Node IDs.

Fix is based on work by John <chidrupaya.sr@kalycito.com>.

Change-Id: Id7ba14d40e8d92243fc8464ef7e38445c954aa22
[FIX] Add missing definitions in debugstr.c

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

* develop-2.0:
  [FIX] Add missing definitions in debugstr.c
  [FIX] Fix 8255x Edrv NULL pointer crash
  [TASK] Extend PDO mapping subindexes (objects 0x16xx and 0x1Axx)
  [FIX] Fix access rights in obdmacro.h
  [FIX] Fix typos in 00000000_POWERLINK_CiA302-4_MN.xdd
  [FIX] Fix initialization of process image

Change-Id: Ie8b03a663edc98353ba78b128d316074f4f135fe
[FEATURE] Add support for detecting kernel compatibility

This change adds support for detecting the kernel stack version and
configuration. The stack configuration is stored with a feature flag
variable that could be read by the user stack via the control interface.
The user stack compares the received feature flags and version of the
kernel stack with its expected flags and own kernel version to check
if they are compatible.

For checking the version and features, the command interface of the
control module is enhanced. Therefore, no new communication mechanism
is needed in the control CAL modules for exchanging the data.

Change-Id: I156193912bf5d631bfa950d3c0ee9bba43a32ce9
[TASK] Add CMake macro for listing subdirectories

Change-Id: I5fd04b749ef05c5fb33357a219ee13c2ab584761
[TASK] Add Microblaze MN demo apps

- Add CMake project for demo_mn_embedded on Microblaze
- Add Microblaze MN-hostif demos to the list of available demos

Change-Id: I95353ac16718df8946894cba278d1bb0e73ba614
Signed-off-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
[TASK] Add Microblaze MN PCP driver

- Add CMake project for drv_daemon on Microblaze
- Add Microblaze MN-hostif PCP driver to the list of available drivers
- Add daemon.c for Xilinx Microblaze

Change-Id: Ibbd8bf0ce399b2475e5839b536de1e35a669f8e3
Signed-off-by: Joerg Zelenka <joerg.zelenka@br-automation.com>