[FIX] Cleanup Altera MN documentation

Change-Id: I8f559d469fcab1908ea9d360296e5ee088b1954b
Reviewed-on: http://brateggevoat1/gerrit/784
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Roland Jung <roland.jung@br-automation.com>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Add missing variables for CN with cross-traffic

In dllk.c some variables are missing if EPL_MODULE_NMT_MN is not set,
but the CN is configured to support cross-traffic, hence, the macro
EPL_NMT_MAX_NODE_ID is greater 0.

Change-Id: I9808f1aed6f719774f4bae5766705b344fe3980f
Reviewed-on: http://brateggevoat1/gerrit/895
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Correct typos in demo_mn_console/main.c

Change-Id: I8862cbfa666a914f28c576d659e6493ddbcc134e
Reviewed-on: http://brateggevoat1/gerrit/940
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Fix CMakeLists.txt for demo_mn_console

- Include pcap-console.c only for direct linked application or when
  using the usespace daemon

Change-Id: I5105ee2eae23d4024e077478695c1642a191197f
Reviewed-on: http://brateggevoat1/gerrit/941
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Add new definitions in EplInc.h

- Add additional queue definitions
- Add macro for adding timespec values

Change-Id: I3e9861a861bc18251b1b1d34ac30e7c596d92237
Reviewed-on: http://brateggevoat1/gerrit/942
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Add missing includes in trace-printk.c

Change-Id: I3a1c20d3a389efba6dd18ac5342139f67b9fe327
Reviewed-on: http://brateggevoat1/gerrit/943
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Add types for generic function pointers in global.h

Change-Id: I4bd6fe978c5d0687ce50bc24252b3feb854bfa5e
Reviewed-on: http://brateggevoat1/gerrit/944
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Add missing init/deinit of virtual ethernet in ctrlk.c

Change-Id: Iafb9489f51cb7c90d6da31d59666faa03e6be0e5
Reviewed-on: http://brateggevoat1/gerrit/945
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Remove semicolons at macro calls to avoid compiler warning

Change-Id: Id5d0a07a43d3a19f5188986b845ffd3c5313b552
Reviewed-on: http://brateggevoat1/gerrit/946
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add macros for atomic exchange operation

Change-Id: I6fe2d9d7410c96aa804169d63e8c304f7cbbb929
Reviewed-on: http://brateggevoat1/gerrit/947
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add new functions for error handler CAL

- Implement new CAL modules for posix shared-memory and linux ioctls
- Add function eventkcal_getMemPtr() used to get pointer to kernel
  error handler objects
- Correct formatting issue in errhnducal-shb.c

Change-Id: I07c24b8e5e0be849954ae0e426e6cbed6efeb8a3

Reviewed-on: http://brateggevoat1/gerrit/955
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Cleanup control modules

- Cleanup debugs
- Reorder initialization and cleanup functions
- Remove virtual ethernet deinit from ctrlu.c
- Change default value of heartbeat in ctrlk.c to be sure it is
  different to user layer value

Change-Id: Ibea38b38377bac65068b0bb48649d577d70dea2f
Reviewed-on: http://brateggevoat1/gerrit/956
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add additional control CAL module implementations

- Linux ioctl/kernel implementation
- Posix shared memory implementation

Change-Id: I560bd865f832024aa28fa796ab7c1c9bf44ae821
Reviewed-on: http://brateggevoat1/gerrit/957
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Move unused header files of fec edrv into staging

Change-Id: Icbb4deaf2e8a72960ae5261e9c73baaf68341b70
Reviewed-on: http://brateggevoat1/gerrit/958
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Cleanup documentation in cmake.md and readme.md

Change-Id: I024cddfc5a77906421673f70e59ba62f904292c5
Reviewed-on: http://brateggevoat1/gerrit/959
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FEATURE] Add circular buffer library

This commit adds a circular buffer library. The library provides
a simpler mechanism than the existing circular buffers contained
in the sharedbuff library and should fully replace it in the
future. However, this library is not compatible with the existing
circular buffers. This means that the modules which should use
it, must be adapted to the new library. The library contains
implementations for different architecturs.

Change-Id: I26d099ad7ac05b3e94fa664a4a661771e8f08ba2
Reviewed-on: http://brateggevoat1/gerrit/937
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Joerg Zelenka <joerg.zelenka@br-automation.com>
Reviewed-by: Thomas Mair <thomas.mair@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Change Linux driver/device names

- Change definition in edrv
- Adapt Linux load scripts

Change-Id: Idca3775f1afd42ac629ad9e0bad18ce59b6dd4b6
Reviewed-on: http://brateggevoat1/gerrit/997
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Add new include directories in CMakeLists.txt

Change-Id: I332ecab5fe8314cfa637572a456a371d22a08aa5
Reviewed-on: http://brateggevoat1/gerrit/998
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Add circular buffer definitions in EplDef.h

Change-Id: I74e9c6a5da10b8a6b6fef16ef47c86606def7d54
Reviewed-on: http://brateggevoat1/gerrit/960
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
Tested-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[TASK] Remove PosixFileLinuxKernel.c

It is no longer used as obdcdc always runs in userspace with the new
stack architecture.

- Remove PosixFileLinuxKernel.c from Linux kernel driver CMake file
- Move PosixFileLinuxKernel.c and PosixFileLinuxKernel.h into staging
- Cleanup obdcdc.c

Change-Id: Id531c72be0c46438a28e84d05d52736982272a82
Reviewed-on: http://brateggevoat1/gerrit/1004
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>