diff --git a/Kbuild.in b/Kbuild.in index 5c3d7058..546430bc 100644 --- a/Kbuild.in +++ b/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,7 +19,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- obj-m := examples/ master/ devices/ @@ -29,4 +27,4 @@ ifeq (@ENABLE_TTY@,1) obj-m += tty/ endif -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/NEWS b/NEWS index 7276a7f1..fba9edc5 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,5 @@ ------------------------------------------------------------------------------- -$Id$ - vim: spelllang=en spell tw=78 ------------------------------------------------------------------------------- diff --git a/README.EoE b/README.EoE index ec820fa3..5fe612ad 100644 --- a/README.EoE +++ b/README.EoE @@ -1,10 +1,8 @@ -------------------------------------------------------------------------------- - -$Id$ +------------------------------------------------------------------------------ vim: spelllang=en spell tw=78 -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ This file shall give additional information on how to set up a network environment with Ethernet over EtherCAT devices. @@ -12,8 +10,9 @@ environment with Ethernet over EtherCAT devices. A virtual network interface will appear for every EoE-capable slave. The interface naming scheme is either eoeXsY, where X is the master index and Y is the slave's ring position, or (if the slave has an alias set) eoeXaZ, where Z -is the (decimal) alias address. Please provide a network configuration file for -any of these interfaces. On SUSE systems, these can look like the following: +is the (decimal) alias address. Please provide a network configuration file +for any of these interfaces. On SUSE systems, these can look like the +following: /etc/sysconfig/network/ifcfg-eoe0s14: IPADDRESS=10.0.0.14/8 @@ -26,4 +25,4 @@ necessary. Instead, copy the file script/ifup-eoe.sh to your systems if-up.d directory (on SUSE, this is /etc/sysconfig/network/if-up.d), and customize the included variables. -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ diff --git a/TODO b/TODO index a2a29061..3ad97efb 100644 --- a/TODO +++ b/TODO @@ -2,12 +2,15 @@ EtherCAT master TODO -$Id$ - vim700: spelllang=en spell ------------------------------------------------------------------------------- +See issues on +https://gitlab.com/etherlab.org/ethercat/-/issues + +------------------------------------------------------------------------------- + Future issues: * Improve redundancy_active doc in ecrt.h. diff --git a/bootstrap b/bootstrap index 60f8dfc7..63c3e7ad 100755 --- a/bootstrap +++ b/bootstrap @@ -1,7 +1,5 @@ #!/bin/bash -#---------------------------------------------------------------------------- -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH # @@ -20,7 +18,7 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- set -e set -x @@ -33,4 +31,4 @@ mkdir -p m4 autoreconf -i -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- diff --git a/devices/8139too-3.0-ethercat.c b/devices/8139too-3.0-ethercat.c index 589a9b26..4ae737bc 100644 --- a/devices/8139too-3.0-ethercat.c +++ b/devices/8139too-3.0-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -650,7 +648,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.10-ethercat.c b/devices/8139too-3.10-ethercat.c index 23d49b6c..52de3876 100644 --- a/devices/8139too-3.10-ethercat.c +++ b/devices/8139too-3.10-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.12-ethercat.c b/devices/8139too-3.12-ethercat.c index 23d49b6c..52de3876 100644 --- a/devices/8139too-3.12-ethercat.c +++ b/devices/8139too-3.12-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.14-ethercat.c b/devices/8139too-3.14-ethercat.c index 4c9a4d50..e6b838d0 100644 --- a/devices/8139too-3.14-ethercat.c +++ b/devices/8139too-3.14-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.16-ethercat.c b/devices/8139too-3.16-ethercat.c index da3b7fd4..203a6f08 100644 --- a/devices/8139too-3.16-ethercat.c +++ b/devices/8139too-3.16-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.2-ethercat.c b/devices/8139too-3.2-ethercat.c index 7bdd8cab..cbbbf4e5 100644 --- a/devices/8139too-3.2-ethercat.c +++ b/devices/8139too-3.2-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -651,7 +649,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.4-ethercat.c b/devices/8139too-3.4-ethercat.c index 71d64073..a3c311a6 100644 --- a/devices/8139too-3.4-ethercat.c +++ b/devices/8139too-3.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.6-ethercat.c b/devices/8139too-3.6-ethercat.c index 0ea839c7..8061e890 100644 --- a/devices/8139too-3.6-ethercat.c +++ b/devices/8139too-3.6-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-3.8-ethercat.c b/devices/8139too-3.8-ethercat.c index 370828df..6f76e522 100644 --- a/devices/8139too-3.8-ethercat.c +++ b/devices/8139too-3.8-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -659,7 +657,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-4.4-ethercat.c b/devices/8139too-4.4-ethercat.c index 787f5019..71fcdfb2 100644 --- a/devices/8139too-4.4-ethercat.c +++ b/devices/8139too-4.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,14 +19,14 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT driver for RTL8139-compatible NICs. */ -/*****************************************************************************/ +/****************************************************************************/ /* Former documentation: @@ -663,7 +661,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-5.10-ethercat.c b/devices/8139too-5.10-ethercat.c index fffa7b95..b44f1eb6 100644 --- a/devices/8139too-5.10-ethercat.c +++ b/devices/8139too-5.10-ethercat.c @@ -662,7 +662,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/8139too-6.1-ethercat.c b/devices/8139too-6.1-ethercat.c index 8f906a0f..4871292a 100644 --- a/devices/8139too-6.1-ethercat.c +++ b/devices/8139too-6.1-ethercat.c @@ -663,7 +663,7 @@ struct rtl8139_private { ec_device_t *ecdev; }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); diff --git a/devices/Kbuild.in b/devices/Kbuild.in index 1454d3a2..ce299edf 100644 --- a/devices/Kbuild.in +++ b/devices/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -94,4 +92,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/ccat/Kbuild.in b/devices/ccat/Kbuild.in index 18060caf..4728668d 100644 --- a/devices/ccat/Kbuild.in +++ b/devices/ccat/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -50,4 +48,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/ccat/Makefile.am b/devices/ccat/Makefile.am index 2c9916db..9dc1e81b 100644 --- a/devices/ccat/Makefile.am +++ b/devices/ccat/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ @@ -32,5 +31,4 @@ EXTRA_DIST = \ update.h \ update.c - -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/e100-3.0-ethercat.c b/devices/e100-3.0-ethercat.c index 0ac05e49..a4830b65 100644 --- a/devices/e100-3.0-ethercat.c +++ b/devices/e100-3.0-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -231,7 +229,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.10-ethercat.c b/devices/e100-3.10-ethercat.c index eebad63b..9d5c1c5f 100644 --- a/devices/e100-3.10-ethercat.c +++ b/devices/e100-3.10-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.12-ethercat.c b/devices/e100-3.12-ethercat.c index d836b700..a1ab7409 100644 --- a/devices/e100-3.12-ethercat.c +++ b/devices/e100-3.12-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.14-ethercat.c b/devices/e100-3.14-ethercat.c index 79c01405..eafba8c6 100644 --- a/devices/e100-3.14-ethercat.c +++ b/devices/e100-3.14-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.16-ethercat.c b/devices/e100-3.16-ethercat.c index d351280b..b059b2d9 100644 --- a/devices/e100-3.16-ethercat.c +++ b/devices/e100-3.16-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.4-ethercat.c b/devices/e100-3.4-ethercat.c index df61cb8a..4603c362 100644 --- a/devices/e100-3.4-ethercat.c +++ b/devices/e100-3.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.6-ethercat.c b/devices/e100-3.6-ethercat.c index 3acda995..9c4f399c 100644 --- a/devices/e100-3.6-ethercat.c +++ b/devices/e100-3.6-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-3.8-ethercat.c b/devices/e100-3.8-ethercat.c index e9ad0534..85540783 100644 --- a/devices/e100-3.8-ethercat.c +++ b/devices/e100-3.8-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-4.4-ethercat.c b/devices/e100-4.4-ethercat.c index fe8510cb..a1b42622 100644 --- a/devices/e100-4.4-ethercat.c +++ b/devices/e100-4.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -32,7 +30,7 @@ /* Former documentation: */ -/******************************************************************************* +/***************************************************************************** Intel PRO/100 Linux driver Copyright(c) 1999 - 2006 Intel Corporation. @@ -58,7 +56,7 @@ e1000-devel Mailing List Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 -*******************************************************************************/ +*****************************************************************************/ /* * e100.c: Intel(R) PRO/100 ethernet driver @@ -233,7 +231,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-5.10-ethercat.c b/devices/e100-5.10-ethercat.c index 77b35b52..12f192ea 100644 --- a/devices/e100-5.10-ethercat.c +++ b/devices/e100-5.10-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -24,7 +22,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -206,7 +204,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); void e100_ec_poll(struct net_device *); diff --git a/devices/e100-5.14-ethercat.c b/devices/e100-5.14-ethercat.c index 5a5980da..8480ed92 100644 --- a/devices/e100-5.14-ethercat.c +++ b/devices/e100-5.14-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -24,7 +22,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -218,7 +216,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); void e100_ec_poll(struct net_device *); diff --git a/devices/e100-5.15-ethercat.c b/devices/e100-5.15-ethercat.c index 0fcb4480..a3a67295 100644 --- a/devices/e100-5.15-ethercat.c +++ b/devices/e100-5.15-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -24,7 +22,7 @@ * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -206,7 +204,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); void e100_ec_poll(struct net_device *); diff --git a/devices/e100-5.4-ethercat.c b/devices/e100-5.4-ethercat.c index 76ecb32d..7675e06c 100644 --- a/devices/e100-5.4-ethercat.c +++ b/devices/e100-5.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,12 +17,11 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * * --- * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -209,7 +206,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION ", master " EC_MASTER_VERSION); diff --git a/devices/e100-6.1-ethercat.c b/devices/e100-6.1-ethercat.c index 5007109e..7bf75bc0 100644 --- a/devices/e100-6.1-ethercat.c +++ b/devices/e100-6.1-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,12 +17,11 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * * --- * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -206,7 +203,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); void e100_ec_poll(struct net_device *); diff --git a/devices/e100-6.4-ethercat.c b/devices/e100-6.4-ethercat.c index 5007109e..7bf75bc0 100644 --- a/devices/e100-6.4-ethercat.c +++ b/devices/e100-6.4-ethercat.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2007-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,12 +17,11 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - * * --- * * vim: noexpandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file @@ -206,7 +203,7 @@ MODULE_FIRMWARE(FIRMWARE_D101S); MODULE_FIRMWARE(FIRMWARE_D102E); MODULE_DESCRIPTION(DRV_DESCRIPTION); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_LICENSE("GPL"); void e100_ec_poll(struct net_device *); diff --git a/devices/e1000/Kbuild.in b/devices/e1000/Kbuild.in index 11ab0dae..b3738dd8 100644 --- a/devices/e1000/Kbuild.in +++ b/devices/e1000/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -51,4 +49,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/e1000/Makefile.am b/devices/e1000/Makefile.am index 71b43b7f..afb8a1ff 100644 --- a/devices/e1000/Makefile.am +++ b/devices/e1000/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ @@ -207,4 +206,4 @@ EXTRA_DIST = \ e1000_param-6.1-ethercat.c \ e1000_param-6.1-orig.c -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/e1000/e1000_main-3.0-ethercat.c b/devices/e1000/e1000_main-3.0-ethercat.c index 95ea137e..12679874 100644 --- a/devices/e1000/e1000_main-3.0-ethercat.c +++ b/devices/e1000/e1000_main-3.0-ethercat.c @@ -217,7 +217,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.10-ethercat.c b/devices/e1000/e1000_main-3.10-ethercat.c index 5f3c097c..298ad80f 100644 --- a/devices/e1000/e1000_main-3.10-ethercat.c +++ b/devices/e1000/e1000_main-3.10-ethercat.c @@ -218,7 +218,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.12-ethercat.c b/devices/e1000/e1000_main-3.12-ethercat.c index d1e0dc96..5b9da28d 100644 --- a/devices/e1000/e1000_main-3.12-ethercat.c +++ b/devices/e1000/e1000_main-3.12-ethercat.c @@ -218,7 +218,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.14-ethercat.c b/devices/e1000/e1000_main-3.14-ethercat.c index e085fe4b..f48a024b 100644 --- a/devices/e1000/e1000_main-3.14-ethercat.c +++ b/devices/e1000/e1000_main-3.14-ethercat.c @@ -218,7 +218,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.16-ethercat.c b/devices/e1000/e1000_main-3.16-ethercat.c index a5f320e3..04ef2bb2 100644 --- a/devices/e1000/e1000_main-3.16-ethercat.c +++ b/devices/e1000/e1000_main-3.16-ethercat.c @@ -218,7 +218,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.4-ethercat.c b/devices/e1000/e1000_main-3.4-ethercat.c index aef666ec..1f84eeed 100644 --- a/devices/e1000/e1000_main-3.4-ethercat.c +++ b/devices/e1000/e1000_main-3.4-ethercat.c @@ -216,7 +216,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.6-ethercat.c b/devices/e1000/e1000_main-3.6-ethercat.c index 95cb1914..8566c00c 100644 --- a/devices/e1000/e1000_main-3.6-ethercat.c +++ b/devices/e1000/e1000_main-3.6-ethercat.c @@ -216,7 +216,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-3.8-ethercat.c b/devices/e1000/e1000_main-3.8-ethercat.c index 2d32709c..89511686 100644 --- a/devices/e1000/e1000_main-3.8-ethercat.c +++ b/devices/e1000/e1000_main-3.8-ethercat.c @@ -216,7 +216,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000/e1000_main-4.4-ethercat.c b/devices/e1000/e1000_main-4.4-ethercat.c index 9a57fd1c..b3649eb6 100644 --- a/devices/e1000/e1000_main-4.4-ethercat.c +++ b/devices/e1000/e1000_main-4.4-ethercat.c @@ -223,7 +223,7 @@ static struct pci_driver e1000_driver = { .err_handler = &e1000_err_handler }; -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT-capable Intel(R) PRO/1000 Network Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION(DRV_VERSION); diff --git a/devices/e1000e/Kbuild.in b/devices/e1000e/Kbuild.in index ce3fc7c1..a578d296 100644 --- a/devices/e1000e/Kbuild.in +++ b/devices/e1000e/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -78,4 +76,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/e1000e/Makefile.am b/devices/e1000e/Makefile.am index f622800f..74744b46 100644 --- a/devices/e1000e/Makefile.am +++ b/devices/e1000e/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id: Makefile.am,v 792892ab4806 2014/10/28 15:54:59 fp $ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ @@ -345,4 +344,4 @@ EXTRA_DIST = \ regs-4.4-orig.h \ update.sh -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/ecdev.h b/devices/ecdev.h index a3c17710..2f2e51d5 100644 --- a/devices/ecdev.h +++ b/devices/ecdev.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * @@ -34,14 +32,14 @@ * frames through connected devices. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __ECDEV_H__ #define __ECDEV_H__ #include -/*****************************************************************************/ +/****************************************************************************/ struct ec_device; typedef struct ec_device ec_device_t; /**< \see ec_device */ @@ -50,17 +48,17 @@ typedef struct ec_device ec_device_t; /**< \see ec_device */ */ typedef void (*ec_pollfunc_t)(struct net_device *); -/****************************************************************************** +/***************************************************************************** * Offering/withdrawal functions - *****************************************************************************/ + ****************************************************************************/ ec_device_t *ecdev_offer(struct net_device *net_dev, ec_pollfunc_t poll, struct module *module); void ecdev_withdraw(ec_device_t *device); -/****************************************************************************** +/***************************************************************************** * Device methods - *****************************************************************************/ + ****************************************************************************/ int ecdev_open(ec_device_t *device); void ecdev_close(ec_device_t *device); @@ -68,6 +66,6 @@ void ecdev_receive(ec_device_t *device, const void *data, size_t size); void ecdev_set_link(ec_device_t *device, uint8_t state); uint8_t ecdev_get_link(const ec_device_t *device); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/devices/generic.c b/devices/generic.c index 1b372b59..fac65964 100644 --- a/devices/generic.c +++ b/devices/generic.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT generic Ethernet device module. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -43,16 +41,16 @@ #define EC_GEN_RX_BUF_SIZE 1600 -/*****************************************************************************/ +/****************************************************************************/ int __init ec_gen_init_module(void); void __exit ec_gen_cleanup_module(void); -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT master generic Ethernet device module"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); @@ -83,7 +81,7 @@ int ec_gen_device_stop(ec_gen_device_t *); int ec_gen_device_start_xmit(ec_gen_device_t *, struct sk_buff *); void ec_gen_device_poll(ec_gen_device_t *); -/*****************************************************************************/ +/****************************************************************************/ static int ec_gen_netdev_open(struct net_device *dev) { @@ -91,7 +89,7 @@ static int ec_gen_netdev_open(struct net_device *dev) return ec_gen_device_open(gendev); } -/*****************************************************************************/ +/****************************************************************************/ static int ec_gen_netdev_stop(struct net_device *dev) { @@ -99,7 +97,7 @@ static int ec_gen_netdev_stop(struct net_device *dev) return ec_gen_device_stop(gendev); } -/*****************************************************************************/ +/****************************************************************************/ static int ec_gen_netdev_start_xmit( struct sk_buff *skb, @@ -110,7 +108,7 @@ static int ec_gen_netdev_start_xmit( return ec_gen_device_start_xmit(gendev, skb); } -/*****************************************************************************/ +/****************************************************************************/ void ec_gen_poll(struct net_device *dev) { @@ -118,7 +116,7 @@ void ec_gen_poll(struct net_device *dev) ec_gen_device_poll(gendev); } -/*****************************************************************************/ +/****************************************************************************/ static const struct net_device_ops ec_gen_netdev_ops = { .ndo_open = ec_gen_netdev_open, @@ -126,7 +124,7 @@ static const struct net_device_ops ec_gen_netdev_ops = { .ndo_start_xmit = ec_gen_netdev_start_xmit, }; -/*****************************************************************************/ +/****************************************************************************/ /** Init generic device. */ @@ -159,7 +157,7 @@ int ec_gen_device_init( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Clear generic device. */ @@ -181,7 +179,7 @@ void ec_gen_device_clear( } } -/*****************************************************************************/ +/****************************************************************************/ /** Creates a network socket. */ @@ -229,7 +227,7 @@ int ec_gen_device_create_socket( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Offer generic device to master. */ @@ -264,7 +262,7 @@ int ec_gen_device_offer( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Open the device. */ @@ -275,7 +273,7 @@ int ec_gen_device_open( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Stop the device. */ @@ -286,7 +284,7 @@ int ec_gen_device_stop( return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ec_gen_device_start_xmit( ec_gen_device_t *dev, @@ -309,7 +307,7 @@ int ec_gen_device_start_xmit( return ret == len ? NETDEV_TX_OK : NETDEV_TX_BUSY; } -/*****************************************************************************/ +/****************************************************************************/ /** Polls the device. */ @@ -339,7 +337,7 @@ void ec_gen_device_poll( } while (budget); } -/*****************************************************************************/ +/****************************************************************************/ /** Offer device. */ @@ -371,7 +369,7 @@ int offer_device( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Clear devices. */ @@ -386,7 +384,7 @@ void clear_devices(void) } } -/*****************************************************************************/ +/****************************************************************************/ /** Module initialization. * @@ -442,7 +440,7 @@ out_err: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Module cleanup. * @@ -454,7 +452,7 @@ void __exit ec_gen_cleanup_module(void) printk(KERN_INFO PFX "Unloading.\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -463,4 +461,4 @@ module_exit(ec_gen_cleanup_module); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/devices/genet/Kbuild.in b/devices/genet/Kbuild.in index a40d01e2..40c6f698 100644 --- a/devices/genet/Kbuild.in +++ b/devices/genet/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2017 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- TOPDIR := $(src)/../.. @@ -47,4 +45,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/igb/Kbuild.in b/devices/igb/Kbuild.in index cdcdec3e..65c1e58d 100644 --- a/devices/igb/Kbuild.in +++ b/devices/igb/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2017 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -58,4 +56,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/igc/Kbuild.in b/devices/igc/Kbuild.in index d2aab2a9..e896c9c1 100644 --- a/devices/igc/Kbuild.in +++ b/devices/igc/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2017 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- TOPDIR := $(src)/../.. @@ -57,4 +55,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/devices/r8169/Kbuild.in b/devices/r8169/Kbuild.in index 5535c59e..b9857d7a 100644 --- a/devices/r8169/Kbuild.in +++ b/devices/r8169/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,16 +19,9 @@ # # --- # -# The license mentioned above concerns the source code only. Using the -# EtherCAT technology and brand is only permitted in compliance with the -# industrial property and similar rights of Beckhoff Automation GmbH. -# -# --- -# # vim: syntax=make # -#------------------------------------------------------------------------------ - +#----------------------------------------------------------------------------- TOPDIR := $(src)/../.. @@ -57,3 +48,5 @@ endif KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) + +#----------------------------------------------------------------------------- diff --git a/devices/r8169/Makefile.am b/devices/r8169/Makefile.am index a0e4c4ec..6913a4c6 100644 --- a/devices/r8169/Makefile.am +++ b/devices/r8169/Makefile.am @@ -1,4 +1,4 @@ -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2021 Florian Pose, Ingenieurgemeinschaft IgH # @@ -17,13 +17,7 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# --- -# -# The license mentioned above concerns the source code only. Using the -# EtherCAT technology and brand is only permitted in compliance with the -# industrial property and similar rights of Beckhoff Automation GmbH. -# -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- include $(top_srcdir)/Makefile.kbuild @@ -68,3 +62,5 @@ EXTRA_DIST = \ r8169_phy_config-5.15-orig.c \ r8169_phy_config-6.1-ethercat.c \ r8169_phy_config-6.1-orig.c + +#----------------------------------------------------------------------------- diff --git a/documentation/Makefile b/documentation/Makefile index ff6971e2..ae5cadcb 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -1,10 +1,8 @@ -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- # # LaTeX Makefile # -# $Id$ -# -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- FILE := ethercat_doc @@ -44,7 +42,7 @@ EXT_FILES := $(addprefix $(EXT_PREFIX),$(COMMANDS)) ETHERCAT_CMD := ../tool/ethercat ETHERCAT_HELP := $(ETHERCAT_CMD) -h -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- all: pdf @@ -92,4 +90,4 @@ clean: *~ \ images/*.bak -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/documentation/graphs/Makefile b/documentation/graphs/Makefile index d067546b..d06f8112 100644 --- a/documentation/graphs/Makefile +++ b/documentation/graphs/Makefile @@ -1,8 +1,4 @@ #----------------------------------------------------------------------------- -# -# $Id$ -# -#----------------------------------------------------------------------------- GRAPHS := \ fsm_change \ diff --git a/documentation/graphs/fsm_change.dot b/documentation/graphs/fsm_change.dot index 84a591d7..f682e2f7 100644 --- a/documentation/graphs/fsm_change.dot +++ b/documentation/graphs/fsm_change.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph change { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_eoe.dot b/documentation/graphs/fsm_eoe.dot index 5473c157..b1ef361c 100644 --- a/documentation/graphs/fsm_eoe.dot +++ b/documentation/graphs/fsm_eoe.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph eoe { node [fontname="Helvetica"] edge [fontname="Helvetica",fontsize=12] diff --git a/documentation/graphs/fsm_master.dot b/documentation/graphs/fsm_master.dot index 7095f527..50dadb1e 100644 --- a/documentation/graphs/fsm_master.dot +++ b/documentation/graphs/fsm_master.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph master { size="7,9" center=1 diff --git a/documentation/graphs/fsm_pdo_conf.dot b/documentation/graphs/fsm_pdo_conf.dot index d8f17b18..8149d12e 100644 --- a/documentation/graphs/fsm_pdo_conf.dot +++ b/documentation/graphs/fsm_pdo_conf.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph pdo_conf { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_pdo_entry_conf.dot b/documentation/graphs/fsm_pdo_entry_conf.dot index 86c2649c..54ac2165 100644 --- a/documentation/graphs/fsm_pdo_entry_conf.dot +++ b/documentation/graphs/fsm_pdo_entry_conf.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph pdo_entry_conf { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_pdo_entry_read.dot b/documentation/graphs/fsm_pdo_entry_read.dot index 235fca90..b5153ef1 100644 --- a/documentation/graphs/fsm_pdo_entry_read.dot +++ b/documentation/graphs/fsm_pdo_entry_read.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph pdo_entry_read { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_pdo_read.dot b/documentation/graphs/fsm_pdo_read.dot index 2eaccae2..ad8836b0 100644 --- a/documentation/graphs/fsm_pdo_read.dot +++ b/documentation/graphs/fsm_pdo_read.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph pdo_read { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_sii.dot b/documentation/graphs/fsm_sii.dot index 112cd992..467eb105 100644 --- a/documentation/graphs/fsm_sii.dot +++ b/documentation/graphs/fsm_sii.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph sii { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_slave_conf.dot b/documentation/graphs/fsm_slave_conf.dot index 486e551f..cee27683 100644 --- a/documentation/graphs/fsm_slave_conf.dot +++ b/documentation/graphs/fsm_slave_conf.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph slaveconf { node [fontname="Helvetica"] edge [fontname="Helvetica", fontsize="12"] diff --git a/documentation/graphs/fsm_slave_scan.dot b/documentation/graphs/fsm_slave_scan.dot index ba1625c6..e812a67f 100644 --- a/documentation/graphs/fsm_slave_scan.dot +++ b/documentation/graphs/fsm_slave_scan.dot @@ -1,6 +1,3 @@ - -/* $Id$ */ - digraph slavescan { node [fontname="Helvetica"] diff --git a/documentation/images/Makefile b/documentation/images/Makefile index 098bcc05..e4166bf7 100644 --- a/documentation/images/Makefile +++ b/documentation/images/Makefile @@ -1,8 +1,4 @@ #----------------------------------------------------------------------------- -# -# $Id$ -# -#----------------------------------------------------------------------------- FIGS := \ app-config.fig \ diff --git a/ethercat.spec.in b/ethercat.spec.in index 65484064..bfc65ba0 100644 --- a/ethercat.spec.in +++ b/ethercat.spec.in @@ -1,6 +1,4 @@ -#---------------------------------------------------------------------------- -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2010 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,7 +19,7 @@ # # vim: tw=78 # -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- Name: @PACKAGE@ Version: @VERSION@ @@ -36,9 +34,9 @@ BuildRoot: /tmp/%{name}-%{version} BuildRequires: %kernel_module_package_buildreqs -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- # Main Package -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- Summary: IgH EtherCAT Master Group: EtherLab @@ -50,9 +48,9 @@ http://etherlab.org/en/ethercat. %kernel_module_package -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- # Development package -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- %package devel @@ -64,7 +62,7 @@ This is an open-source EtherCAT master implementation for Linux 2.6. See the FEATURES file for a list of features. For more information, see http://etherlab.org/en/ethercat. -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- %prep %setup @@ -120,4 +118,4 @@ rm -rf ${RPM_BUILD_ROOT} /usr/lib/libethercat.a /usr/lib/libethercat.la -#---------------------------------------------------------------------------- +#----------------------------------------------------------------------------- diff --git a/examples/Kbuild.in b/examples/Kbuild.in index 58266df7..b14136ad 100644 --- a/examples/Kbuild.in +++ b/examples/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,7 +19,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- obj-m := mini/ @@ -33,4 +31,4 @@ ifeq (@ENABLE_RTAI@,1) obj-m += rtai/ dc_rtai/ endif -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/Makefile.am b/examples/Makefile.am index e3dd8a0e..7ac06ecd 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild SUBDIRS = @@ -63,4 +62,4 @@ DIST_SUBDIRS = \ xenomai \ xenomai_posix -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/dc_rtai/Kbuild.in b/examples/dc_rtai/Kbuild.in index 89c2af34..9a694720 100644 --- a/examples/dc_rtai/Kbuild.in +++ b/examples/dc_rtai/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -38,4 +36,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/dc_rtai/Makefile.am b/examples/dc_rtai/Makefile.am index 8f1430c3..a47b0346 100644 --- a/examples/dc_rtai/Makefile.am +++ b/examples/dc_rtai/Makefile.am @@ -1,8 +1,4 @@ -#------------------------------------------------------------------------------ -# -# IgH EtherCAT master module -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,10 +17,11 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ dc_rtai_sample.c -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/dc_rtai/dc_rtai_sample.c b/examples/dc_rtai/dc_rtai_sample.c index b831cde4..b41869c8 100644 --- a/examples/dc_rtai/dc_rtai_sample.c +++ b/examples/dc_rtai/dc_rtai_sample.c @@ -1,9 +1,7 @@ -/****************************************************************************** +/***************************************************************************** * * Distributed clocks sample for the IgH EtherCAT master. * - * $Id$ - * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * * This file is part of the IgH EtherCAT Master. @@ -21,7 +19,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ // Linux #include @@ -34,7 +32,7 @@ // EtherCAT #include "../../include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ // Module parameters @@ -47,7 +45,7 @@ #define PFX "ec_dc_rtai_sample: " -/*****************************************************************************/ +/****************************************************************************/ // EtherCAT static ec_master_t *master = NULL; @@ -61,7 +59,7 @@ static RT_TASK task; static SEM master_sem; static cycles_t t_last_cycle = 0, t_critical; -/*****************************************************************************/ +/****************************************************************************/ // process data static uint8_t *domain1_pd; // process data memory @@ -82,7 +80,7 @@ static unsigned int blink_counter = 0; static unsigned int blink = 0; static u32 counter_value = 0U; -/*****************************************************************************/ +/****************************************************************************/ static ec_pdo_entry_info_t el2008_channels[] = { {0x7000, 1, 1}, @@ -112,7 +110,7 @@ static ec_sync_info_t el2008_syncs[] = { {0xff} }; -/*****************************************************************************/ +/****************************************************************************/ void check_domain1_state(void) { @@ -130,7 +128,7 @@ void check_domain1_state(void) domain1_state = ds; } -/*****************************************************************************/ +/****************************************************************************/ void check_master_state(void) { @@ -150,7 +148,7 @@ void check_master_state(void) master_state = ms; } -/*****************************************************************************/ +/****************************************************************************/ void run(long data) { @@ -225,7 +223,7 @@ void run(long data) } } -/*****************************************************************************/ +/****************************************************************************/ void send_callback(void *cb_data) { @@ -239,7 +237,7 @@ void send_callback(void *cb_data) } } -/*****************************************************************************/ +/****************************************************************************/ void receive_callback(void *cb_data) { @@ -253,7 +251,7 @@ void receive_callback(void *cb_data) } } -/*****************************************************************************/ +/****************************************************************************/ int __init init_mod(void) { @@ -368,7 +366,7 @@ int __init init_mod(void) return ret; } -/*****************************************************************************/ +/****************************************************************************/ void __exit cleanup_mod(void) { @@ -382,13 +380,13 @@ void __exit cleanup_mod(void) printk(KERN_INFO PFX "Unloading.\n"); } -/*****************************************************************************/ +/****************************************************************************/ MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT distributed clocks sample module"); module_init(init_mod); module_exit(cleanup_mod); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/dc_user/Makefile.am b/examples/dc_user/Makefile.am index a8aee924..2d3289b3 100644 --- a/examples/dc_user/Makefile.am +++ b/examples/dc_user/Makefile.am @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/examples/mini/Kbuild.in b/examples/mini/Kbuild.in index c39ca49b..2b2e2db5 100644 --- a/examples/mini/Kbuild.in +++ b/examples/mini/Kbuild.in @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/examples/mini/Makefile.am b/examples/mini/Makefile.am index e54c09cd..36a09a40 100644 --- a/examples/mini/Makefile.am +++ b/examples/mini/Makefile.am @@ -1,10 +1,4 @@ -#------------------------------------------------------------------------------ -# -# Makefile.am -# -# IgH EtherCAT master module -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,10 +17,11 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ mini.c -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/mini/README b/examples/mini/README index db40955b..90e94615 100644 --- a/examples/mini/README +++ b/examples/mini/README @@ -1,8 +1,4 @@ -------------------------------------------------------------------------------- - -$Id$ - -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ This is a minimal example module for the use of the EtherCAT master realtime interface. It uses a kernel timer to generate a cyclic task. @@ -25,4 +21,4 @@ insmod ec_mini.ko ...and watch the system logs for the outputs. -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ diff --git a/examples/mini/mini.c b/examples/mini/mini.c index a41504eb..ce0c94ce 100644 --- a/examples/mini/mini.c +++ b/examples/mini/mini.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -31,7 +29,7 @@ #include "../../include/ecrt.h" // EtherCAT realtime interface -/*****************************************************************************/ +/****************************************************************************/ // Module parameters #define FREQUENCY 100 @@ -45,7 +43,7 @@ #define PFX "ec_mini: " -/*****************************************************************************/ +/****************************************************************************/ // EtherCAT static ec_master_t *master = NULL; @@ -61,7 +59,7 @@ static ec_slave_config_state_t sc_ana_in_state = {}; // Timer static struct timer_list timer; -/*****************************************************************************/ +/****************************************************************************/ // process data static uint8_t *domain1_pd; // process data memory @@ -93,7 +91,7 @@ const static ec_pdo_entry_reg_t domain1_regs[] = { static unsigned int counter = 0; static unsigned int blink = 0; -/*****************************************************************************/ +/****************************************************************************/ #if CONFIGURE_PDOS @@ -172,7 +170,7 @@ static ec_sync_info_t el2004_syncs[] = { }; #endif -/*****************************************************************************/ +/****************************************************************************/ #if SDO_ACCESS static ec_sdo_request_t *sdo; @@ -182,7 +180,7 @@ static ec_sdo_request_t *sdo; static ec_voe_handler_t *voe; #endif -/*****************************************************************************/ +/****************************************************************************/ void check_domain1_state(void) { @@ -200,7 +198,7 @@ void check_domain1_state(void) domain1_state = ds; } -/*****************************************************************************/ +/****************************************************************************/ void check_master_state(void) { @@ -220,7 +218,7 @@ void check_master_state(void) master_state = ms; } -/*****************************************************************************/ +/****************************************************************************/ void check_slave_config_states(void) { @@ -241,7 +239,7 @@ void check_slave_config_states(void) sc_ana_in_state = s; } -/*****************************************************************************/ +/****************************************************************************/ #if SDO_ACCESS void read_sdo(void) @@ -266,7 +264,7 @@ void read_sdo(void) } #endif -/*****************************************************************************/ +/****************************************************************************/ #if VOE_ACCESS void read_voe(void) @@ -291,7 +289,7 @@ void read_voe(void) } #endif -/*****************************************************************************/ +/****************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) void cyclic_task(struct timer_list *t) @@ -346,7 +344,7 @@ void cyclic_task(unsigned long data) add_timer(&timer); } -/*****************************************************************************/ +/****************************************************************************/ void send_callback(void *cb_data) { @@ -356,7 +354,7 @@ void send_callback(void *cb_data) up(&master_sem); } -/*****************************************************************************/ +/****************************************************************************/ void receive_callback(void *cb_data) { @@ -366,7 +364,7 @@ void receive_callback(void *cb_data) up(&master_sem); } -/*****************************************************************************/ +/****************************************************************************/ int __init init_mini_module(void) { @@ -506,7 +504,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ void __exit cleanup_mini_module(void) { @@ -524,13 +522,13 @@ void __exit cleanup_mini_module(void) printk(KERN_INFO PFX "Unloading.\n"); } -/*****************************************************************************/ +/****************************************************************************/ MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT minimal test environment"); module_init(init_mini_module); module_exit(cleanup_mini_module); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/rtai/Kbuild.in b/examples/rtai/Kbuild.in index e6523f13..ac0621ad 100644 --- a/examples/rtai/Kbuild.in +++ b/examples/rtai/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -38,4 +36,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/rtai/Makefile.am b/examples/rtai/Makefile.am index c610ef66..68ed997c 100644 --- a/examples/rtai/Makefile.am +++ b/examples/rtai/Makefile.am @@ -1,8 +1,4 @@ -#------------------------------------------------------------------------------ -# -# IgH EtherCAT master module -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -21,10 +17,11 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild EXTRA_DIST = \ rtai_sample.c -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/rtai/README b/examples/rtai/README index a2aaea0c..ba6fdede 100644 --- a/examples/rtai/README +++ b/examples/rtai/README @@ -1,8 +1,4 @@ -------------------------------------------------------------------------------- - -$Id$ - -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ This is a minimal example module for the use of the EtherCAT master realtime interface with an RTAI thread. @@ -28,4 +24,4 @@ insmod ec_rtai_sample.ko ...and watch the system logs for the outputs. -------------------------------------------------------------------------------- +------------------------------------------------------------------------------ diff --git a/examples/rtai/rtai_sample.c b/examples/rtai/rtai_sample.c index 67c68531..eabdd82b 100644 --- a/examples/rtai/rtai_sample.c +++ b/examples/rtai/rtai_sample.c @@ -1,9 +1,7 @@ -/****************************************************************************** +/***************************************************************************** * * RTAI sample for the IgH EtherCAT master. * - * $Id$ - * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * * This file is part of the IgH EtherCAT Master. @@ -21,7 +19,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ // Linux #include @@ -34,7 +32,7 @@ // EtherCAT #include "../../include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ // Module parameters @@ -48,7 +46,7 @@ #define PFX "ec_rtai_sample: " -/*****************************************************************************/ +/****************************************************************************/ // EtherCAT static ec_master_t *master = NULL; @@ -65,7 +63,7 @@ static RT_TASK task; static SEM master_sem; static cycles_t t_last_cycle = 0, t_critical; -/*****************************************************************************/ +/****************************************************************************/ // process data static uint8_t *domain1_pd; // process data memory @@ -88,7 +86,7 @@ const static ec_pdo_entry_reg_t domain1_regs[] = { static unsigned int counter = 0; static unsigned int blink = 0; -/*****************************************************************************/ +/****************************************************************************/ #ifdef CONFIGURE_PDOS static ec_pdo_entry_info_t el3162_channel1[] = { @@ -133,7 +131,7 @@ static ec_sync_info_t el2004_syncs[] = { }; #endif -/*****************************************************************************/ +/****************************************************************************/ void check_domain1_state(void) { @@ -151,7 +149,7 @@ void check_domain1_state(void) domain1_state = ds; } -/*****************************************************************************/ +/****************************************************************************/ void check_master_state(void) { @@ -171,7 +169,7 @@ void check_master_state(void) master_state = ms; } -/*****************************************************************************/ +/****************************************************************************/ void check_slave_config_states(void) { @@ -192,7 +190,7 @@ void check_slave_config_states(void) sc_ana_in_state = s; } -/*****************************************************************************/ +/****************************************************************************/ void run(long data) { @@ -235,7 +233,7 @@ void run(long data) } } -/*****************************************************************************/ +/****************************************************************************/ void send_callback(void *cb_data) { @@ -249,7 +247,7 @@ void send_callback(void *cb_data) } } -/*****************************************************************************/ +/****************************************************************************/ void receive_callback(void *cb_data) { @@ -263,7 +261,7 @@ void receive_callback(void *cb_data) } } -/*****************************************************************************/ +/****************************************************************************/ int __init init_mod(void) { @@ -307,7 +305,8 @@ int __init init_mod(void) goto out_release_master; } - if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos, Beckhoff_EL2004))) { + if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos, + Beckhoff_EL2004))) { printk(KERN_ERR PFX "Failed to get slave configuration.\n"); goto out_release_master; } @@ -366,7 +365,7 @@ int __init init_mod(void) return ret; } -/*****************************************************************************/ +/****************************************************************************/ void __exit cleanup_mod(void) { @@ -380,13 +379,13 @@ void __exit cleanup_mod(void) printk(KERN_INFO PFX "Unloading.\n"); } -/*****************************************************************************/ +/****************************************************************************/ MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT RTAI sample module"); module_init(init_mod); module_exit(cleanup_mod); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/rtai_rtdm/Makefile.am b/examples/rtai_rtdm/Makefile.am index 384ad64e..c054879b 100644 --- a/examples/rtai_rtdm/Makefile.am +++ b/examples/rtai_rtdm/Makefile.am @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/examples/rtai_rtdm/main.c b/examples/rtai_rtdm/main.c index b160d17f..577310f7 100644 --- a/examples/rtai_rtdm/main.c +++ b/examples/rtai_rtdm/main.c @@ -1,9 +1,7 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2011 IgH Andreas Stewering-Bone - * 2012 Florian Pose + * 2012 Florian Pose * * This file is part of the IgH EtherCAT master * @@ -19,7 +17,7 @@ * You should have received a copy of the GNU General Public License along * with the IgH EtherCAT master. If not, see . * - *****************************************************************************/ + ****************************************************************************/ #include #include diff --git a/examples/rtai_rtdm_dc/Makefile.am b/examples/rtai_rtdm_dc/Makefile.am index 0742be1a..0a5c137b 100644 --- a/examples/rtai_rtdm_dc/Makefile.am +++ b/examples/rtai_rtdm_dc/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -15,11 +13,11 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# the IgH EtherCAT Master; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU General Public License along +# with the IgH EtherCAT Master; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- noinst_PROGRAMS = ec_rtai_rtdm_dc_example @@ -34,4 +32,4 @@ ec_rtai_rtdm_dc_example_LDFLAGS = \ $(RTAI_LXRT_LDFLAGS) -llxrt -lrtdm \ -L$(top_builddir)/lib/.libs -lethercat_rtdm -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/rtai_rtdm_dc/main.c b/examples/rtai_rtdm_dc/main.c index c87c4dde..61fa4ae4 100644 --- a/examples/rtai_rtdm_dc/main.c +++ b/examples/rtai_rtdm_dc/main.c @@ -1,9 +1,7 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2011 IgH Andreas Stewering-Bone - * 2012 Florian Pose + * 2012 Florian Pose * * This file is part of the IgH EtherCAT master * @@ -19,7 +17,7 @@ * You should have received a copy of the GNU General Public License along * with the IgH EtherCAT master. If not, see . * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -174,7 +172,7 @@ RTIME system2count( return nano2count(ret); } -/*****************************************************************************/ +/****************************************************************************/ /** Synchronise the distributed clocks */ @@ -200,7 +198,7 @@ void sync_distributed_clocks(void) ecrt_master_sync_slave_clocks(master); } -/*****************************************************************************/ +/****************************************************************************/ /** Return the sign of a number * @@ -212,7 +210,7 @@ void sync_distributed_clocks(void) ({ typeof (val) _val = (val); \ ((_val > 0) - (_val < 0)); }) -/*****************************************************************************/ +/****************************************************************************/ /** Update the master time based on ref slaves time diff * @@ -430,18 +428,18 @@ void my_cyclic(void) stop_rt_timer(); } -/**************************************************************************** +/***************************************************************************** * Signal handler - ***************************************************************************/ + ****************************************************************************/ void signal_handler(int sig) { run = 0; } -/**************************************************************************** +/***************************************************************************** * Main function - ***************************************************************************/ + ****************************************************************************/ int main(int argc, char *argv[]) { diff --git a/examples/tty/Kbuild.in b/examples/tty/Kbuild.in index 72a7f109..44648787 100644 --- a/examples/tty/Kbuild.in +++ b/examples/tty/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -40,4 +38,4 @@ KBUILD_EXTRA_SYMBOLS := \ @abs_top_builddir@/$(LINUX_SYMVERS) \ @abs_top_builddir@/master/$(LINUX_SYMVERS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/tty/Makefile.am b/examples/tty/Makefile.am index 98a95826..5dba24d8 100644 --- a/examples/tty/Makefile.am +++ b/examples/tty/Makefile.am @@ -1,10 +1,4 @@ -#------------------------------------------------------------------------------ -# -# Makefile.am -# -# IgH EtherCAT master module -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild noinst_HEADERS = \ @@ -31,4 +26,4 @@ noinst_HEADERS = \ serial.h \ tty.c -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/tty/serial.c b/examples/tty/serial.c index cc943892..cd9c8e2e 100644 --- a/examples/tty/serial.c +++ b/examples/tty/serial.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -29,14 +27,14 @@ #include "../../include/ecrt.h" // EtherCAT realtime interface #include "../../include/ectty.h" // EtherCAT TTY interface -/*****************************************************************************/ +/****************************************************************************/ // Optional features #define PFX "ec_tty_example: " #define DEBUG 0 -/*****************************************************************************/ +/****************************************************************************/ #define VendorIdBeckhoff 0x00000002 #define ProductCodeBeckhoffEL6002 0x17723052 @@ -44,7 +42,7 @@ #define VendorIdIds 0x000012ad #define ProductCodeIdsCSI71A 0x17723052 -/*****************************************************************************/ +/****************************************************************************/ typedef enum { SER_REQUEST_INIT, @@ -108,7 +106,7 @@ typedef struct { LIST_HEAD(handlers); -/*****************************************************************************/ +/****************************************************************************/ /* Beckhoff EL6002 * Vendor ID: 0x00000002 @@ -546,7 +544,8 @@ void el60xx_port_run(el60xx_port_t *port, u8 *pd) tx_accepted_toggle = status & 0x0001; if (tx_accepted_toggle != port->tx_accepted_toggle) { // ready port->tx_data_size = - ectty_tx_data(port->tty, port->tx_data, port->max_tx_data_size); + ectty_tx_data(port->tty, port->tx_data, + port->max_tx_data_size); if (port->tx_data_size) { #if DEBUG printk(KERN_INFO PFX "%s: Sending %u bytes.\n", @@ -723,7 +722,7 @@ void el6002_run(el6002_t *el6002, u8 *pd) } } -/*****************************************************************************/ +/****************************************************************************/ void run_serial_devices(u8 *pd) { @@ -734,7 +733,7 @@ void run_serial_devices(u8 *pd) } } -/*****************************************************************************/ +/****************************************************************************/ int create_el6002_handler(ec_master_t *master, ec_domain_t *domain, u16 position, u32 vendor, u32 product) @@ -761,7 +760,7 @@ int create_el6002_handler(ec_master_t *master, ec_domain_t *domain, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int create_serial_devices(ec_master_t *master, ec_domain_t *domain) { @@ -815,7 +814,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ void free_serial_devices(void) { @@ -832,4 +831,4 @@ void free_serial_devices(void) printk(KERN_INFO PFX "Finished cleaning up serial devices.\n"); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/tty/serial.h b/examples/tty/serial.h index 75340ca1..f500e2c2 100644 --- a/examples/tty/serial.h +++ b/examples/tty/serial.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,11 +17,11 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ int create_serial_devices(ec_master_t *, ec_domain_t *); void free_serial_devices(void); void run_serial_devices(u8 *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/tty/tty.c b/examples/tty/tty.c index 9001138d..a82e3be8 100644 --- a/examples/tty/tty.c +++ b/examples/tty/tty.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -32,7 +30,7 @@ #include "serial.h" -/*****************************************************************************/ +/****************************************************************************/ // Module parameters #define FREQUENCY 100 @@ -41,7 +39,7 @@ #define PFX "ec_tty_example: " -/*****************************************************************************/ +/****************************************************************************/ // EtherCAT static ec_master_t *master = NULL; @@ -54,7 +52,7 @@ static ec_domain_state_t domain1_state = {}; // Timer static struct timer_list timer; -/*****************************************************************************/ +/****************************************************************************/ // process data static uint8_t *domain1_pd; // process data memory @@ -65,7 +63,7 @@ static uint8_t *domain1_pd; // process data memory static unsigned int counter = 0; -/*****************************************************************************/ +/****************************************************************************/ void check_domain1_state(void) { @@ -83,7 +81,7 @@ void check_domain1_state(void) domain1_state = ds; } -/*****************************************************************************/ +/****************************************************************************/ void check_master_state(void) { @@ -103,7 +101,7 @@ void check_master_state(void) master_state = ms; } -/*****************************************************************************/ +/****************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0) void cyclic_task(struct timer_list *t) @@ -142,7 +140,7 @@ void cyclic_task(unsigned long data) add_timer(&timer); } -/*****************************************************************************/ +/****************************************************************************/ void send_callback(void *cb_data) { @@ -152,7 +150,7 @@ void send_callback(void *cb_data) up(&master_sem); } -/*****************************************************************************/ +/****************************************************************************/ void receive_callback(void *cb_data) { @@ -162,7 +160,7 @@ void receive_callback(void *cb_data) up(&master_sem); } -/*****************************************************************************/ +/****************************************************************************/ int __init init_mini_module(void) { @@ -229,7 +227,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ void __exit cleanup_mini_module(void) { @@ -245,13 +243,13 @@ void __exit cleanup_mini_module(void) printk(KERN_INFO PFX "Unloading.\n"); } -/*****************************************************************************/ +/****************************************************************************/ MODULE_LICENSE("GPL"); -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT minimal test environment"); module_init(init_mini_module); module_exit(cleanup_mini_module); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/examples/user/Makefile.am b/examples/user/Makefile.am index a796ef22..3cbe8521 100644 --- a/examples/user/Makefile.am +++ b/examples/user/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,7 @@ # the IgH EtherCAT Master; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- noinst_PROGRAMS = ec_user_example @@ -27,4 +25,4 @@ ec_user_example_SOURCES = main.c ec_user_example_CFLAGS = -I$(top_srcdir)/include -Wall ec_user_example_LDFLAGS = -L$(top_builddir)/lib/.libs -lethercat -lrt -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/user/main.c b/examples/user/main.c index 086cc9e0..7feffc74 100644 --- a/examples/user/main.c +++ b/examples/user/main.c @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2007-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -98,7 +96,7 @@ const static ec_pdo_entry_reg_t domain1_regs[] = { static unsigned int counter = 0; static unsigned int blink = 0; -/*****************************************************************************/ +/****************************************************************************/ // Analog in -------------------------- @@ -162,7 +160,7 @@ static ec_sync_info_t el2004_syncs[] = { {0xff} }; -/*****************************************************************************/ +/****************************************************************************/ void check_domain1_state(void) { @@ -180,7 +178,7 @@ void check_domain1_state(void) domain1_state = ds; } -/*****************************************************************************/ +/****************************************************************************/ void check_master_state(void) { @@ -201,7 +199,7 @@ void check_master_state(void) master_state = ms; } -/*****************************************************************************/ +/****************************************************************************/ void check_slave_config_states(void) { @@ -222,7 +220,7 @@ void check_slave_config_states(void) sc_ana_in_state = s; } -/*****************************************************************************/ +/****************************************************************************/ void cyclic_task() { diff --git a/examples/xenomai/Makefile.am b/examples/xenomai/Makefile.am index b021643d..5792e1ef 100644 --- a/examples/xenomai/Makefile.am +++ b/examples/xenomai/Makefile.am @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/examples/xenomai/main.c b/examples/xenomai/main.c index 18e289b9..e76dff20 100644 --- a/examples/xenomai/main.c +++ b/examples/xenomai/main.c @@ -1,10 +1,8 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2009-2010 Moehwald GmbH B. Benner * 2011 IgH Andreas Stewering-Bone - * 2012 Florian Pose + * 2012 Florian Pose * * This file is part of the IgH EtherCAT master * @@ -20,7 +18,7 @@ * You should have received a copy of the GNU General Public License along * with the IgH EtherCAT master. If not, see . * - *****************************************************************************/ + ****************************************************************************/ #include #include diff --git a/examples/xenomai_posix/Makefile.am b/examples/xenomai_posix/Makefile.am index d573c3b0..5d3962de 100644 --- a/examples/xenomai_posix/Makefile.am +++ b/examples/xenomai_posix/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -15,11 +13,11 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # -# You should have received a copy of the GNU General Public License along with -# the IgH EtherCAT Master; if not, write to the Free Software Foundation, -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# You should have received a copy of the GNU General Public License along +# with the IgH EtherCAT Master; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- noinst_PROGRAMS = ec_xenomai_posix_example @@ -36,4 +34,4 @@ ec_xenomai_posix_example_LDFLAGS = \ $(XENOMAI_POSIX_LDFLAGS) \ $(XENOMAI_RTDM_LDFLAGS) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/examples/xenomai_posix/main.c b/examples/xenomai_posix/main.c index aec530cd..28f9254f 100644 --- a/examples/xenomai_posix/main.c +++ b/examples/xenomai_posix/main.c @@ -1,9 +1,7 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2011 IgH Andreas Stewering-Bone - * 2012 Florian Pose + * 2012 Florian Pose * * This file is part of the IgH EtherCAT master * @@ -19,7 +17,7 @@ * You should have received a copy of the GNU General Public License along * with the IgH EtherCAT master. If not, see . * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -196,18 +194,18 @@ void *my_thread(void *arg) return NULL; } -/**************************************************************************** +/***************************************************************************** * Signal handler - ***************************************************************************/ + ****************************************************************************/ void signal_handler(int sig) { run = 0; } -/**************************************************************************** +/***************************************************************************** * Main function - ***************************************************************************/ + ****************************************************************************/ int main(int argc, char *argv[]) { diff --git a/include/Makefile.am b/include/Makefile.am index 26490129..3ae0eeff 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,10 +1,4 @@ -#------------------------------------------------------------------------------ -# -# Makefile.am -# -# IgH EtherCAT master -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,10 +17,10 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- include_HEADERS = \ ecrt.h \ ectty.h -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/include/ecrt.h b/include/ecrt.h index 9a041986..9cdd10e1 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2024 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,7 +18,7 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ /** \file * @@ -150,7 +150,7 @@ * @{ */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __ECRT_H__ #define __ECRT_H__ @@ -165,9 +165,9 @@ #include // for struct timeval #endif -/****************************************************************************** +/***************************************************************************** * Global definitions - *****************************************************************************/ + ****************************************************************************/ /** EtherCAT realtime interface major version number. */ @@ -185,9 +185,9 @@ */ #define ECRT_VERSION_MAGIC ECRT_VERSION(ECRT_VER_MAJOR, ECRT_VER_MINOR) -/****************************************************************************** +/***************************************************************************** * Feature flags - *****************************************************************************/ + ****************************************************************************/ /** Defined, if the redundancy features are available. * @@ -243,7 +243,7 @@ */ #define EC_HAVE_SCAN_PROGRESS -/*****************************************************************************/ +/****************************************************************************/ /** Symbol visibility control macro. */ @@ -255,7 +255,7 @@ # endif #endif -/*****************************************************************************/ +/****************************************************************************/ /** End of list marker. * @@ -293,9 +293,9 @@ */ #define EC_COE_EMERGENCY_MSG_SIZE 8 -/****************************************************************************** +/***************************************************************************** * Data types - *****************************************************************************/ + ****************************************************************************/ struct ec_master; typedef struct ec_master ec_master_t; /**< \see ec_master */ @@ -318,7 +318,7 @@ typedef struct ec_voe_handler ec_voe_handler_t; /**< \see ec_voe_handler. */ struct ec_reg_request; typedef struct ec_reg_request ec_reg_request_t; /**< \see ec_reg_request. */ -/*****************************************************************************/ +/****************************************************************************/ /** Master state. * @@ -342,7 +342,7 @@ typedef struct { up. */ } ec_master_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Redundant link state. * @@ -366,7 +366,7 @@ typedef struct { */ } ec_master_link_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state. * @@ -388,7 +388,7 @@ typedef struct { bit! */ } ec_slave_config_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Master information. * @@ -403,7 +403,7 @@ typedef struct { uint64_t app_time; /**< Application time. */ } ec_master_info_t; -/*****************************************************************************/ +/****************************************************************************/ /** Master scan progress information. * @@ -418,7 +418,7 @@ typedef struct { network scan is in progress. */ } ec_master_scan_progress_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT slave port descriptor. */ @@ -429,7 +429,7 @@ typedef enum { EC_PORT_MII /**< Port is a MII. */ } ec_slave_port_desc_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT slave port information. */ @@ -439,7 +439,7 @@ typedef struct { uint8_t signal_detected; /**< Detected signal on RX port. */ } ec_slave_port_link_t; -/*****************************************************************************/ +/****************************************************************************/ /** Slave information. * @@ -471,7 +471,7 @@ typedef struct { char name[EC_MAX_STRING_LENGTH]; /**< Name of the slave. */ } ec_slave_info_t; -/*****************************************************************************/ +/****************************************************************************/ /** Domain working counter interpretation. * @@ -484,7 +484,7 @@ typedef enum { EC_WC_COMPLETE /**< All registered process data were exchanged. */ } ec_wc_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Domain state. * @@ -496,7 +496,7 @@ typedef struct { unsigned int redundancy_active; /**< Redundant link is in use. */ } ec_domain_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Direction type for PDO assignment functions. */ @@ -507,7 +507,7 @@ typedef enum { EC_DIR_COUNT /**< Number of directions. For internal use only. */ } ec_direction_t; -/*****************************************************************************/ +/****************************************************************************/ /** Watchdog mode for sync manager configuration. * @@ -519,7 +519,7 @@ typedef enum { EC_WD_DISABLE, /**< Disable the watchdog. */ } ec_watchdog_mode_t; -/*****************************************************************************/ +/****************************************************************************/ /** PDO entry configuration information. * @@ -533,7 +533,7 @@ typedef struct { uint8_t bit_length; /**< Size of the PDO entry in bit. */ } ec_pdo_entry_info_t; -/*****************************************************************************/ +/****************************************************************************/ /** PDO configuration information. * @@ -552,7 +552,7 @@ typedef struct { least \a n_entries values. */ } ec_pdo_info_t; -/*****************************************************************************/ +/****************************************************************************/ /** Sync manager configuration information. * @@ -571,7 +571,7 @@ typedef struct { ec_watchdog_mode_t watchdog_mode; /**< Watchdog mode. */ } ec_sync_info_t; -/*****************************************************************************/ +/****************************************************************************/ /** List record type for PDO entry mass-registration. * @@ -593,7 +593,7 @@ typedef struct { PDO entry does not byte-align. */ } ec_pdo_entry_reg_t; -/*****************************************************************************/ +/****************************************************************************/ /** Request state. * @@ -607,7 +607,7 @@ typedef enum { EC_REQUEST_ERROR, /**< Request processing failed. */ } ec_request_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** Application-layer state. */ @@ -618,9 +618,9 @@ typedef enum { EC_AL_STATE_OP = 8, /**< Operational. */ } ec_al_state_t; -/****************************************************************************** +/***************************************************************************** * Global functions - *****************************************************************************/ + ****************************************************************************/ #ifdef __cplusplus extern "C" { @@ -684,9 +684,9 @@ EC_PUBLIC_API void ecrt_release_master( ec_master_t *master /**< EtherCAT master */ ); -/****************************************************************************** +/***************************************************************************** * Master methods - *****************************************************************************/ + ****************************************************************************/ #ifndef __KERNEL__ @@ -1232,9 +1232,9 @@ EC_PUBLIC_API void ecrt_master_reset( ec_master_t *master /**< EtherCAT master. */ ); -/****************************************************************************** +/***************************************************************************** * Slave configuration methods - *****************************************************************************/ + ****************************************************************************/ /** Configure a sync manager. * @@ -1792,9 +1792,9 @@ EC_PUBLIC_API int ecrt_slave_config_flag( int32_t value /**< Value to store. */ ); -/****************************************************************************** +/***************************************************************************** * Domain methods - *****************************************************************************/ + ****************************************************************************/ /** Registers a bunch of PDO entries for a domain. * @@ -2301,9 +2301,9 @@ EC_PUBLIC_API void ecrt_reg_request_read( size_t size /**< Size to write. */ ); -/****************************************************************************** +/***************************************************************************** * Bitwise read/write macros - *****************************************************************************/ + ****************************************************************************/ /** Read a certain bit of an EtherCAT data byte. * @@ -2324,9 +2324,9 @@ EC_PUBLIC_API void ecrt_reg_request_read( else *((uint8_t *) (DATA)) &= ~(1 << (POS)); \ } while (0) -/****************************************************************************** +/***************************************************************************** * Byte-swapping functions for user space - *****************************************************************************/ + ****************************************************************************/ #ifndef __KERNEL__ @@ -2379,9 +2379,9 @@ EC_PUBLIC_API void ecrt_reg_request_read( #endif /* ifndef __KERNEL__ */ -/****************************************************************************** +/***************************************************************************** * Read macros - *****************************************************************************/ + ****************************************************************************/ /** Read an 8-bit unsigned value from EtherCAT data. * @@ -2446,9 +2446,9 @@ EC_PUBLIC_API void ecrt_reg_request_read( #define EC_READ_S64(DATA) \ ((int64_t) le64_to_cpup((void *) (DATA))) -/****************************************************************************** +/***************************************************************************** * Floating-point read functions and macros (userspace only) - *****************************************************************************/ + ****************************************************************************/ #ifndef __KERNEL__ @@ -2482,9 +2482,9 @@ EC_PUBLIC_API double ecrt_read_lreal(const void *data); #endif // ifndef __KERNEL__ -/****************************************************************************** +/***************************************************************************** * Write macros - *****************************************************************************/ + ****************************************************************************/ /** Write an 8-bit unsigned value to EtherCAT data. * @@ -2554,9 +2554,9 @@ EC_PUBLIC_API double ecrt_read_lreal(const void *data); */ #define EC_WRITE_S64(DATA, VAL) EC_WRITE_U64(DATA, VAL) -/****************************************************************************** +/***************************************************************************** * Floating-point write functions and macros (userspace only) - *****************************************************************************/ + ****************************************************************************/ #ifndef __KERNEL__ @@ -2590,13 +2590,13 @@ EC_PUBLIC_API void ecrt_write_lreal(void *data, double value); #endif // ifndef __KERNEL__ -/*****************************************************************************/ +/****************************************************************************/ #ifdef __cplusplus } #endif -/*****************************************************************************/ +/****************************************************************************/ /** @} */ diff --git a/include/ectty.h b/include/ectty.h index 1cb63d87..3178d3ce 100644 --- a/include/ectty.h +++ b/include/ectty.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,7 +18,7 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ /** \file * @@ -31,16 +29,16 @@ * @{ */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __ECTTY_H__ #define __ECTTY_H__ #include -/****************************************************************************** +/***************************************************************************** * Data types - *****************************************************************************/ + ****************************************************************************/ struct ec_tty; typedef struct ec_tty ec_tty_t; /**< \see ec_tty */ @@ -54,9 +52,9 @@ typedef struct { * new settings. */ } ec_tty_operations_t; -/****************************************************************************** +/***************************************************************************** * Global functions - *****************************************************************************/ + ****************************************************************************/ /** Create a virtual TTY interface. * @@ -70,9 +68,9 @@ ec_tty_t *ectty_create( void *cb_data ); -/****************************************************************************** +/***************************************************************************** * TTY interface methods - *****************************************************************************/ + ****************************************************************************/ /** Releases a virtual TTY interface. */ @@ -101,7 +99,7 @@ void ectty_rx_data( size_t size /**< Number of bytes in \a buffer. */ ); -/*****************************************************************************/ +/****************************************************************************/ /** @} */ diff --git a/lib/common.c b/lib/common.c index cc4b1508..041a6019 100644 --- a/lib/common.c +++ b/lib/common.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,7 +18,7 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -35,14 +33,14 @@ #include "ioctl.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ unsigned int ecrt_version_magic(void) { return ECRT_VERSION_MAGIC; } -/*****************************************************************************/ +/****************************************************************************/ ec_master_t *ecrt_request_master(unsigned int master_index) { @@ -58,7 +56,7 @@ ec_master_t *ecrt_request_master(unsigned int master_index) return master; } -/*****************************************************************************/ +/****************************************************************************/ #define MAX_PATH_LEN 64 @@ -122,7 +120,7 @@ out_clear: return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_release_master(ec_master_t *master) { @@ -130,7 +128,7 @@ void ecrt_release_master(ec_master_t *master) free(master); } -/*****************************************************************************/ +/****************************************************************************/ float ecrt_read_real(const void *data) { @@ -138,7 +136,7 @@ float ecrt_read_real(const void *data) return *(float *) (const void *) &raw; } -/*****************************************************************************/ +/****************************************************************************/ double ecrt_read_lreal(const void *data) { @@ -146,18 +144,18 @@ double ecrt_read_lreal(const void *data) return *(double *) (const void *) &raw; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_write_real(void *data, float value) { *(uint32_t *) data = cpu_to_le32(*(uint32_t *) (void *) &value); } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_write_lreal(void *data, double value) { *(uint64_t *) data = cpu_to_le64(*(uint64_t *) (void *) &value); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/domain.c b/lib/domain.c index bbdba94c..26d01262 100644 --- a/lib/domain.c +++ b/lib/domain.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,14 +18,14 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT domain methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -37,14 +35,14 @@ #include "domain.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_domain_clear(ec_domain_t *domain) { // nothing to do } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_domain_reg_pdo_entry_list(ec_domain_t *domain, const ec_pdo_entry_reg_t *regs) @@ -68,7 +66,7 @@ int ecrt_domain_reg_pdo_entry_list(ec_domain_t *domain, return 0; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_domain_size(const ec_domain_t *domain) { @@ -83,7 +81,7 @@ size_t ecrt_domain_size(const ec_domain_t *domain) return ret; } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_domain_data(ec_domain_t *domain) { @@ -104,7 +102,7 @@ uint8_t *ecrt_domain_data(ec_domain_t *domain) return domain->process_data; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_process(ec_domain_t *domain) { @@ -117,7 +115,7 @@ void ecrt_domain_process(ec_domain_t *domain) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_queue(ec_domain_t *domain) { @@ -130,7 +128,7 @@ void ecrt_domain_queue(ec_domain_t *domain) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state) { @@ -147,4 +145,4 @@ void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/domain.h b/lib/domain.h index 4ac82ace..f2e9a113 100644 --- a/lib/domain.h +++ b/lib/domain.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_domain { ec_domain_t *next; @@ -33,8 +31,8 @@ struct ec_domain { uint8_t *process_data; }; -/*****************************************************************************/ +/****************************************************************************/ void ec_domain_clear(ec_domain_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/ioctl.h b/lib/ioctl.h index e8a4ae8b..8584582e 100644 --- a/lib/ioctl.h +++ b/lib/ioctl.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,12 +18,12 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #ifndef __EC_LIB_IOCTL_H__ #define __EC_LIB_IOCTL_H__ -/*****************************************************************************/ +/****************************************************************************/ #ifdef USE_RTDM #include @@ -33,11 +31,11 @@ #include #endif -/*****************************************************************************/ +/****************************************************************************/ #include "master/ioctl.h" -/*****************************************************************************/ +/****************************************************************************/ #ifdef USE_RTDM @@ -59,8 +57,8 @@ #endif -/*****************************************************************************/ +/****************************************************************************/ #endif /* __EC_LIB_IOCTL_H__ */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/master.c b/lib/master.c index 837b2855..b02cdd86 100644 --- a/lib/master.c +++ b/lib/master.c @@ -197,7 +197,7 @@ ec_slave_config_t *ecrt_master_slave_config(ec_master_t *master, return sc; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_select_reference_clock(ec_master_t *master, ec_slave_config_t *sc) @@ -740,7 +740,7 @@ void ecrt_master_sync_slave_clocks(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_reference_clock_time(ec_master_t *master, uint32_t *time) { diff --git a/lib/master.h b/lib/master.h index 49ba7b08..fdcc13c0 100644 --- a/lib/master.h +++ b/lib/master.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_master { int fd; @@ -35,8 +33,8 @@ struct ec_master { ec_slave_config_t *first_config; }; -/*****************************************************************************/ +/****************************************************************************/ void ec_master_clear(ec_master_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/reg_request.c b/lib/reg_request.c index 627ef294..db824f92 100644 --- a/lib/reg_request.c +++ b/lib/reg_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2012-2019 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,13 +18,13 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT register request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -34,7 +34,7 @@ #include "slave_config.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_reg_request_clear(ec_reg_request_t *reg) { @@ -53,7 +53,7 @@ uint8_t *ecrt_reg_request_data(ec_reg_request_t *reg) return reg->data; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_reg_request_state(ec_reg_request_t *reg) { @@ -87,7 +87,7 @@ ec_request_state_t ecrt_reg_request_state(ec_reg_request_t *reg) return io.state; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_reg_request_write(ec_reg_request_t *reg, uint16_t address, size_t size) @@ -108,7 +108,7 @@ void ecrt_reg_request_write(ec_reg_request_t *reg, uint16_t address, } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_reg_request_read(ec_reg_request_t *reg, uint16_t address, size_t size) @@ -128,4 +128,4 @@ void ecrt_reg_request_read(ec_reg_request_t *reg, uint16_t address, } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/reg_request.h b/lib/reg_request.h index 6a9593c3..abadf9a2 100644 --- a/lib/reg_request.h +++ b/lib/reg_request.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_reg_request { ec_reg_request_t *next; /**< List header. */ @@ -34,8 +32,8 @@ struct ec_reg_request { size_t mem_size; /**< Size of \a data. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_reg_request_clear(ec_reg_request_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/sdo_request.c b/lib/sdo_request.c index fefdcba5..4f9df6de 100644 --- a/lib/sdo_request.c +++ b/lib/sdo_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2019 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,13 +18,13 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ /** \file * Canopen over EtherCAT SDO request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -34,7 +34,7 @@ #include "slave_config.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_request_clear(ec_sdo_request_t *req) { @@ -66,7 +66,7 @@ void ecrt_sdo_request_index(ec_sdo_request_t *req, uint16_t index, } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_timeout(ec_sdo_request_t *req, uint32_t timeout) { @@ -84,21 +84,21 @@ void ecrt_sdo_request_timeout(ec_sdo_request_t *req, uint32_t timeout) } } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_sdo_request_data(ec_sdo_request_t *req) { return req->data; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_sdo_request_data_size(const ec_sdo_request_t *req) { return req->data_size; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_sdo_request_state(ec_sdo_request_t *req) { @@ -137,7 +137,7 @@ ec_request_state_t ecrt_sdo_request_state(ec_sdo_request_t *req) return data.state; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_read(ec_sdo_request_t *req) { @@ -154,7 +154,7 @@ void ecrt_sdo_request_read(ec_sdo_request_t *req) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_write(ec_sdo_request_t *req) { @@ -173,4 +173,4 @@ void ecrt_sdo_request_write(ec_sdo_request_t *req) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/sdo_request.h b/lib/sdo_request.h index 0e4f537b..5ab81f93 100644 --- a/lib/sdo_request.h +++ b/lib/sdo_request.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_sdo_request { ec_sdo_request_t *next; /**< List header. */ @@ -37,8 +35,8 @@ struct ec_sdo_request { size_t data_size; /**< Size of SDO data. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_request_clear(ec_sdo_request_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/slave_config.c b/lib/slave_config.c index aa12e11f..6b3b2e44 100644 --- a/lib/slave_config.c +++ b/lib/slave_config.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2019 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,7 +18,7 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include #include @@ -34,7 +34,7 @@ #include "voe_handler.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_clear(ec_slave_config_t *sc) { @@ -80,7 +80,7 @@ void ec_slave_config_clear(ec_slave_config_t *sc) sc->first_voe_handler = NULL; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sync_manager(ec_slave_config_t *sc, uint8_t sync_index, ec_direction_t dir, ec_watchdog_mode_t watchdog_mode) @@ -107,7 +107,7 @@ int ecrt_slave_config_sync_manager(ec_slave_config_t *sc, uint8_t sync_index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_watchdog(ec_slave_config_t *sc, uint16_t divider, uint16_t intervals) @@ -127,7 +127,7 @@ void ecrt_slave_config_watchdog(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdo_assign_add(ec_slave_config_t *sc, uint8_t sync_index, uint16_t pdo_index) @@ -149,7 +149,7 @@ int ecrt_slave_config_pdo_assign_add(ec_slave_config_t *sc, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_pdo_assign_clear(ec_slave_config_t *sc, uint8_t sync_index) @@ -167,7 +167,7 @@ void ecrt_slave_config_pdo_assign_clear(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdo_mapping_add(ec_slave_config_t *sc, uint16_t pdo_index, uint16_t entry_index, uint8_t entry_subindex, @@ -192,7 +192,7 @@ int ecrt_slave_config_pdo_mapping_add(ec_slave_config_t *sc, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_pdo_mapping_clear(ec_slave_config_t *sc, uint16_t pdo_index) @@ -210,7 +210,7 @@ void ecrt_slave_config_pdo_mapping_clear(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdos(ec_slave_config_t *sc, unsigned int n_syncs, const ec_sync_info_t syncs[]) @@ -274,7 +274,7 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_reg_pdo_entry( ec_slave_config_t *sc, @@ -313,7 +313,7 @@ int ecrt_slave_config_reg_pdo_entry( return ret; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_reg_pdo_entry_pos( ec_slave_config_t *sc, @@ -354,7 +354,7 @@ int ecrt_slave_config_reg_pdo_entry_pos( return ret; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_dc(ec_slave_config_t *sc, uint16_t assign_activate, uint32_t sync0_cycle_time, int32_t sync0_shift_time, @@ -377,7 +377,7 @@ void ecrt_slave_config_dc(ec_slave_config_t *sc, uint16_t assign_activate, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, const uint8_t *sdo_data, size_t size) @@ -402,7 +402,7 @@ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_complete_sdo(ec_slave_config_t *sc, uint16_t index, const uint8_t *sdo_data, size_t size) @@ -427,7 +427,7 @@ int ecrt_slave_config_complete_sdo(ec_slave_config_t *sc, uint16_t index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo8(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint8_t value) @@ -438,7 +438,7 @@ int ecrt_slave_config_sdo8(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 1); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo16(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint16_t value) @@ -449,7 +449,7 @@ int ecrt_slave_config_sdo16(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 2); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo32(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint32_t value) @@ -460,7 +460,7 @@ int ecrt_slave_config_sdo32(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 4); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_size(ec_slave_config_t *sc, size_t elements) { @@ -480,7 +480,7 @@ int ecrt_slave_config_emerg_size(ec_slave_config_t *sc, size_t elements) return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_pop(ec_slave_config_t *sc, uint8_t *target) { @@ -502,7 +502,7 @@ int ecrt_slave_config_emerg_pop(ec_slave_config_t *sc, uint8_t *target) return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_clear(ec_slave_config_t *sc) { @@ -521,7 +521,7 @@ int ecrt_slave_config_emerg_clear(ec_slave_config_t *sc) return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_overruns(ec_slave_config_t *sc) { @@ -540,7 +540,7 @@ int ecrt_slave_config_emerg_overruns(ec_slave_config_t *sc) return io.overruns; } -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_add_sdo_request(ec_slave_config_t *sc, ec_sdo_request_t *req) @@ -556,7 +556,7 @@ void ec_slave_config_add_sdo_request(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ ec_sdo_request_t *ecrt_slave_config_create_sdo_request(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, size_t size) @@ -610,7 +610,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request(ec_slave_config_t *sc, return req; } -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_add_soe_request(ec_slave_config_t *sc, ec_soe_request_t *req) @@ -626,7 +626,7 @@ void ec_slave_config_add_soe_request(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ ec_soe_request_t *ecrt_slave_config_create_soe_request(ec_slave_config_t *sc, uint8_t drive_no, uint16_t idn, size_t size) @@ -680,7 +680,7 @@ ec_soe_request_t *ecrt_slave_config_create_soe_request(ec_slave_config_t *sc, return req; } -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_add_reg_request(ec_slave_config_t *sc, ec_reg_request_t *reg) @@ -696,7 +696,7 @@ void ec_slave_config_add_reg_request(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ ec_reg_request_t *ecrt_slave_config_create_reg_request(ec_slave_config_t *sc, size_t size) @@ -745,7 +745,7 @@ ec_reg_request_t *ecrt_slave_config_create_reg_request(ec_slave_config_t *sc, return reg; } -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_add_voe_handler(ec_slave_config_t *sc, ec_voe_handler_t *voe) @@ -761,7 +761,7 @@ void ec_slave_config_add_voe_handler(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ ec_voe_handler_t *ecrt_slave_config_create_voe_handler(ec_slave_config_t *sc, size_t size) @@ -811,7 +811,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler(ec_slave_config_t *sc, return voe; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_state(const ec_slave_config_t *sc, ec_slave_config_state_t *state) @@ -829,7 +829,7 @@ void ecrt_slave_config_state(const ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_idn(ec_slave_config_t *sc, uint8_t drive_no, uint16_t idn, ec_al_state_t al_state, const uint8_t *data, size_t size) @@ -854,7 +854,7 @@ int ecrt_slave_config_idn(ec_slave_config_t *sc, uint8_t drive_no, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_flag(ec_slave_config_t *sc, const char *key, int32_t value) @@ -888,4 +888,4 @@ int ecrt_slave_config_flag(ec_slave_config_t *sc, const char *key, return 0; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/slave_config.h b/lib/slave_config.h index 3daf0d1d..ee425d14 100644 --- a/lib/slave_config.h +++ b/lib/slave_config.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_slave_config { ec_slave_config_t *next; @@ -36,8 +36,8 @@ struct ec_slave_config { ec_voe_handler_t *first_voe_handler; }; -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_clear(ec_slave_config_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/soe_request.c b/lib/soe_request.c index 99bc311e..1516ec93 100644 --- a/lib/soe_request.c +++ b/lib/soe_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,19 +18,13 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - * --- - * - * The license mentioned above concerns the source code only. Using the - * EtherCAT technology and brand is only permitted in compliance with the - * industrial property and similar rights of Beckhoff Automation GmbH. - * - *****************************************************************************/ + ****************************************************************************/ /** \file * Canopen over EtherCAT SoE request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -40,7 +34,7 @@ #include "slave_config.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_soe_request_clear(ec_soe_request_t *req) { @@ -72,7 +66,7 @@ void ecrt_soe_request_idn(ec_soe_request_t *req, uint8_t drive_no, } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_timeout(ec_soe_request_t *req, uint32_t timeout) { @@ -90,21 +84,21 @@ void ecrt_soe_request_timeout(ec_soe_request_t *req, uint32_t timeout) } } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_soe_request_data(ec_soe_request_t *req) { return req->data; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_soe_request_data_size(const ec_soe_request_t *req) { return req->data_size; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_soe_request_state(ec_soe_request_t *req) { @@ -143,7 +137,7 @@ ec_request_state_t ecrt_soe_request_state(ec_soe_request_t *req) return data.state; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_read(ec_soe_request_t *req) { @@ -160,7 +154,7 @@ void ecrt_soe_request_read(ec_soe_request_t *req) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_write(ec_soe_request_t *req) { @@ -179,4 +173,4 @@ void ecrt_soe_request_write(ec_soe_request_t *req) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/soe_request.h b/lib/soe_request.h index 43f8e72d..6040c9f7 100644 --- a/lib/soe_request.h +++ b/lib/soe_request.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -18,17 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - * --- - * - * The license mentioned above concerns the source code only. Using the - * EtherCAT technology and brand is only permitted in compliance with the - * industrial property and similar rights of Beckhoff Automation GmbH. - * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_soe_request { ec_soe_request_t *next; /**< List header. */ @@ -41,8 +35,8 @@ struct ec_soe_request { size_t data_size; /**< Size of SoE data. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_soe_request_clear(ec_soe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/voe_handler.c b/lib/voe_handler.c index a44ce5c3..a743ff26 100644 --- a/lib/voe_handler.c +++ b/lib/voe_handler.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2019 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,13 @@ * You should have received a copy of the GNU Lesser General Public License * along with the IgH EtherCAT master userspace library. If not, see * . - * - *****************************************************************************/ + */ /** \file * Vendor specific over EtherCAT protocol handler functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -35,7 +34,7 @@ #include "slave_config.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_voe_handler_clear(ec_voe_handler_t *voe) { @@ -45,7 +44,7 @@ void ec_voe_handler_clear(ec_voe_handler_t *voe) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_send_header(ec_voe_handler_t *voe, uint32_t vendor_id, uint16_t vendor_type) @@ -65,7 +64,7 @@ void ecrt_voe_handler_send_header(ec_voe_handler_t *voe, uint32_t vendor_id, } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_received_header(const ec_voe_handler_t *voe, uint32_t *vendor_id, uint16_t *vendor_type) @@ -85,21 +84,21 @@ void ecrt_voe_handler_received_header(const ec_voe_handler_t *voe, } } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_voe_handler_data(ec_voe_handler_t *voe) { return voe->data; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_voe_handler_data_size(const ec_voe_handler_t *voe) { return voe->data_size; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_read(ec_voe_handler_t *voe) { @@ -116,7 +115,7 @@ void ecrt_voe_handler_read(ec_voe_handler_t *voe) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_read_nosync(ec_voe_handler_t *voe) { @@ -133,7 +132,7 @@ void ecrt_voe_handler_read_nosync(ec_voe_handler_t *voe) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_write(ec_voe_handler_t *voe, size_t size) { @@ -152,7 +151,7 @@ void ecrt_voe_handler_write(ec_voe_handler_t *voe, size_t size) } } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe) { @@ -190,4 +189,4 @@ ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe) return data.state; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/lib/voe_handler.h b/lib/voe_handler.h index 1f46f4ac..8adb45e2 100644 --- a/lib/voe_handler.h +++ b/lib/voe_handler.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -20,11 +18,11 @@ * along with the IgH EtherCAT master userspace library. If not, see * . * - *****************************************************************************/ + ****************************************************************************/ #include "include/ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_voe_handler { ec_voe_handler_t *next; @@ -35,8 +33,8 @@ struct ec_voe_handler { uint8_t *data; }; -/*****************************************************************************/ +/****************************************************************************/ void ec_voe_handler_clear(ec_voe_handler_t *); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/Kbuild.in b/master/Kbuild.in index ad1b7486..bfb5da3f 100644 --- a/master/Kbuild.in +++ b/master/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -103,4 +101,4 @@ REV := $(shell if test -s $(src)/../revision; then \ CFLAGS_module.o := -DREV=$(REV) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/master/Makefile.am b/master/Makefile.am index 4539998d..f1b90aa3 100644 --- a/master/Makefile.am +++ b/master/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild # using HEADERS to enable tags target @@ -70,4 +69,4 @@ noinst_HEADERS = \ sync_config.c sync_config.h \ voe_handler.c voe_handler.h -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/master/cdev.c b/master/cdev.c index a79ae389..eb95bfe9 100644 --- a/master/cdev.c +++ b/master/cdev.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2020 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master character device. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -41,7 +41,7 @@ */ #define DEBUG 0 -/*****************************************************************************/ +/****************************************************************************/ static int eccdev_open(struct inode *, struct file *); static int eccdev_release(struct inode *, struct file *); @@ -64,7 +64,7 @@ static FAULT_RETURN_TYPE eccdev_vma_fault( #endif struct vm_fault *); -/*****************************************************************************/ +/****************************************************************************/ /** File operation callbacks for the EtherCAT character device. */ @@ -82,7 +82,7 @@ struct vm_operations_struct eccdev_vm_ops = { .fault = eccdev_vma_fault }; -/*****************************************************************************/ +/****************************************************************************/ /** Private data structure for file handles. */ @@ -91,7 +91,7 @@ typedef struct { ec_ioctl_context_t ctx; /**< Context. */ } ec_cdev_priv_t; -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. * @@ -119,7 +119,7 @@ int ec_cdev_init( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -128,9 +128,9 @@ void ec_cdev_clear(ec_cdev_t *cdev /**< EtherCAT XML device */) cdev_del(&cdev->cdev); } -/****************************************************************************** +/***************************************************************************** * File operations - *****************************************************************************/ + ****************************************************************************/ /** Called when the cdev is opened. */ @@ -160,7 +160,7 @@ int eccdev_open(struct inode *inode, struct file *filp) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Called when the cdev is closed. */ @@ -185,7 +185,7 @@ int eccdev_release(struct inode *inode, struct file *filp) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Called when an ioctl() command is issued. */ @@ -202,7 +202,7 @@ long eccdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) return ec_ioctl(priv->cdev->master, &priv->ctx, cmd, (void __user *) arg); } -/*****************************************************************************/ +/****************************************************************************/ #ifndef VM_DONTDUMP /** VM_RESERVED disappeared in 3.7. @@ -237,7 +237,7 @@ int eccdev_mmap( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Page fault callback for a virtual memory area. * @@ -278,4 +278,4 @@ static FAULT_RETURN_TYPE eccdev_vma_fault( return 0; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/cdev.h b/master/cdev.h index 08d80542..825d360e 100644 --- a/master/cdev.h +++ b/master/cdev.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master character device. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_CDEV_H__ #define __EC_CDEV_H__ @@ -36,7 +34,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT master character device. */ @@ -45,11 +43,11 @@ typedef struct { struct cdev cdev; /**< Character device. */ } ec_cdev_t; -/*****************************************************************************/ +/****************************************************************************/ int ec_cdev_init(ec_cdev_t *, ec_master_t *, dev_t); void ec_cdev_clear(ec_cdev_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/coe_emerg_ring.c b/master/coe_emerg_ring.c index 74409844..6e19b982 100644 --- a/master/coe_emerg_ring.c +++ b/master/coe_emerg_ring.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -21,19 +19,19 @@ * * vim: expandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT CoE emergency ring buffer methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include "coe_emerg_ring.h" -/*****************************************************************************/ +/****************************************************************************/ /** Emergency ring buffer constructor. */ @@ -50,7 +48,7 @@ void ec_coe_emerg_ring_init( ring->overruns = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Emergency ring buffer destructor. */ @@ -63,7 +61,7 @@ void ec_coe_emerg_ring_clear( } } -/*****************************************************************************/ +/****************************************************************************/ /** Set the ring size. * @@ -100,7 +98,7 @@ int ec_coe_emerg_ring_size( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Add a new emergency message. */ @@ -120,7 +118,7 @@ void ec_coe_emerg_ring_push( ring->write_index = (ring->write_index + 1) % (ring->size + 1); } -/*****************************************************************************/ +/****************************************************************************/ /** Remove an emergency message from the ring. * @@ -140,7 +138,7 @@ int ec_coe_emerg_ring_pop( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the ring. * @@ -155,7 +153,7 @@ int ec_coe_emerg_ring_clear_ring( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Read the number of overruns. * @@ -168,4 +166,4 @@ int ec_coe_emerg_ring_overruns( return ring->overruns; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/coe_emerg_ring.h b/master/coe_emerg_ring.h index 63281b3c..2f00c01d 100644 --- a/master/coe_emerg_ring.h +++ b/master/coe_emerg_ring.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CoE emergency ring buffer structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_COE_EMERG_RING_H__ #define __EC_COE_EMERG_RING_H__ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT CoE emergency message record. */ @@ -41,7 +39,7 @@ typedef struct { u8 data[EC_COE_EMERGENCY_MSG_SIZE]; /**< Message data. */ } ec_coe_emerg_msg_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT CoE emergency ring buffer. */ @@ -56,7 +54,7 @@ typedef struct { unsigned int overruns; /**< Number of overruns since last reset. */ } ec_coe_emerg_ring_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_coe_emerg_ring_init(ec_coe_emerg_ring_t *, ec_slave_config_t *); void ec_coe_emerg_ring_clear(ec_coe_emerg_ring_t *); @@ -67,6 +65,6 @@ int ec_coe_emerg_ring_pop(ec_coe_emerg_ring_t *, u8 *); int ec_coe_emerg_ring_clear_ring(ec_coe_emerg_ring_t *); int ec_coe_emerg_ring_overruns(ec_coe_emerg_ring_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/datagram.c b/master/datagram.c index 0e315520..c0f3360a 100644 --- a/master/datagram.c +++ b/master/datagram.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Methods of an EtherCAT datagram. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include "datagram.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -51,7 +49,7 @@ /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ /** Array of datagram type strings used in ec_datagram_type_string(). * @@ -75,7 +73,7 @@ static const char *type_strings[] = { "FRMW" }; -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -105,7 +103,7 @@ void ec_datagram_init(ec_datagram_t *datagram /**< EtherCAT datagram. */) memset(datagram->name, 0x00, EC_DATAGRAM_NAME_SIZE); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -119,7 +117,7 @@ void ec_datagram_clear(ec_datagram_t *datagram /**< EtherCAT datagram. */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Unqueue datagram. */ @@ -130,7 +128,7 @@ void ec_datagram_unqueue(ec_datagram_t *datagram /**< EtherCAT datagram. */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Allocates internal payload memory. * @@ -165,7 +163,7 @@ int ec_datagram_prealloc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Fills the datagram payload memory with zeros. */ @@ -174,7 +172,7 @@ void ec_datagram_zero(ec_datagram_t *datagram /**< EtherCAT datagram. */) memset(datagram->data, 0x00, datagram->data_size); } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT APRD datagram. * @@ -195,7 +193,7 @@ int ec_datagram_aprd( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT APWR datagram. * @@ -216,7 +214,7 @@ int ec_datagram_apwr( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT APRW datagram. * @@ -237,7 +235,7 @@ int ec_datagram_aprw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT ARMW datagram. * @@ -258,7 +256,7 @@ int ec_datagram_armw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT FPRD datagram. * @@ -283,7 +281,7 @@ int ec_datagram_fprd( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT FPWR datagram. * @@ -308,7 +306,7 @@ int ec_datagram_fpwr( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT FPRW datagram. * @@ -333,7 +331,7 @@ int ec_datagram_fprw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT FRMW datagram. * @@ -358,7 +356,7 @@ int ec_datagram_frmw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT BRD datagram. * @@ -378,7 +376,7 @@ int ec_datagram_brd( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT BWR datagram. * @@ -398,7 +396,7 @@ int ec_datagram_bwr( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT BRW datagram. * @@ -418,7 +416,7 @@ int ec_datagram_brw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LRD datagram. * @@ -437,7 +435,7 @@ int ec_datagram_lrd( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LWR datagram. * @@ -456,7 +454,7 @@ int ec_datagram_lwr( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LRW datagram. * @@ -475,7 +473,7 @@ int ec_datagram_lrw( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LRD datagram with external memory. * @@ -500,7 +498,7 @@ int ec_datagram_lrd_ext( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LWR datagram with external memory. * @@ -525,7 +523,7 @@ int ec_datagram_lwr_ext( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an EtherCAT LRW datagram with external memory. * @@ -550,7 +548,7 @@ int ec_datagram_lrw_ext( EC_FUNC_FOOTER; } -/*****************************************************************************/ +/****************************************************************************/ /** Prints the state of a datagram. * @@ -587,7 +585,7 @@ void ec_datagram_print_state( printk(KERN_CONT ".\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Evaluates the working counter of a single-cast datagram. * @@ -609,7 +607,7 @@ void ec_datagram_print_wc_error( printk(KERN_CONT "\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs datagram statistics at most every second. */ @@ -630,7 +628,7 @@ void ec_datagram_output_stats( } } -/*****************************************************************************/ +/****************************************************************************/ /** Returns a string describing the datagram type. * @@ -643,4 +641,4 @@ const char *ec_datagram_type_string( return type_strings[datagram->type]; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/datagram.h b/master/datagram.h index 50aff4fd..adf438cc 100644 --- a/master/datagram.h +++ b/master/datagram.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT datagram structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_DATAGRAM_H__ #define __EC_DATAGRAM_H__ @@ -37,7 +35,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT datagram type. */ @@ -61,7 +59,7 @@ typedef enum { Write. */ } ec_datagram_type_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT datagram state. */ @@ -74,7 +72,7 @@ typedef enum { EC_DATAGRAM_ERROR /**< Error while sending/receiving (dequeued). */ } ec_datagram_state_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT datagram. */ @@ -106,7 +104,7 @@ typedef struct { char name[EC_DATAGRAM_NAME_SIZE]; /**< Description of the datagram. */ } ec_datagram_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_datagram_init(ec_datagram_t *); void ec_datagram_clear(ec_datagram_t *); @@ -137,6 +135,6 @@ void ec_datagram_print_wc_error(const ec_datagram_t *); void ec_datagram_output_stats(ec_datagram_t *); const char *ec_datagram_type_string(const ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/datagram_pair.c b/master/datagram_pair.c index 3c9c1fe8..3e3d2838 100644 --- a/master/datagram_pair.c +++ b/master/datagram_pair.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT datagram pair methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include "master.h" #include "datagram_pair.h" -/*****************************************************************************/ +/****************************************************************************/ /** Datagram pair constructor. * @@ -138,7 +136,7 @@ out_datagrams: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Datagram pair destructor. */ @@ -161,7 +159,7 @@ void ec_datagram_pair_clear( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Process received data. * @@ -192,4 +190,4 @@ uint16_t ec_datagram_pair_process( return pair_wc; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/datagram_pair.h b/master/datagram_pair.h index 5fb4fbc3..0294a216 100644 --- a/master/datagram_pair.h +++ b/master/datagram_pair.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT datagram pair structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_DATAGRAM_PAIR_H__ #define __EC_DATAGRAM_PAIR_H__ @@ -36,7 +34,7 @@ #include "globals.h" #include "datagram.h" -/*****************************************************************************/ +/****************************************************************************/ /** Domain datagram pair. */ @@ -50,7 +48,7 @@ typedef struct { unsigned int expected_working_counter; /**< Expectord working conter. */ } ec_datagram_pair_t; -/*****************************************************************************/ +/****************************************************************************/ int ec_datagram_pair_init(ec_datagram_pair_t *, ec_domain_t *, uint32_t, uint8_t *, size_t, const unsigned int []); @@ -58,6 +56,6 @@ void ec_datagram_pair_clear(ec_datagram_pair_t *); uint16_t ec_datagram_pair_process(ec_datagram_pair_t *, uint16_t[]); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/debug.c b/master/debug.c index 1be0428e..268a6bb7 100644 --- a/master/debug.c +++ b/master/debug.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Ethernet interface for debugging purposes. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -36,7 +34,7 @@ #include "master.h" #include "debug.h" -/*****************************************************************************/ +/****************************************************************************/ // net_device functions int ec_dbgdev_open(struct net_device *); @@ -54,7 +52,7 @@ static const struct net_device_ops ec_dbg_netdev_ops = .ndo_get_stats = ec_dbgdev_stats, }; -/*****************************************************************************/ +/****************************************************************************/ /** Debug interface constructor. * @@ -96,7 +94,7 @@ int ec_debug_init( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Debug interface destructor. * @@ -110,7 +108,7 @@ void ec_debug_clear( free_netdev(dbg->dev); } -/*****************************************************************************/ +/****************************************************************************/ /** Register debug interface. */ @@ -139,7 +137,7 @@ void ec_debug_register( } } -/*****************************************************************************/ +/****************************************************************************/ /** Unregister debug interface. */ @@ -154,7 +152,7 @@ void ec_debug_unregister( } } -/*****************************************************************************/ +/****************************************************************************/ /** Sends frame data to the interface. */ @@ -189,9 +187,9 @@ void ec_debug_send( netif_rx(skb); } -/****************************************************************************** +/***************************************************************************** * NET_DEVICE functions - *****************************************************************************/ + ****************************************************************************/ /** Opens the virtual network device. * @@ -208,7 +206,7 @@ int ec_dbgdev_open( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Stops the virtual network device. * @@ -225,7 +223,7 @@ int ec_dbgdev_stop( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Transmits data via the virtual network device. * @@ -243,7 +241,7 @@ int ec_dbgdev_tx( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets statistics about the virtual network device. * @@ -257,4 +255,4 @@ struct net_device_stats *ec_dbgdev_stats( return &dbg->stats; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/debug.h b/master/debug.h index fffc5e09..5d435d4c 100644 --- a/master/debug.h +++ b/master/debug.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Network interface for debugging purposes. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_DEBUG_H__ #define __EC_DEBUG_H__ #include "../devices/ecdev.h" -/*****************************************************************************/ +/****************************************************************************/ /** Debugging network interface. */ @@ -47,7 +45,7 @@ typedef struct } ec_debug_t; -/*****************************************************************************/ +/****************************************************************************/ int ec_debug_init(ec_debug_t *, ec_device_t *, const char *); void ec_debug_clear(ec_debug_t *); @@ -57,4 +55,4 @@ void ec_debug_send(ec_debug_t *, const uint8_t *, size_t); #endif -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/device.c b/master/device.c index 6ac094b8..5f873daa 100644 --- a/master/device.c +++ b/master/device.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT device methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -48,7 +46,7 @@ } while (0) #endif -/*****************************************************************************/ +/****************************************************************************/ enum { /* genet driver needs extra headroom in skb for status block */ @@ -154,7 +152,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -174,7 +172,7 @@ void ec_device_clear( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Associate with net_device. */ @@ -205,7 +203,7 @@ void ec_device_attach( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Disconnect from net_device. */ @@ -232,7 +230,7 @@ void ec_device_detach( } } -/*****************************************************************************/ +/****************************************************************************/ /** Opens the EtherCAT device. * @@ -265,7 +263,7 @@ int ec_device_open( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Stops the EtherCAT device. * @@ -294,7 +292,7 @@ int ec_device_close( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns a pointer to the device's transmit memory. * @@ -312,7 +310,7 @@ uint8_t *ec_device_tx_data( return device->tx_skb[device->tx_ring_index]->data + ETH_HLEN; } -/*****************************************************************************/ +/****************************************************************************/ /** Sends the content of the transmit socket buffer. * @@ -354,7 +352,7 @@ void ec_device_send( } } -/*****************************************************************************/ +/****************************************************************************/ /** Clears the frame statistics. */ @@ -383,7 +381,7 @@ void ec_device_clear_stats( } } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_DEBUG_RING /** Appends frame data to the debug ring. @@ -413,7 +411,7 @@ void ec_device_debug_ring_append( device->debug_frame_count++; } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs the debug ring. */ @@ -454,7 +452,7 @@ void ec_device_debug_ring_print( } #endif -/*****************************************************************************/ +/****************************************************************************/ /** Calls the poll function of the assigned net_device. * @@ -476,7 +474,7 @@ void ec_device_poll( device->poll(device->dev); } -/*****************************************************************************/ +/****************************************************************************/ /** Update device statistics. */ @@ -513,9 +511,9 @@ void ec_device_update_stats( device->last_rx_bytes = device->rx_bytes; } -/****************************************************************************** +/***************************************************************************** * Device interface - *****************************************************************************/ + ****************************************************************************/ /** Withdraws an EtherCAT device from the master. * @@ -551,7 +549,7 @@ void ecdev_withdraw(ec_device_t *device /**< EtherCAT device */) up(&master->device_sem); } -/*****************************************************************************/ +/****************************************************************************/ /** Opens the network device and makes the master enter IDLE phase. * @@ -589,7 +587,7 @@ int ecdev_open(ec_device_t *device /**< EtherCAT device */) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Makes the master leave IDLE phase and closes the network device. * @@ -609,7 +607,7 @@ void ecdev_close(ec_device_t *device /**< EtherCAT device */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Accepts a received frame. * @@ -655,7 +653,7 @@ void ecdev_receive( ec_master_receive_datagrams(device->master, device, ec_data, ec_size); } -/*****************************************************************************/ +/****************************************************************************/ /** Sets a new link state. * @@ -682,7 +680,7 @@ void ecdev_set_link( } } -/*****************************************************************************/ +/****************************************************************************/ /** Reads the link state. * @@ -702,7 +700,7 @@ uint8_t ecdev_get_link( return device->link_state; } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -715,4 +713,4 @@ EXPORT_SYMBOL(ecdev_set_link); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/device.h b/master/device.h index 35d91f0a..77430931 100644 --- a/master/device.h +++ b/master/device.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT device structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_DEVICE_H__ #define __EC_DEVICE_H__ @@ -64,7 +62,7 @@ typedef struct { #endif -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT device. @@ -123,7 +121,7 @@ struct ec_device #endif }; -/*****************************************************************************/ +/****************************************************************************/ int ec_device_init(ec_device_t *, ec_master_t *); void ec_device_clear(ec_device_t *); @@ -147,6 +145,6 @@ void ec_device_debug_ring_append(ec_device_t *, ec_debug_frame_dir_t, void ec_device_debug_ring_print(const ec_device_t *); #endif -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/domain.c b/master/domain.c index fdda32ab..c61a3c1c 100644 --- a/master/domain.c +++ b/master/domain.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT domain methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include @@ -41,11 +39,11 @@ */ #define DEBUG_REDUNDANCY 0 -/*****************************************************************************/ +/****************************************************************************/ void ec_domain_clear_data(ec_domain_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Domain constructor. */ @@ -75,7 +73,7 @@ void ec_domain_init( domain->notify_jiffies = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Domain destructor. */ @@ -93,7 +91,7 @@ void ec_domain_clear(ec_domain_t *domain /**< EtherCAT domain */) ec_domain_clear_data(domain); } -/*****************************************************************************/ +/****************************************************************************/ /** Frees internally allocated memory. */ @@ -109,7 +107,7 @@ void ec_domain_clear_data( domain->data_origin = EC_ORIG_INTERNAL; } -/*****************************************************************************/ +/****************************************************************************/ /** Adds an FMMU configuration to the domain. */ @@ -128,7 +126,7 @@ void ec_domain_add_fmmu_config( domain->index, fmmu->data_size, domain->data_size); } -/*****************************************************************************/ +/****************************************************************************/ /** Allocates a domain datagram pair and appends it to the list. * @@ -174,7 +172,7 @@ int ec_domain_add_datagram_pair( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Domain finish helper function. * @@ -205,7 +203,7 @@ int shall_count( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Finishes a domain. * @@ -319,7 +317,7 @@ int ec_domain_finish( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of FMMU configurations of the domain. */ @@ -335,7 +333,7 @@ unsigned int ec_domain_fmmu_count(const ec_domain_t *domain) return num; } -/*****************************************************************************/ +/****************************************************************************/ /** Get a certain FMMU configuration via its position in the list. * @@ -357,7 +355,7 @@ const ec_fmmu_config_t *ec_domain_find_fmmu( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ #if EC_MAX_NUM_DEVICES > 1 @@ -385,9 +383,9 @@ int data_changed( #endif -/****************************************************************************** +/***************************************************************************** * Application interface - *****************************************************************************/ + ****************************************************************************/ int ecrt_domain_reg_pdo_entry_list(ec_domain_t *domain, const ec_pdo_entry_reg_t *regs) @@ -416,14 +414,14 @@ int ecrt_domain_reg_pdo_entry_list(ec_domain_t *domain, return 0; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_domain_size(const ec_domain_t *domain) { return domain->data_size; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_external_memory(ec_domain_t *domain, uint8_t *mem) { @@ -440,14 +438,14 @@ void ecrt_domain_external_memory(ec_domain_t *domain, uint8_t *mem) up(&domain->master->master_sem); } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_domain_data(ec_domain_t *domain) { return domain->data; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_process(ec_domain_t *domain) { @@ -637,7 +635,7 @@ void ecrt_domain_process(ec_domain_t *domain) #endif } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_queue(ec_domain_t *domain) { @@ -667,7 +665,7 @@ void ecrt_domain_queue(ec_domain_t *domain) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state) { @@ -694,7 +692,7 @@ void ecrt_domain_state(const ec_domain_t *domain, ec_domain_state_t *state) state->redundancy_active = domain->redundancy_active; } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -708,4 +706,4 @@ EXPORT_SYMBOL(ecrt_domain_state); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/domain.h b/master/domain.h index a0b9b973..5408628b 100644 --- a/master/domain.h +++ b/master/domain.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT domain structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_DOMAIN_H__ #define __EC_DOMAIN_H__ @@ -38,7 +36,7 @@ #include "master.h" #include "fmmu_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT domain. * @@ -68,7 +66,7 @@ struct ec_domain unsigned long notify_jiffies; /**< Time of last notification. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_domain_init(ec_domain_t *, ec_master_t *, unsigned int); void ec_domain_clear(ec_domain_t *); @@ -79,6 +77,6 @@ int ec_domain_finish(ec_domain_t *, uint32_t); unsigned int ec_domain_fmmu_count(const ec_domain_t *); const ec_fmmu_config_t *ec_domain_find_fmmu(const ec_domain_t *, unsigned int); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/doxygen.c b/master/doxygen.c index 5d1fd14c..156f9175 100644 --- a/master/doxygen.c +++ b/master/doxygen.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ // This file only contains the doxygen mainpage. @@ -25,7 +25,7 @@ * Doxygen mainpage only. */ -/*****************************************************************************/ +/****************************************************************************/ /** \mainpage @@ -76,4 +76,4 @@ \endverbatim */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/ethernet.c b/master/ethernet.c index 4d5d1dda..15d79b6a 100644 --- a/master/ethernet.c +++ b/master/ethernet.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Ethernet over EtherCAT (EoE). */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -40,7 +38,7 @@ #include "mailbox.h" #include "ethernet.h" -/*****************************************************************************/ +/****************************************************************************/ /** Defines the debug level of EoE processing. * @@ -59,7 +57,7 @@ */ #define EC_EOE_TRIES 100 -/*****************************************************************************/ +/****************************************************************************/ void ec_eoe_flush(ec_eoe_t *); @@ -76,7 +74,7 @@ int ec_eoedev_stop(struct net_device *); int ec_eoedev_tx(struct sk_buff *, struct net_device *); struct net_device_stats *ec_eoedev_stats(struct net_device *); -/*****************************************************************************/ +/****************************************************************************/ /** Device operations for EoE interfaces. */ @@ -87,7 +85,7 @@ static const struct net_device_ops ec_eoedev_ops = { .ndo_get_stats = ec_eoedev_stats, }; -/*****************************************************************************/ +/****************************************************************************/ /** EoE constructor. * @@ -201,7 +199,7 @@ int ec_eoe_init( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** EoE destructor. * @@ -227,7 +225,7 @@ void ec_eoe_clear(ec_eoe_t *eoe /**< EoE handler */) ec_datagram_clear(&eoe->datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Empties the transmit queue. */ @@ -250,7 +248,7 @@ void ec_eoe_flush(ec_eoe_t *eoe /**< EoE handler */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Sends a frame or the next fragment. * @@ -323,7 +321,7 @@ int ec_eoe_send(ec_eoe_t *eoe /**< EoE handler */) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Runs the EoE state machine. */ @@ -351,7 +349,7 @@ void ec_eoe_run(ec_eoe_t *eoe /**< EoE handler */) ec_datagram_output_stats(&eoe->datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Queues the datagram, if necessary. */ @@ -363,7 +361,7 @@ void ec_eoe_queue(ec_eoe_t *eoe /**< EoE handler */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Returns the state of the device. * @@ -374,7 +372,7 @@ int ec_eoe_is_open(const ec_eoe_t *eoe /**< EoE handler */) return eoe->opened; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns the idle state. * @@ -386,9 +384,9 @@ int ec_eoe_is_idle(const ec_eoe_t *eoe /**< EoE handler */) return eoe->rx_idle && eoe->tx_idle; } -/****************************************************************************** +/***************************************************************************** * STATE PROCESSING FUNCTIONS - *****************************************************************************/ + ****************************************************************************/ /** State: RX_START. * @@ -411,7 +409,7 @@ void ec_eoe_state_rx_start(ec_eoe_t *eoe /**< EoE handler */) eoe->state = ec_eoe_state_rx_check; } -/*****************************************************************************/ +/****************************************************************************/ /** State: RX_CHECK. * @@ -442,7 +440,7 @@ void ec_eoe_state_rx_check(ec_eoe_t *eoe /**< EoE handler */) eoe->state = ec_eoe_state_rx_fetch; } -/*****************************************************************************/ +/****************************************************************************/ /** State: RX_FETCH. * @@ -617,7 +615,7 @@ void ec_eoe_state_rx_fetch(ec_eoe_t *eoe /**< EoE handler */) } } -/*****************************************************************************/ +/****************************************************************************/ /** State: TX START. * @@ -694,7 +692,7 @@ void ec_eoe_state_tx_start(ec_eoe_t *eoe /**< EoE handler */) eoe->state = ec_eoe_state_tx_sent; } -/*****************************************************************************/ +/****************************************************************************/ /** State: TX SENT. * @@ -759,9 +757,9 @@ void ec_eoe_state_tx_sent(ec_eoe_t *eoe /**< EoE handler */) } } -/****************************************************************************** +/***************************************************************************** * NET_DEVICE functions - *****************************************************************************/ + ****************************************************************************/ /** Opens the virtual network device. * @@ -783,7 +781,7 @@ int ec_eoedev_open(struct net_device *dev /**< EoE net_device */) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Stops the virtual network device. * @@ -805,7 +803,7 @@ int ec_eoedev_stop(struct net_device *dev /**< EoE net_device */) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Transmits data via the virtual network device. * @@ -858,7 +856,7 @@ int ec_eoedev_tx(struct sk_buff *skb, /**< transmit socket buffer */ return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets statistics about the virtual network device. * @@ -872,4 +870,4 @@ struct net_device_stats *ec_eoedev_stats( return &eoe->stats; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/ethernet.h b/master/ethernet.h index 4797e425..95f6a00a 100644 --- a/master/ethernet.h +++ b/master/ethernet.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Ethernet over EtherCAT (EoE) */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_ETHERNET_H__ #define __EC_ETHERNET_H__ @@ -38,7 +36,7 @@ #include "slave.h" #include "datagram.h" -/*****************************************************************************/ +/****************************************************************************/ /** Queued frame structure. @@ -51,7 +49,7 @@ typedef struct } ec_eoe_frame_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_eoe ec_eoe_t; /**< \see ec_eoe */ @@ -96,7 +94,7 @@ struct ec_eoe unsigned int tries; /**< Tries. */ }; -/*****************************************************************************/ +/****************************************************************************/ int ec_eoe_init(ec_eoe_t *, ec_slave_t *); void ec_eoe_clear(ec_eoe_t *); @@ -105,8 +103,8 @@ void ec_eoe_queue(ec_eoe_t *); int ec_eoe_is_open(const ec_eoe_t *); int ec_eoe_is_idle(const ec_eoe_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/flag.c b/master/flag.c index 53252999..50512811 100644 --- a/master/flag.c +++ b/master/flag.c @@ -29,7 +29,7 @@ #include "flag.h" -/*****************************************************************************/ +/****************************************************************************/ /** SDO request constructor. */ @@ -52,7 +52,7 @@ int ec_flag_init( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** SDO request destructor. */ @@ -66,4 +66,4 @@ void ec_flag_clear( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fmmu_config.c b/master/fmmu_config.c index d83a9225..9e247a46 100644 --- a/master/fmmu_config.c +++ b/master/fmmu_config.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT FMMU configuration methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "slave_config.h" @@ -33,7 +31,7 @@ #include "fmmu_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** FMMU configuration constructor. * @@ -61,7 +59,7 @@ void ec_fmmu_config_init( ec_domain_add_fmmu_config(domain, fmmu); } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes an FMMU configuration page. * @@ -90,4 +88,4 @@ void ec_fmmu_config_page( EC_WRITE_U16(data + 14, 0x0000); // reserved } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fmmu_config.h b/master/fmmu_config.h index c33e6be3..a4c8dc8a 100644 --- a/master/fmmu_config.h +++ b/master/fmmu_config.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT FMMU configuration structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FMMU_CONFIG_H__ #define __EC_FMMU_CONFIG_H__ @@ -33,7 +31,7 @@ #include "globals.h" #include "sync.h" -/*****************************************************************************/ +/****************************************************************************/ /** FMMU configuration. */ @@ -47,7 +45,7 @@ typedef struct { unsigned int data_size; /**< Covered PDO size. */ } ec_fmmu_config_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_fmmu_config_init(ec_fmmu_config_t *, ec_slave_config_t *, ec_domain_t *, uint8_t, ec_direction_t); @@ -55,6 +53,6 @@ void ec_fmmu_config_init(ec_fmmu_config_t *, ec_slave_config_t *, void ec_fmmu_config_page(const ec_fmmu_config_t *, const ec_sync_t *, uint8_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/foe.h b/master/foe.h index 0246fb6e..ae4fc4b1 100644 --- a/master/foe.h +++ b/master/foe.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,7 +17,7 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * FoE defines. @@ -28,7 +26,7 @@ #ifndef __FOE_H__ #define __FOE_H__ -/*****************************************************************************/ +/****************************************************************************/ /** FoE error enumeration type. */ @@ -51,6 +49,6 @@ typedef enum { FOE_MBOX_PROT_ERROR = 15, /**< Mailbox protocol error. */ } ec_foe_error_t; -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/foe_request.c b/master/foe_request.c index 38a3261c..a7e7d55b 100644 --- a/master/foe_request.c +++ b/master/foe_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2008 Olav Zarges, imc Messsysteme GmbH * Copyright (C) 2020 Florian Pose, IgH @@ -18,13 +18,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * File-over-EtherCAT request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -34,17 +34,17 @@ #include "foe_request.h" #include "foe.h" -/*****************************************************************************/ +/****************************************************************************/ /** Default timeout in ms to wait for FoE transfer responses. */ #define EC_FOE_REQUEST_RESPONSE_TIMEOUT 3000 -/*****************************************************************************/ +/****************************************************************************/ void ec_foe_request_clear_data(ec_foe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ /** FoE request constructor. */ @@ -65,7 +65,7 @@ void ec_foe_request_init( req->error_code = 0x00000000; } -/*****************************************************************************/ +/****************************************************************************/ /** FoE request destructor. */ @@ -76,7 +76,7 @@ void ec_foe_request_clear( ec_foe_request_clear_data(req); } -/*****************************************************************************/ +/****************************************************************************/ /** FoE request destructor. */ @@ -93,7 +93,7 @@ void ec_foe_request_clear_data( req->data_size = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Pre-allocates the data memory. * @@ -123,7 +123,7 @@ int ec_foe_request_alloc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Copies FoE data from an external source. * @@ -149,7 +149,7 @@ int ec_foe_request_copy_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Checks, if the timeout was exceeded. * @@ -163,7 +163,7 @@ int ec_foe_request_timed_out( && jiffies - req->jiffies_start > HZ * req->issue_timeout / 1000; } -/*****************************************************************************/ +/****************************************************************************/ /** Set the request timeout. */ @@ -175,7 +175,7 @@ void ec_foe_request_timeout( req->issue_timeout = timeout; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns a pointer to the request's data. * @@ -188,7 +188,7 @@ uint8_t *ec_foe_request_data( return req->buffer; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns the data size. * @@ -201,7 +201,7 @@ size_t ec_foe_request_data_size( return req->data_size; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares a read request (slave to master). */ @@ -215,7 +215,7 @@ void ec_foe_request_read( req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares a write request (master to slave). */ @@ -229,4 +229,4 @@ void ec_foe_request_write( req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/foe_request.h b/master/foe_request.h index 52d3ba25..ba5ceb66 100644 --- a/master/foe_request.h +++ b/master/foe_request.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2008 Olav Zarges, imc Messsysteme GmbH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT FoE request structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FOE_REQUEST_H__ #define __EC_FOE_REQUEST_H__ @@ -37,7 +35,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** FoE request. */ @@ -63,7 +61,7 @@ typedef struct { uint32_t error_code; /**< Error code from an FoE Error Request. */ } ec_foe_request_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_foe_request_init(ec_foe_request_t *, uint8_t *file_name); void ec_foe_request_clear(ec_foe_request_t *); @@ -75,6 +73,6 @@ int ec_foe_request_timed_out(const ec_foe_request_t *); void ec_foe_request_write(ec_foe_request_t *); void ec_foe_request_read(ec_foe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_change.c b/master/fsm_change.c index 4955f0c2..9a09fa53 100644 --- a/master/fsm_change.c +++ b/master/fsm_change.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,26 +17,26 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT state change FSM. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" #include "fsm_change.h" -/*****************************************************************************/ +/****************************************************************************/ /** Timeout while waiting for AL state change [s]. */ #define EC_AL_STATE_CHANGE_TIMEOUT 5 -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_change_state_start(ec_fsm_change_t *); void ec_fsm_change_state_check(ec_fsm_change_t *); @@ -50,7 +48,7 @@ void ec_fsm_change_state_check_ack(ec_fsm_change_t *); void ec_fsm_change_state_end(ec_fsm_change_t *); void ec_fsm_change_state_error(ec_fsm_change_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. @@ -65,7 +63,7 @@ void ec_fsm_change_init(ec_fsm_change_t *fsm, /**< finite state machine */ fsm->spontaneous_change = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. @@ -75,7 +73,7 @@ void ec_fsm_change_clear(ec_fsm_change_t *fsm /**< finite state machine */) { } -/*****************************************************************************/ +/****************************************************************************/ /** Starts the change state machine. @@ -92,7 +90,7 @@ void ec_fsm_change_start(ec_fsm_change_t *fsm, /**< finite state machine */ fsm->state = ec_fsm_change_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts the change state machine to only acknowlegde a slave's state. @@ -108,7 +106,7 @@ void ec_fsm_change_ack(ec_fsm_change_t *fsm, /**< finite state machine */ fsm->state = ec_fsm_change_state_start_code; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. @@ -123,7 +121,7 @@ int ec_fsm_change_exec(ec_fsm_change_t *fsm /**< finite state machine */) && fsm->state != ec_fsm_change_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the state machine terminated with success. @@ -135,9 +133,9 @@ int ec_fsm_change_success(ec_fsm_change_t *fsm /**< Finite state machine */) return fsm->state == ec_fsm_change_state_end; } -/****************************************************************************** +/***************************************************************************** * state change state machine - *****************************************************************************/ + ****************************************************************************/ /** Change state: START. @@ -159,7 +157,7 @@ void ec_fsm_change_state_start(ec_fsm_change_t *fsm fsm->state = ec_fsm_change_state_check; } -/*****************************************************************************/ +/****************************************************************************/ /** Change state: CHECK. @@ -222,7 +220,7 @@ void ec_fsm_change_state_check(ec_fsm_change_t *fsm fsm->state = ec_fsm_change_state_status; } -/*****************************************************************************/ +/****************************************************************************/ /** Change state: STATUS. @@ -313,7 +311,7 @@ void ec_fsm_change_state_status(ec_fsm_change_t *fsm fsm->retries = EC_FSM_RETRIES; } -/*****************************************************************************/ +/****************************************************************************/ /** Enter reading AL status code. */ @@ -331,7 +329,7 @@ void ec_fsm_change_state_start_code( fsm->state = ec_fsm_change_state_code; } -/*****************************************************************************/ +/****************************************************************************/ /** Application layer status messages. @@ -391,7 +389,7 @@ const ec_code_msg_t al_status_messages[] = { }; -/*****************************************************************************/ +/****************************************************************************/ /** Change state: CODE. @@ -443,7 +441,7 @@ void ec_fsm_change_state_code(ec_fsm_change_t *fsm fsm->state = ec_fsm_change_state_ack; } -/*****************************************************************************/ +/****************************************************************************/ /** Change state: ACK. @@ -480,7 +478,7 @@ void ec_fsm_change_state_ack(ec_fsm_change_t *fsm /**< finite state machine */) fsm->state = ec_fsm_change_state_check_ack; } -/*****************************************************************************/ +/****************************************************************************/ /** Change state: CHECK ACK. @@ -546,7 +544,7 @@ void ec_fsm_change_state_check_ack(ec_fsm_change_t *fsm fsm->retries = EC_FSM_RETRIES; } -/*****************************************************************************/ +/****************************************************************************/ /** State: ERROR. @@ -557,7 +555,7 @@ void ec_fsm_change_state_error(ec_fsm_change_t *fsm { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. @@ -568,4 +566,4 @@ void ec_fsm_change_state_end(ec_fsm_change_t *fsm { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_change.h b/master/fsm_change.h index fbc2bcb9..c30ac257 100644 --- a/master/fsm_change.h +++ b/master/fsm_change.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT state change FSM. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_CHANGE_H__ #define __EC_FSM_CHANGE_H__ @@ -35,7 +33,7 @@ #include "datagram.h" #include "slave.h" -/*****************************************************************************/ +/****************************************************************************/ /** Mode of the change state machine. @@ -47,7 +45,7 @@ typedef enum { } ec_fsm_change_mode_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_change ec_fsm_change_t; /**< \see ec_fsm_change */ @@ -70,7 +68,7 @@ struct ec_fsm_change uint8_t spontaneous_change; /**< spontaneous state change detected */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_change_init(ec_fsm_change_t *, ec_datagram_t *); void ec_fsm_change_clear(ec_fsm_change_t *); @@ -81,6 +79,6 @@ void ec_fsm_change_ack(ec_fsm_change_t *, ec_slave_t *); int ec_fsm_change_exec(ec_fsm_change_t *); int ec_fsm_change_success(ec_fsm_change_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_coe.c b/master/fsm_coe.c index 395aea9b..f12bbcd8 100644 --- a/master/fsm_coe.c +++ b/master/fsm_coe.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT CoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -33,7 +31,7 @@ #include "fsm_coe.h" #include "slave_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** Maximum time in ms to wait for responses when reading out the dictionary. */ @@ -59,7 +57,7 @@ */ #define DEBUG_LONG 0 -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_coe_dict_start(ec_fsm_coe_t *, ec_datagram_t *); void ec_fsm_coe_dict_request(ec_fsm_coe_t *, ec_datagram_t *); @@ -90,7 +88,7 @@ void ec_fsm_coe_up_seg_response(ec_fsm_coe_t *, ec_datagram_t *); void ec_fsm_coe_end(ec_fsm_coe_t *, ec_datagram_t *); void ec_fsm_coe_error(ec_fsm_coe_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ /** SDO abort messages. * @@ -135,7 +133,7 @@ const ec_code_msg_t sdo_abort_messages[] = { {} }; -/*****************************************************************************/ +/****************************************************************************/ /** Outputs an SDO abort message. */ @@ -157,7 +155,7 @@ void ec_canopen_abort_msg( EC_SLAVE_ERR(slave, "Unknown SDO abort code 0x%08X.\n", abort_code); } -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -169,7 +167,7 @@ void ec_fsm_coe_init( fsm->datagram = NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -179,7 +177,7 @@ void ec_fsm_coe_clear( { } -/*****************************************************************************/ +/****************************************************************************/ /** Starts reading a slaves' SDO dictionary. */ @@ -192,7 +190,7 @@ void ec_fsm_coe_dictionary( fsm->state = ec_fsm_coe_dict_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts to transfer an SDO to/from a slave. */ @@ -213,7 +211,7 @@ void ec_fsm_coe_transfer( } } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -248,7 +246,7 @@ int ec_fsm_coe_exec( return datagram_used; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the state machine terminated with success. * \return non-zero if successful. @@ -260,7 +258,7 @@ int ec_fsm_coe_success( return fsm->state == ec_fsm_coe_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Check if the received data are a CoE emergency request. * @@ -298,9 +296,9 @@ int ec_fsm_coe_check_emergency( return 1; } -/****************************************************************************** +/***************************************************************************** * CoE dictionary state machine - *****************************************************************************/ + ****************************************************************************/ /** Prepare a dictionary request. * @@ -328,7 +326,7 @@ int ec_fsm_coe_prepare_dict( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT START. */ @@ -359,7 +357,7 @@ void ec_fsm_coe_dict_start( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT REQUEST. * \todo Timeout behavior @@ -400,7 +398,7 @@ void ec_fsm_coe_dict_request( fsm->state = ec_fsm_coe_dict_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT CHECK. */ @@ -453,7 +451,7 @@ void ec_fsm_coe_dict_check( fsm->state = ec_fsm_coe_dict_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare an object description request. * @@ -481,7 +479,7 @@ int ec_fsm_coe_dict_prepare_desc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT RESPONSE. @@ -636,7 +634,7 @@ void ec_fsm_coe_dict_response( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT DESC REQUEST. @@ -680,7 +678,7 @@ void ec_fsm_coe_dict_desc_request( fsm->state = ec_fsm_coe_dict_desc_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT DESC CHECK. @@ -736,7 +734,7 @@ void ec_fsm_coe_dict_desc_check( fsm->state = ec_fsm_coe_dict_desc_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare an entry description request. * @@ -766,7 +764,7 @@ int ec_fsm_coe_dict_prepare_entry( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT DESC RESPONSE. @@ -901,7 +899,7 @@ void ec_fsm_coe_dict_desc_response( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT ENTRY REQUEST. @@ -944,7 +942,7 @@ void ec_fsm_coe_dict_entry_request( fsm->state = ec_fsm_coe_dict_entry_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT ENTRY CHECK. @@ -1000,7 +998,7 @@ void ec_fsm_coe_dict_entry_check( fsm->state = ec_fsm_coe_dict_entry_response; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DICT ENTRY RESPONSE. @@ -1178,9 +1176,9 @@ void ec_fsm_coe_dict_entry_response( fsm->state = ec_fsm_coe_end; } -/****************************************************************************** +/***************************************************************************** * CoE state machine - *****************************************************************************/ + ****************************************************************************/ /** Prepare a donwnload request. * @@ -1325,7 +1323,7 @@ void ec_fsm_coe_down_start( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DOWN REQUEST. @@ -1396,7 +1394,7 @@ void ec_fsm_coe_down_request( fsm->state = ec_fsm_coe_down_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DOWN CHECK. */ @@ -1454,7 +1452,7 @@ void ec_fsm_coe_down_check( fsm->state = ec_fsm_coe_down_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare a download segment request. */ @@ -1517,7 +1515,7 @@ void ec_fsm_coe_down_prepare_segment_request( fsm->state = ec_fsm_coe_down_seg_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DOWN RESPONSE. @@ -1639,7 +1637,7 @@ void ec_fsm_coe_down_response( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DOWN SEG CHECK. @@ -1695,7 +1693,7 @@ void ec_fsm_coe_down_seg_check( fsm->state = ec_fsm_coe_down_seg_response; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: DOWN SEG RESPONSE. @@ -1827,7 +1825,7 @@ void ec_fsm_coe_down_seg_response( } } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare an upload request. * @@ -1864,7 +1862,7 @@ int ec_fsm_coe_prepare_up( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP START. @@ -1896,7 +1894,7 @@ void ec_fsm_coe_up_start( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP REQUEST. \todo Timeout behavior @@ -1965,7 +1963,7 @@ void ec_fsm_coe_up_request( fsm->state = ec_fsm_coe_up_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP CHECK. @@ -2024,7 +2022,7 @@ void ec_fsm_coe_up_check( fsm->state = ec_fsm_coe_up_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare an SDO upload segment request. */ @@ -2053,7 +2051,7 @@ void ec_fsm_coe_up_prepare_segment_request( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP RESPONSE. @@ -2248,7 +2246,7 @@ void ec_fsm_coe_up_response( fsm->state = ec_fsm_coe_end; // success } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP REQUEST. @@ -2292,7 +2290,7 @@ void ec_fsm_coe_up_seg_request( fsm->state = ec_fsm_coe_up_seg_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP CHECK. @@ -2351,7 +2349,7 @@ void ec_fsm_coe_up_seg_check( fsm->state = ec_fsm_coe_up_seg_response; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: UP RESPONSE. @@ -2497,7 +2495,7 @@ void ec_fsm_coe_up_seg_response( fsm->state = ec_fsm_coe_end; // success } -/*****************************************************************************/ +/****************************************************************************/ /** State: ERROR. @@ -2510,7 +2508,7 @@ void ec_fsm_coe_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. @@ -2523,4 +2521,4 @@ void ec_fsm_coe_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_coe.h b/master/fsm_coe.h index 9e2045f9..846e1447 100644 --- a/master/fsm_coe.h +++ b/master/fsm_coe.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_COE_H__ #define __EC_FSM_COE_H__ @@ -37,7 +35,7 @@ #include "sdo.h" #include "sdo_request.h" -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_coe ec_fsm_coe_t; /**< \see ec_fsm_coe */ @@ -60,7 +58,7 @@ struct ec_fsm_coe { size_t segment_size; /**< Current segment size. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_coe_init(ec_fsm_coe_t *); void ec_fsm_coe_clear(ec_fsm_coe_t *); @@ -71,6 +69,6 @@ void ec_fsm_coe_transfer(ec_fsm_coe_t *, ec_slave_t *, ec_sdo_request_t *); int ec_fsm_coe_exec(ec_fsm_coe_t *, ec_datagram_t *); int ec_fsm_coe_success(const ec_fsm_coe_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_foe.c b/master/fsm_foe.c index dcd2877b..ccb03e50 100644 --- a/master/fsm_foe.c +++ b/master/fsm_foe.c @@ -1,9 +1,7 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2008 Olav Zarges, imc Messsysteme GmbH - * 2013 Florian Pose + * 2013 Florian Pose * * This file is part of the IgH EtherCAT Master. * @@ -20,13 +18,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT FoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -34,7 +32,7 @@ #include "fsm_foe.h" #include "foe.h" -/*****************************************************************************/ +/****************************************************************************/ /** Maximum time in ms to wait for responses when reading out the dictionary. */ @@ -49,7 +47,7 @@ //#define DEBUG_FOE -/*****************************************************************************/ +/****************************************************************************/ /** FoE OpCodes. */ @@ -62,7 +60,7 @@ enum { EC_FOE_OPCODE_BUSY = 6 /**< Busy. */ } ec_foe_opcode_t; -/*****************************************************************************/ +/****************************************************************************/ int ec_foe_prepare_data_send(ec_fsm_foe_t *, ec_datagram_t *); int ec_foe_prepare_wrq_send(ec_fsm_foe_t *, ec_datagram_t *); @@ -90,7 +88,7 @@ void ec_fsm_foe_state_sent_ack(ec_fsm_foe_t *, ec_datagram_t *); void ec_fsm_foe_write_start(ec_fsm_foe_t *, ec_datagram_t *); void ec_fsm_foe_read_start(ec_fsm_foe_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -102,7 +100,7 @@ void ec_fsm_foe_init( fsm->datagram = NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -110,7 +108,7 @@ void ec_fsm_foe_clear(ec_fsm_foe_t *fsm /**< finite state machine */) { } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -145,7 +143,7 @@ int ec_fsm_foe_exec( return datagram_used; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the state machine terminated with success. * \return non-zero if successful. @@ -155,7 +153,7 @@ int ec_fsm_foe_success(const ec_fsm_foe_t *fsm /**< Finite state machine */) return fsm->state == ec_fsm_foe_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares an FoE transfer. */ @@ -189,7 +187,7 @@ void ec_fsm_foe_transfer( } } -/*****************************************************************************/ +/****************************************************************************/ /** State: ERROR. */ @@ -203,7 +201,7 @@ void ec_fsm_foe_error( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -217,7 +215,7 @@ void ec_fsm_foe_end( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Sends a file or the next fragment. * @@ -258,7 +256,7 @@ int ec_foe_prepare_data_send( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare a write request (WRQ) with filename * @@ -293,7 +291,7 @@ int ec_foe_prepare_wrq_send( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes the FoE write state machine. */ @@ -327,7 +325,7 @@ void ec_fsm_foe_write_start( fsm->state = ec_fsm_foe_state_wrq_sent; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for acknowledge. */ @@ -379,7 +377,7 @@ void ec_fsm_foe_state_ack_check( fsm->state = ec_fsm_foe_state_ack_read; } -/*****************************************************************************/ +/****************************************************************************/ /** Acknowledge a read operation. */ @@ -456,7 +454,7 @@ void ec_fsm_foe_state_ack_read( ec_foe_set_tx_error(fsm, FOE_ACK_ERROR); } -/*****************************************************************************/ +/****************************************************************************/ /** State: WRQ SENT. * @@ -497,7 +495,7 @@ void ec_fsm_foe_state_wrq_sent( fsm->state = ec_fsm_foe_state_ack_check; } -/*****************************************************************************/ +/****************************************************************************/ /** State: WRQ SENT. * @@ -535,7 +533,7 @@ void ec_fsm_foe_state_data_sent( fsm->state = ec_fsm_foe_state_ack_check; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare a read request (RRQ) with filename * @@ -569,7 +567,7 @@ int ec_foe_prepare_rrq_send( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepare to send an acknowledge. * @@ -594,7 +592,7 @@ int ec_foe_prepare_send_ack( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** State: RRQ SENT. * @@ -635,7 +633,7 @@ void ec_fsm_foe_state_rrq_sent( fsm->state = ec_fsm_foe_state_data_check; } -/*****************************************************************************/ +/****************************************************************************/ /** Starting state for read operations. */ @@ -668,7 +666,7 @@ void ec_fsm_foe_read_start( fsm->state = ec_fsm_foe_state_rrq_sent; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for data. */ @@ -718,7 +716,7 @@ void ec_fsm_foe_state_data_check( fsm->state = ec_fsm_foe_state_data_read; } -/*****************************************************************************/ +/****************************************************************************/ /** Start reading data. */ @@ -842,7 +840,7 @@ void ec_fsm_foe_state_data_read( } } -/*****************************************************************************/ +/****************************************************************************/ /** Sent an acknowledge. */ @@ -888,7 +886,7 @@ void ec_fsm_foe_state_sent_ack( } } -/*****************************************************************************/ +/****************************************************************************/ /** Set an error code and go to the send error state. */ @@ -901,7 +899,7 @@ void ec_foe_set_tx_error( fsm->state = ec_fsm_foe_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Set an error code and go to the receive error state. */ @@ -914,4 +912,4 @@ void ec_foe_set_rx_error( fsm->state = ec_fsm_foe_error; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_foe.h b/master/fsm_foe.h index 30c055b3..55711dcc 100644 --- a/master/fsm_foe.h +++ b/master/fsm_foe.h @@ -1,9 +1,7 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2008 Olav Zarges, imc Messsysteme GmbH - * 2009-2012 Florian Pose + * 2009-2012 Florian Pose * * This file is part of the IgH EtherCAT Master. * @@ -20,14 +18,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT FoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_FOE_H__ #define __EC_FSM_FOE_H__ @@ -38,7 +36,7 @@ #include "slave.h" #include "foe_request.h" -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_foe ec_fsm_foe_t; /**< \see ec_fsm_foe */ @@ -48,7 +46,8 @@ struct ec_fsm_foe { ec_slave_t *slave; /**< Slave the FSM runs on. */ unsigned int retries; /**< Retries upon datagram timeout */ - void (*state)(ec_fsm_foe_t *, ec_datagram_t *); /**< FoE state function. */ + void (*state)(ec_fsm_foe_t *, ec_datagram_t *); /**< FoE state function. + */ ec_datagram_t *datagram; /**< Datagram used in previous step. */ unsigned long jiffies_start; /**< FoE timestamp. */ uint8_t subindex; /**< Current subindex. */ @@ -73,7 +72,7 @@ struct ec_fsm_foe { uint32_t rx_filename_len; /**< Length of the receive file name. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_foe_init(ec_fsm_foe_t *); void ec_fsm_foe_clear(ec_fsm_foe_t *); @@ -83,6 +82,6 @@ int ec_fsm_foe_success(const ec_fsm_foe_t *); void ec_fsm_foe_transfer(ec_fsm_foe_t *, ec_slave_t *, ec_foe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_master.c b/master/fsm_master.c index bc18d170..2828239c 100644 --- a/master/fsm_master.c +++ b/master/fsm_master.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT master state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -36,13 +36,13 @@ #include "fsm_master.h" #include "fsm_foe.h" -/*****************************************************************************/ +/****************************************************************************/ /** Time difference [ns] to tolerate without setting a new system time offset. */ #define EC_SYSTEM_TIME_TOLERANCE_NS 1000000 -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_master_state_start(ec_fsm_master_t *); void ec_fsm_master_state_broadcast(ec_fsm_master_t *); @@ -63,7 +63,7 @@ void ec_fsm_master_state_soe_request(ec_fsm_master_t *); void ec_fsm_master_enter_clear_addresses(ec_fsm_master_t *); void ec_fsm_master_enter_write_system_times(ec_fsm_master_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -100,7 +100,7 @@ void ec_fsm_master_init( ec_fsm_sii_init(&fsm->fsm_sii, fsm->datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -118,7 +118,7 @@ void ec_fsm_master_clear( ec_fsm_sii_clear(&fsm->fsm_sii); } -/*****************************************************************************/ +/****************************************************************************/ /** Reset state machine. */ @@ -142,7 +142,7 @@ void ec_fsm_master_reset( fsm->rescan_required = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -165,7 +165,7 @@ int ec_fsm_master_exec( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** * \return true, if the state machine is in an idle phase @@ -177,7 +177,7 @@ int ec_fsm_master_idle( return fsm->idle; } -/*****************************************************************************/ +/****************************************************************************/ /** Restarts the master state machine. */ @@ -190,9 +190,9 @@ void ec_fsm_master_restart( fsm->state(fsm); // execute immediately } -/****************************************************************************** +/***************************************************************************** * Master state machine - *****************************************************************************/ + ****************************************************************************/ /** Master state: START. * @@ -250,7 +250,7 @@ void ec_fsm_master_state_start( fsm->state = ec_fsm_master_state_broadcast; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: BROADCAST. * @@ -432,7 +432,7 @@ void ec_fsm_master_state_broadcast( } } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending SII write requests and process one. * @@ -494,7 +494,7 @@ int ec_fsm_master_action_process_sii( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending internal SDO/SoE requests and process one. * @@ -577,7 +577,7 @@ int ec_fsm_master_action_process_int_request( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Master action: IDLE. * @@ -637,7 +637,7 @@ void ec_fsm_master_action_idle( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master action: Get state of next slave. */ @@ -665,7 +665,7 @@ void ec_fsm_master_action_next_slave_state( ec_fsm_master_action_idle(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master action: Configure. */ @@ -721,7 +721,7 @@ void ec_fsm_master_action_configure( ec_fsm_master_action_next_slave_state(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: READ STATE. * @@ -778,7 +778,7 @@ void ec_fsm_master_state_read_state( ec_fsm_master_action_next_slave_state(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: ACKNOWLEDGE. */ @@ -800,7 +800,7 @@ void ec_fsm_master_state_acknowledge( ec_fsm_master_action_configure(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Start clearing slave addresses. */ @@ -816,7 +816,7 @@ void ec_fsm_master_enter_clear_addresses( fsm->state = ec_fsm_master_state_clear_addresses; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: CLEAR ADDRESSES. */ @@ -861,7 +861,7 @@ void ec_fsm_master_state_clear_addresses( fsm->state = ec_fsm_master_state_dc_measure_delays; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: DC MEASURE DELAYS. */ @@ -914,7 +914,7 @@ void ec_fsm_master_state_dc_measure_delays( fsm->datagram->device_index = fsm->slave->device_index; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: SCAN SLAVE. * @@ -988,7 +988,7 @@ void ec_fsm_master_state_scan_slave( } } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: CONFIGURE SLAVE. * @@ -1018,7 +1018,7 @@ void ec_fsm_master_state_configure_slave( ec_fsm_master_action_next_slave_state(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Start writing DC system times. */ @@ -1064,7 +1064,7 @@ void ec_fsm_master_enter_write_system_times( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Configure 32 bit time offset. * @@ -1106,7 +1106,7 @@ u64 ec_fsm_master_dc_offset32( } } -/*****************************************************************************/ +/****************************************************************************/ /** Configure 64 bit time offset. * @@ -1146,7 +1146,7 @@ u64 ec_fsm_master_dc_offset64( return new_offset; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: DC READ OFFSET. */ @@ -1199,7 +1199,7 @@ void ec_fsm_master_state_dc_read_offset( fsm->state = ec_fsm_master_state_dc_write_offset; } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: DC WRITE OFFSET. */ @@ -1234,7 +1234,7 @@ void ec_fsm_master_state_dc_write_offset( ec_fsm_master_enter_write_system_times(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: ASSIGN SII. */ @@ -1271,7 +1271,7 @@ cont: fsm->state(fsm); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: WRITE SII. */ @@ -1325,7 +1325,7 @@ void ec_fsm_master_state_write_sii( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: SDO DICTIONARY. */ @@ -1360,7 +1360,7 @@ void ec_fsm_master_state_sdo_dictionary( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: SDO REQUEST. */ @@ -1403,7 +1403,7 @@ void ec_fsm_master_state_sdo_request( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Master state: SoE REQUEST. */ @@ -1446,4 +1446,4 @@ void ec_fsm_master_state_soe_request( ec_fsm_master_restart(fsm); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_master.h b/master/fsm_master.h index 255db396..1ffed862 100644 --- a/master/fsm_master.h +++ b/master/fsm_master.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_MASTER_H__ #define __EC_FSM_MASTER_H__ @@ -38,7 +38,7 @@ #include "fsm_slave_scan.h" #include "fsm_pdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** SII write request. */ @@ -51,7 +51,7 @@ typedef struct { ec_internal_request_state_t state; /**< State of the request. */ } ec_sii_write_request_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_master ec_fsm_master_t; /**< \see ec_fsm_master */ @@ -91,7 +91,7 @@ struct ec_fsm_master { ec_fsm_sii_t fsm_sii; /**< SII state machine */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_master_init(ec_fsm_master_t *, ec_master_t *, ec_datagram_t *); void ec_fsm_master_clear(ec_fsm_master_t *); @@ -101,6 +101,6 @@ void ec_fsm_master_reset(ec_fsm_master_t *); int ec_fsm_master_exec(ec_fsm_master_t *); int ec_fsm_master_idle(const ec_fsm_master_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_pdo.c b/master/fsm_pdo.c index f11bcac6..a5a4b7ad 100644 --- a/master/fsm_pdo.c +++ b/master/fsm_pdo.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT PDO configuration state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -34,7 +32,7 @@ #include "fsm_pdo.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_pdo_read_state_start(ec_fsm_pdo_t *, ec_datagram_t *); void ec_fsm_pdo_read_state_pdo_count(ec_fsm_pdo_t *, ec_datagram_t *); @@ -61,7 +59,7 @@ void ec_fsm_pdo_conf_action_assign_pdo(ec_fsm_pdo_t *, ec_datagram_t *); void ec_fsm_pdo_state_end(ec_fsm_pdo_t *, ec_datagram_t *); void ec_fsm_pdo_state_error(ec_fsm_pdo_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -77,7 +75,7 @@ void ec_fsm_pdo_init( ec_pdo_init(&fsm->slave_pdo); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -91,7 +89,7 @@ void ec_fsm_pdo_clear( ec_pdo_clear(&fsm->slave_pdo); } -/*****************************************************************************/ +/****************************************************************************/ /** Print the current and desired PDO assignment. */ @@ -106,7 +104,7 @@ void ec_fsm_pdo_print( printk(KERN_CONT "\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Start reading the PDO configuration. */ @@ -119,7 +117,7 @@ void ec_fsm_pdo_start_reading( fsm->state = ec_fsm_pdo_read_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Start writing the PDO configuration. */ @@ -132,7 +130,7 @@ void ec_fsm_pdo_start_configuration( fsm->state = ec_fsm_pdo_conf_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Get running state. * @@ -146,7 +144,7 @@ int ec_fsm_pdo_running( && fsm->state != ec_fsm_pdo_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -165,7 +163,7 @@ int ec_fsm_pdo_exec( return ec_fsm_pdo_running(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Get execution result. * @@ -178,9 +176,9 @@ int ec_fsm_pdo_success( return fsm->state == ec_fsm_pdo_state_end; } -/****************************************************************************** +/***************************************************************************** * Reading state funtions. - *****************************************************************************/ + ****************************************************************************/ /** Start reading PDO assignment. */ @@ -194,7 +192,7 @@ void ec_fsm_pdo_read_state_start( ec_fsm_pdo_read_action_next_sync(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Read PDO assignment of next sync manager. */ @@ -230,7 +228,7 @@ void ec_fsm_pdo_read_action_next_sync( fsm->state = ec_fsm_pdo_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Count assigned PDOs. */ @@ -266,7 +264,7 @@ void ec_fsm_pdo_read_state_pdo_count( ec_fsm_pdo_read_action_next_pdo(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Read next PDO. */ @@ -294,7 +292,7 @@ void ec_fsm_pdo_read_action_next_pdo( ec_fsm_pdo_read_action_next_sync(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Fetch PDO information. */ @@ -343,7 +341,7 @@ void ec_fsm_pdo_read_state_pdo( fsm->state(fsm, datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Fetch PDO information. */ @@ -368,9 +366,9 @@ void ec_fsm_pdo_read_state_pdo_entries( ec_fsm_pdo_read_action_next_pdo(fsm, datagram); } -/****************************************************************************** +/***************************************************************************** * Writing state functions. - *****************************************************************************/ + ****************************************************************************/ /** Start PDO configuration. */ @@ -388,7 +386,7 @@ void ec_fsm_pdo_conf_state_start( ec_fsm_pdo_conf_action_next_sync(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Assign next PDO. * @@ -405,7 +403,7 @@ ec_pdo_t *ec_fsm_pdo_conf_action_next_pdo( return list_entry(list, ec_pdo_t, list); } -/*****************************************************************************/ +/****************************************************************************/ /** Get the next sync manager for a pdo configuration. */ @@ -454,7 +452,7 @@ void ec_fsm_pdo_conf_action_next_sync( fsm->state = ec_fsm_pdo_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Check if the mapping has to be read, otherwise start to configure it. */ @@ -489,7 +487,7 @@ void ec_fsm_pdo_conf_action_pdo_mapping( ec_fsm_pdo_conf_action_check_mapping(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Execute the PDO entry state machine to read the current PDO's mapping. */ @@ -511,7 +509,7 @@ void ec_fsm_pdo_conf_state_read_mapping( ec_fsm_pdo_conf_action_check_mapping(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Check if the mapping has to be re-configured. * @@ -548,7 +546,7 @@ void ec_fsm_pdo_conf_action_check_mapping( ec_fsm_pdo_conf_action_next_pdo_mapping(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Let the PDO entry state machine configure the current PDO's mapping. */ @@ -569,7 +567,7 @@ void ec_fsm_pdo_conf_state_mapping( ec_fsm_pdo_conf_action_next_pdo_mapping(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Check mapping of next PDO, otherwise configure assignment. */ @@ -588,7 +586,7 @@ void ec_fsm_pdo_conf_action_next_pdo_mapping( ec_fsm_pdo_conf_action_pdo_mapping(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Check if the PDO assignment of the current SM has to be re-configured. */ @@ -635,7 +633,7 @@ void ec_fsm_pdo_conf_action_check_assignment( ec_fsm_pdo_conf_action_next_sync(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Set the number of assigned PDOs to zero. */ @@ -674,7 +672,7 @@ void ec_fsm_pdo_conf_state_zero_pdo_count( ec_fsm_pdo_conf_action_assign_pdo(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Assign a PDO. */ @@ -697,7 +695,7 @@ void ec_fsm_pdo_conf_action_assign_pdo( ec_fsm_coe_exec(fsm->fsm_coe, datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Add a PDO to the sync managers PDO assignment. */ @@ -742,7 +740,7 @@ void ec_fsm_pdo_conf_state_assign_pdo( ec_fsm_pdo_conf_action_assign_pdo(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Set the number of assigned PDOs. */ @@ -773,9 +771,9 @@ void ec_fsm_pdo_conf_state_set_pdo_count( ec_fsm_pdo_conf_action_next_sync(fsm, datagram); } -/****************************************************************************** +/***************************************************************************** * Common state functions - *****************************************************************************/ + ****************************************************************************/ /** State: ERROR. */ @@ -786,7 +784,7 @@ void ec_fsm_pdo_state_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -797,4 +795,4 @@ void ec_fsm_pdo_state_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_pdo.h b/master/fsm_pdo.h index 20c8d44a..41fc876a 100644 --- a/master/fsm_pdo.h +++ b/master/fsm_pdo.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT PDO configuration state machine structures. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_PDO_H__ #define __EC_FSM_PDO_H__ @@ -36,7 +34,7 @@ #include "fsm_coe.h" #include "fsm_pdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ /** * \see ec_fsm_pdo @@ -62,7 +60,7 @@ struct ec_fsm_pdo unsigned int pdo_count; /**< Number of assigned PDOs. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_pdo_init(ec_fsm_pdo_t *, ec_fsm_coe_t *); void ec_fsm_pdo_clear(ec_fsm_pdo_t *); @@ -73,6 +71,6 @@ void ec_fsm_pdo_start_configuration(ec_fsm_pdo_t *, ec_slave_t *); int ec_fsm_pdo_exec(ec_fsm_pdo_t *, ec_datagram_t *); int ec_fsm_pdo_success(const ec_fsm_pdo_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_pdo_entry.c b/master/fsm_pdo_entry.c index 54f2917b..3de74ce4 100644 --- a/master/fsm_pdo_entry.c +++ b/master/fsm_pdo_entry.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT PDO mapping state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -34,7 +32,7 @@ #include "fsm_pdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_pdo_entry_read_state_start(ec_fsm_pdo_entry_t *, ec_datagram_t *); void ec_fsm_pdo_entry_read_state_count(ec_fsm_pdo_entry_t *, ec_datagram_t *); @@ -55,7 +53,7 @@ void ec_fsm_pdo_entry_conf_action_map(ec_fsm_pdo_entry_t *, ec_datagram_t *); void ec_fsm_pdo_entry_state_end(ec_fsm_pdo_entry_t *, ec_datagram_t *); void ec_fsm_pdo_entry_state_error(ec_fsm_pdo_entry_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -68,7 +66,7 @@ void ec_fsm_pdo_entry_init( ec_sdo_request_init(&fsm->request); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -79,7 +77,7 @@ void ec_fsm_pdo_entry_clear( ec_sdo_request_clear(&fsm->request); } -/*****************************************************************************/ +/****************************************************************************/ /** Print the current and desired PDO mapping. */ @@ -94,7 +92,7 @@ void ec_fsm_pdo_entry_print( printk(KERN_CONT "\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Start reading a PDO's entries. */ @@ -112,7 +110,7 @@ void ec_fsm_pdo_entry_start_reading( fsm->state = ec_fsm_pdo_entry_read_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Start PDO mapping state machine. */ @@ -136,7 +134,7 @@ void ec_fsm_pdo_entry_start_configuration( fsm->state = ec_fsm_pdo_entry_conf_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Get running state. * @@ -150,7 +148,7 @@ int ec_fsm_pdo_entry_running( && fsm->state != ec_fsm_pdo_entry_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state. * @@ -166,7 +164,7 @@ int ec_fsm_pdo_entry_exec( return ec_fsm_pdo_entry_running(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Get execution result. * @@ -179,9 +177,9 @@ int ec_fsm_pdo_entry_success( return fsm->state == ec_fsm_pdo_entry_state_end; } -/****************************************************************************** +/***************************************************************************** * Reading state functions. - *****************************************************************************/ + ****************************************************************************/ /** Request reading the number of mapped PDO entries. */ @@ -198,7 +196,7 @@ void ec_fsm_pdo_entry_read_state_start( ec_fsm_coe_exec(fsm->fsm_coe, datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Read number of mapped PDO entries. */ @@ -236,7 +234,7 @@ void ec_fsm_pdo_entry_read_state_count( ec_fsm_pdo_entry_read_action_next(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Read next PDO entry. */ @@ -259,7 +257,7 @@ void ec_fsm_pdo_entry_read_action_next( fsm->state = ec_fsm_pdo_entry_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Read PDO entry information. */ @@ -325,9 +323,9 @@ void ec_fsm_pdo_entry_read_state_entry( } } -/****************************************************************************** +/***************************************************************************** * Configuration state functions. - *****************************************************************************/ + ****************************************************************************/ /** Start PDO mapping. */ @@ -354,7 +352,7 @@ void ec_fsm_pdo_entry_conf_state_start( ec_fsm_coe_exec(fsm->fsm_coe, datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Process next PDO entry. * @@ -371,7 +369,7 @@ ec_pdo_entry_t *ec_fsm_pdo_entry_conf_next_entry( return list_entry(list, ec_pdo_entry_t, list); } -/*****************************************************************************/ +/****************************************************************************/ /** Set the number of mapped entries to zero. */ @@ -406,7 +404,7 @@ void ec_fsm_pdo_entry_conf_state_zero_entry_count( ec_fsm_pdo_entry_conf_action_map(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Starts to add a PDO entry. */ @@ -435,7 +433,7 @@ void ec_fsm_pdo_entry_conf_action_map( ec_fsm_coe_exec(fsm->fsm_coe, datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Add a PDO entry. */ @@ -482,7 +480,7 @@ void ec_fsm_pdo_entry_conf_state_map_entry( ec_fsm_pdo_entry_conf_action_map(fsm, datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Set the number of entries. */ @@ -508,9 +506,9 @@ void ec_fsm_pdo_entry_conf_state_set_entry_count( fsm->state = ec_fsm_pdo_entry_state_end; // finished } -/****************************************************************************** +/***************************************************************************** * Common state functions - *****************************************************************************/ + ****************************************************************************/ /** State: ERROR. */ @@ -521,7 +519,7 @@ void ec_fsm_pdo_entry_state_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -532,4 +530,4 @@ void ec_fsm_pdo_entry_state_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_pdo_entry.h b/master/fsm_pdo_entry.h index 472100da..d6638af6 100644 --- a/master/fsm_pdo_entry.h +++ b/master/fsm_pdo_entry.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT PDO entry configuration state machine structures. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_PDO_ENTRY_H__ #define __EC_FSM_PDO_ENTRY_H__ @@ -34,7 +32,7 @@ #include "datagram.h" #include "fsm_coe.h" -/*****************************************************************************/ +/****************************************************************************/ /** * \see ec_fsm_pdo_entry @@ -59,7 +57,7 @@ struct ec_fsm_pdo_entry unsigned int entry_pos; /**< Position in PDO mapping. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_pdo_entry_init(ec_fsm_pdo_entry_t *, ec_fsm_coe_t *); void ec_fsm_pdo_entry_clear(ec_fsm_pdo_entry_t *); @@ -72,6 +70,6 @@ void ec_fsm_pdo_entry_start_configuration(ec_fsm_pdo_entry_t *, ec_slave_t *, int ec_fsm_pdo_entry_exec(ec_fsm_pdo_entry_t *, ec_datagram_t *); int ec_fsm_pdo_entry_success(const ec_fsm_pdo_entry_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_sii.c b/master/fsm_sii.c index f70e2062..7e595491 100644 --- a/master/fsm_sii.c +++ b/master/fsm_sii.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave information interface FSM. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "mailbox.h" @@ -48,7 +46,7 @@ //#define SII_DEBUG -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_sii_state_start_reading(ec_fsm_sii_t *); void ec_fsm_sii_state_read_check(ec_fsm_sii_t *); @@ -59,7 +57,7 @@ void ec_fsm_sii_state_write_check2(ec_fsm_sii_t *); void ec_fsm_sii_state_end(ec_fsm_sii_t *); void ec_fsm_sii_state_error(ec_fsm_sii_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. @@ -73,7 +71,7 @@ void ec_fsm_sii_init(ec_fsm_sii_t *fsm, /**< finite state machine */ fsm->datagram = datagram; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. @@ -83,7 +81,7 @@ void ec_fsm_sii_clear(ec_fsm_sii_t *fsm /**< finite state machine */) { } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes the SII read state machine. @@ -101,7 +99,7 @@ void ec_fsm_sii_read(ec_fsm_sii_t *fsm, /**< finite state machine */ fsm->mode = mode; } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes the SII write state machine. @@ -121,7 +119,7 @@ void ec_fsm_sii_write(ec_fsm_sii_t *fsm, /**< finite state machine */ memcpy(fsm->value, value, 2); } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the SII state machine. @@ -136,7 +134,7 @@ int ec_fsm_sii_exec(ec_fsm_sii_t *fsm /**< finite state machine */) && fsm->state != ec_fsm_sii_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the master startup state machine terminated with success. @@ -148,9 +146,9 @@ int ec_fsm_sii_success(ec_fsm_sii_t *fsm /**< Finite state machine */) return fsm->state == ec_fsm_sii_state_end; } -/****************************************************************************** +/***************************************************************************** * state functions - *****************************************************************************/ + ****************************************************************************/ /** SII state: START READING. @@ -187,7 +185,7 @@ void ec_fsm_sii_state_start_reading( fsm->state = ec_fsm_sii_state_read_check; } -/*****************************************************************************/ +/****************************************************************************/ /** SII state: READ CHECK. @@ -235,7 +233,7 @@ void ec_fsm_sii_state_read_check( fsm->state = ec_fsm_sii_state_read_fetch; } -/*****************************************************************************/ +/****************************************************************************/ /** SII state: READ FETCH. @@ -304,7 +302,7 @@ void ec_fsm_sii_state_read_fetch( fsm->state = ec_fsm_sii_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** SII state: START WRITING. @@ -335,7 +333,7 @@ void ec_fsm_sii_state_start_writing( fsm->state = ec_fsm_sii_state_write_check; } -/*****************************************************************************/ +/****************************************************************************/ /** SII state: WRITE CHECK. @@ -374,7 +372,7 @@ void ec_fsm_sii_state_write_check( fsm->state = ec_fsm_sii_state_write_check2; } -/*****************************************************************************/ +/****************************************************************************/ /** SII state: WRITE CHECK 2. @@ -457,7 +455,7 @@ void ec_fsm_sii_state_write_check2( fsm->state = ec_fsm_sii_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** State: ERROR. @@ -469,7 +467,7 @@ void ec_fsm_sii_state_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. @@ -481,4 +479,4 @@ void ec_fsm_sii_state_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_sii.h b/master/fsm_sii.h index f021fc89..405e2850 100644 --- a/master/fsm_sii.h +++ b/master/fsm_sii.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave information interface FSM structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_SII_H__ #define __EC_FSM_SII_H__ @@ -35,7 +33,7 @@ #include "datagram.h" #include "slave.h" -/*****************************************************************************/ +/****************************************************************************/ /** SII access addressing mode. */ @@ -44,7 +42,7 @@ typedef enum { EC_FSM_SII_USE_CONFIGURED_ADDRESS /**< Use configured addresses. */ } ec_fsm_sii_addressing_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_sii ec_fsm_sii_t; /**< \see ec_fsm_sii */ @@ -66,7 +64,7 @@ struct ec_fsm_sii uint8_t check_once_more; /**< one more try after timeout */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_sii_init(ec_fsm_sii_t *, ec_datagram_t *); void ec_fsm_sii_clear(ec_fsm_sii_t *); @@ -79,6 +77,6 @@ void ec_fsm_sii_write(ec_fsm_sii_t *, ec_slave_t *, uint16_t, int ec_fsm_sii_exec(ec_fsm_sii_t *); int ec_fsm_sii_success(ec_fsm_sii_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_slave.c b/master/fsm_slave.c index 61ed4a6e..3728e33d 100644 --- a/master/fsm_slave.c +++ b/master/fsm_slave.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT slave (SDO) state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -32,7 +32,7 @@ #include "fsm_slave.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_state_idle(ec_fsm_slave_t *, ec_datagram_t *); void ec_fsm_slave_state_ready(ec_fsm_slave_t *, ec_datagram_t *); @@ -45,7 +45,7 @@ void ec_fsm_slave_state_foe_request(ec_fsm_slave_t *, ec_datagram_t *); int ec_fsm_slave_action_process_soe(ec_fsm_slave_t *, ec_datagram_t *); void ec_fsm_slave_state_soe_request(ec_fsm_slave_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -70,7 +70,7 @@ void ec_fsm_slave_init( ec_fsm_soe_init(&fsm->fsm_soe); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -106,7 +106,7 @@ void ec_fsm_slave_clear( ec_fsm_soe_clear(&fsm->fsm_soe); } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -133,7 +133,7 @@ int ec_fsm_slave_exec( return datagram_used; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets the current state of the state machine to READY */ @@ -147,7 +147,7 @@ void ec_fsm_slave_set_ready( } } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the FSM is currently not busy and ready to execute. * @@ -160,9 +160,9 @@ int ec_fsm_slave_is_ready( return fsm->state == ec_fsm_slave_state_ready; } -/****************************************************************************** +/***************************************************************************** * Slave state machine - *****************************************************************************/ + ****************************************************************************/ /** Slave state: IDLE. */ @@ -174,7 +174,7 @@ void ec_fsm_slave_state_idle( // do nothing } -/*****************************************************************************/ +/****************************************************************************/ /** Slave state: READY. */ @@ -204,7 +204,7 @@ void ec_fsm_slave_state_ready( } } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending SDO requests and process one. * @@ -256,7 +256,7 @@ int ec_fsm_slave_action_process_sdo( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave state: SDO_REQUEST. */ @@ -290,7 +290,7 @@ void ec_fsm_slave_state_sdo_request( fsm->state = ec_fsm_slave_state_ready; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending register requests and process one. * @@ -358,7 +358,7 @@ int ec_fsm_slave_action_process_reg( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave state: Register request. */ @@ -408,7 +408,7 @@ void ec_fsm_slave_state_reg_request( fsm->state = ec_fsm_slave_state_ready; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending FoE requests and process one. * @@ -450,7 +450,7 @@ int ec_fsm_slave_action_process_foe( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave state: FOE REQUEST. */ @@ -485,7 +485,7 @@ void ec_fsm_slave_state_foe_request( fsm->state = ec_fsm_slave_state_ready; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for pending SoE requests and process one. * @@ -537,7 +537,7 @@ int ec_fsm_slave_action_process_soe( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave state: SOE_REQUEST. */ @@ -571,4 +571,4 @@ void ec_fsm_slave_state_soe_request( fsm->state = ec_fsm_slave_state_ready; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_slave.h b/master/fsm_slave.h index c97a37d6..55685da5 100644 --- a/master/fsm_slave.h +++ b/master/fsm_slave.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave request state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_SLAVE_H__ #define __EC_FSM_SLAVE_H__ @@ -39,7 +37,7 @@ #include "fsm_foe.h" #include "fsm_soe.h" -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_slave ec_fsm_slave_t; /**< \see ec_fsm_slave */ @@ -62,7 +60,7 @@ struct ec_fsm_slave { ec_fsm_soe_t fsm_soe; /**< SoE state machine. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_init(ec_fsm_slave_t *, ec_slave_t *); void ec_fsm_slave_clear(ec_fsm_slave_t *); @@ -71,7 +69,7 @@ int ec_fsm_slave_exec(ec_fsm_slave_t *, ec_datagram_t *); void ec_fsm_slave_set_ready(ec_fsm_slave_t *); int ec_fsm_slave_is_ready(const ec_fsm_slave_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif // __EC_FSM_SLAVE_H__ diff --git a/master/fsm_slave_config.c b/master/fsm_slave_config.c index c8da0762..6abbd98c 100644 --- a/master/fsm_slave_config.c +++ b/master/fsm_slave_config.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +23,7 @@ * EtherCAT slave configuration state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #include @@ -33,7 +33,7 @@ #include "slave_config.h" #include "fsm_slave_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** Maximum clock difference (in ns) before going to SAFEOP. * @@ -50,7 +50,7 @@ */ #define EC_DC_START_OFFSET 100000000ULL -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_config_state_start(ec_fsm_slave_config_t *); void ec_fsm_slave_config_state_init(ec_fsm_slave_config_t *); @@ -107,7 +107,7 @@ void ec_fsm_slave_config_state_error(ec_fsm_slave_config_t *); void ec_fsm_slave_config_reconfigure(ec_fsm_slave_config_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -132,7 +132,7 @@ void ec_fsm_slave_config_init( fsm->wait_ms = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -144,7 +144,7 @@ void ec_fsm_slave_config_clear( ec_soe_request_clear(&fsm->soe_request_copy); } -/*****************************************************************************/ +/****************************************************************************/ /** Start slave configuration state machine. */ @@ -157,7 +157,7 @@ void ec_fsm_slave_config_start( fsm->state = ec_fsm_slave_config_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** * \return false, if state machine has terminated @@ -170,7 +170,7 @@ int ec_fsm_slave_config_running( && fsm->state != ec_fsm_slave_config_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -193,7 +193,7 @@ int ec_fsm_slave_config_exec( return ec_fsm_slave_config_running(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** * \return true, if the state machine terminated gracefully @@ -205,9 +205,9 @@ int ec_fsm_slave_config_success( return fsm->state == ec_fsm_slave_config_state_end; } -/****************************************************************************** +/***************************************************************************** * Slave configuration state machine - *****************************************************************************/ + ****************************************************************************/ /** Slave configuration state: START. */ @@ -219,7 +219,7 @@ void ec_fsm_slave_config_state_start( ec_fsm_slave_config_enter_init(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Start state change to INIT. */ @@ -232,7 +232,7 @@ void ec_fsm_slave_config_enter_init( fsm->state = ec_fsm_slave_config_state_init; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: INIT. */ @@ -269,7 +269,7 @@ void ec_fsm_slave_config_state_init( fsm->state = ec_fsm_slave_config_state_clear_fmmus; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: CLEAR FMMU. */ @@ -299,7 +299,7 @@ void ec_fsm_slave_config_state_clear_fmmus( ec_fsm_slave_config_enter_clear_sync(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the sync manager configurations. */ @@ -328,7 +328,7 @@ void ec_fsm_slave_config_enter_clear_sync( fsm->state = ec_fsm_slave_config_state_clear_sync; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: CLEAR SYNC. */ @@ -360,7 +360,7 @@ void ec_fsm_slave_config_state_clear_sync( ec_fsm_slave_config_enter_dc_clear_assign(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the DC assignment. */ @@ -384,7 +384,7 @@ void ec_fsm_slave_config_enter_dc_clear_assign( fsm->state = ec_fsm_slave_config_state_dc_clear_assign; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: CLEAR DC ASSIGN. */ @@ -413,7 +413,7 @@ void ec_fsm_slave_config_state_dc_clear_assign( ec_fsm_slave_config_enter_mbox_sync(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for mailbox sync managers to be configured. */ @@ -543,7 +543,7 @@ void ec_fsm_slave_config_enter_mbox_sync( fsm->state = ec_fsm_slave_config_state_mbox_sync; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: SYNC. * @@ -610,7 +610,7 @@ void ec_fsm_slave_config_state_mbox_sync( #endif } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_SII_ASSIGN @@ -636,7 +636,7 @@ void ec_fsm_slave_config_enter_assign_pdi( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: ASSIGN_PDI. */ @@ -668,7 +668,7 @@ cont_preop: #endif -/*****************************************************************************/ +/****************************************************************************/ /** Request PREOP state. */ @@ -689,7 +689,7 @@ void ec_fsm_slave_config_enter_boot_preop( ec_fsm_change_exec(fsm->fsm_change); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: BOOT/PREOP. */ @@ -760,7 +760,7 @@ void ec_fsm_slave_config_state_boot_preop( #endif } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_SII_ASSIGN @@ -800,7 +800,7 @@ cont_sdo_conf: #endif -/*****************************************************************************/ +/****************************************************************************/ /** Check for SDO configurations to be applied. */ @@ -831,7 +831,7 @@ void ec_fsm_slave_config_enter_sdo_conf( ec_fsm_coe_exec(fsm->fsm_coe, fsm->datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: SDO_CONF. */ @@ -870,7 +870,7 @@ void ec_fsm_slave_config_state_sdo_conf( ec_fsm_slave_config_enter_soe_conf_preop(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for SoE configurations to be applied. */ @@ -904,7 +904,7 @@ void ec_fsm_slave_config_enter_soe_conf_preop( ec_fsm_slave_config_enter_pdo_conf(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: SOE_CONF. */ @@ -948,7 +948,7 @@ void ec_fsm_slave_config_state_soe_conf_preop( ec_fsm_slave_config_enter_pdo_conf(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** PDO_CONF entry function. */ @@ -962,7 +962,7 @@ void ec_fsm_slave_config_enter_pdo_conf( fsm->state(fsm); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: PDO_CONF. */ @@ -988,7 +988,7 @@ void ec_fsm_slave_config_state_pdo_conf( ec_fsm_slave_config_enter_watchdog_divider(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** WATCHDOG_DIVIDER entry function. */ @@ -1013,7 +1013,7 @@ void ec_fsm_slave_config_enter_watchdog_divider( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: WATCHDOG_DIVIDER. */ @@ -1045,7 +1045,7 @@ void ec_fsm_slave_config_state_watchdog_divider( ec_fsm_slave_config_enter_watchdog(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** WATCHDOG entry function */ @@ -1071,7 +1071,7 @@ void ec_fsm_slave_config_enter_watchdog( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: WATCHDOG. */ @@ -1103,7 +1103,7 @@ void ec_fsm_slave_config_state_watchdog( ec_fsm_slave_config_enter_pdo_sync(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for PDO sync managers to be configured. */ @@ -1171,7 +1171,7 @@ void ec_fsm_slave_config_enter_pdo_sync( fsm->state = ec_fsm_slave_config_state_pdo_sync; } -/*****************************************************************************/ +/****************************************************************************/ /** Configure PDO sync managers. */ @@ -1204,7 +1204,7 @@ void ec_fsm_slave_config_state_pdo_sync( ec_fsm_slave_config_enter_fmmu(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for FMMUs to be configured. */ @@ -1258,7 +1258,7 @@ void ec_fsm_slave_config_enter_fmmu( fsm->state = ec_fsm_slave_config_state_fmmu; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: FMMU. */ @@ -1290,7 +1290,7 @@ void ec_fsm_slave_config_state_fmmu( ec_fsm_slave_config_enter_dc_cycle(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for DC to be configured. */ @@ -1328,7 +1328,7 @@ void ec_fsm_slave_config_enter_dc_cycle( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: DC CYCLE. */ @@ -1371,7 +1371,7 @@ void ec_fsm_slave_config_state_dc_cycle( fsm->state = ec_fsm_slave_config_state_dc_sync_check; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: DC SYNC CHECK. */ @@ -1472,7 +1472,7 @@ void ec_fsm_slave_config_state_dc_sync_check( fsm->state = ec_fsm_slave_config_state_dc_start; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: DC START. */ @@ -1517,7 +1517,7 @@ void ec_fsm_slave_config_state_dc_start( fsm->state = ec_fsm_slave_config_state_dc_assign; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: DC ASSIGN. */ @@ -1549,7 +1549,7 @@ void ec_fsm_slave_config_state_dc_assign( ec_fsm_slave_config_enter_wait_safeop(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Wait before SAFEOP transition. * @@ -1585,7 +1585,7 @@ void ec_fsm_slave_config_enter_wait_safeop( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: WAIT SAFEOP. */ @@ -1602,7 +1602,7 @@ void ec_fsm_slave_config_state_wait_safeop( ec_fsm_slave_config_enter_safeop(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Request SAFEOP state. */ @@ -1615,7 +1615,7 @@ void ec_fsm_slave_config_enter_safeop( ec_fsm_change_exec(fsm->fsm_change); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: SAFEOP. */ @@ -1647,7 +1647,7 @@ void ec_fsm_slave_config_state_safeop( ec_fsm_slave_config_enter_soe_conf_safeop(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Check for SoE configurations to be applied in SAFEOP. */ @@ -1681,7 +1681,7 @@ void ec_fsm_slave_config_enter_soe_conf_safeop( ec_fsm_slave_config_enter_op(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: SOE_CONF. */ @@ -1725,7 +1725,7 @@ void ec_fsm_slave_config_state_soe_conf_safeop( ec_fsm_slave_config_enter_op(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Bring slave to OP. */ @@ -1739,7 +1739,7 @@ void ec_fsm_slave_config_enter_op( ec_fsm_change_exec(fsm->fsm_change); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration state: OP */ @@ -1765,7 +1765,7 @@ void ec_fsm_slave_config_state_op( fsm->state = ec_fsm_slave_config_state_end; // successful } -/*****************************************************************************/ +/****************************************************************************/ /** Reconfigure the slave starting at INIT. */ @@ -1779,9 +1779,9 @@ void ec_fsm_slave_config_reconfigure( ec_fsm_slave_config_enter_init(fsm); // reconfigure } -/****************************************************************************** +/***************************************************************************** * Common state functions - *****************************************************************************/ + ****************************************************************************/ /** State: ERROR. */ @@ -1791,7 +1791,7 @@ void ec_fsm_slave_config_state_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -1801,4 +1801,4 @@ void ec_fsm_slave_config_state_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_slave_config.h b/master/fsm_slave_config.h index 5086c403..bb7566a8 100644 --- a/master/fsm_slave_config.h +++ b/master/fsm_slave_config.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +23,7 @@ EtherCAT slave configuration state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_SLAVE_CONFIG_H__ #define __EC_FSM_SLAVE_CONFIG_H__ @@ -35,7 +35,7 @@ #include "fsm_coe.h" #include "fsm_pdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** \see ec_fsm_slave_config */ typedef struct ec_fsm_slave_config ec_fsm_slave_config_t; @@ -62,7 +62,7 @@ struct ec_fsm_slave_config unsigned long wait_ms; /**< Wait time (used to wait before SAFEOP). */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_config_init(ec_fsm_slave_config_t *, ec_datagram_t *, ec_fsm_change_t *, ec_fsm_coe_t *, ec_fsm_soe_t *, ec_fsm_pdo_t *); @@ -73,6 +73,6 @@ void ec_fsm_slave_config_start(ec_fsm_slave_config_t *, ec_slave_t *); int ec_fsm_slave_config_exec(ec_fsm_slave_config_t *); int ec_fsm_slave_config_success(const ec_fsm_slave_config_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_slave_scan.c b/master/fsm_slave_scan.c index 4a6efa43..a4bc3db1 100644 --- a/master/fsm_slave_scan.c +++ b/master/fsm_slave_scan.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" @@ -35,7 +33,7 @@ #include "fsm_slave_scan.h" -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_scan_state_start(ec_fsm_slave_scan_t *); void ec_fsm_slave_scan_state_address(ec_fsm_slave_scan_t *); @@ -66,7 +64,7 @@ void ec_fsm_slave_scan_enter_regalias(ec_fsm_slave_scan_t *); void ec_fsm_slave_scan_enter_preop(ec_fsm_slave_scan_t *); void ec_fsm_slave_scan_enter_pdos(ec_fsm_slave_scan_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -86,7 +84,7 @@ void ec_fsm_slave_scan_init( ec_fsm_sii_init(&fsm->fsm_sii, fsm->datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -96,7 +94,7 @@ void ec_fsm_slave_scan_clear(ec_fsm_slave_scan_t *fsm /**< slave state machine * ec_fsm_sii_clear(&fsm->fsm_sii); } -/*****************************************************************************/ +/****************************************************************************/ /** * Start slave scan state machine. @@ -111,7 +109,7 @@ void ec_fsm_slave_scan_start( fsm->state = ec_fsm_slave_scan_state_start; } -/*****************************************************************************/ +/****************************************************************************/ /** \return false, if state machine has terminated @@ -123,7 +121,7 @@ int ec_fsm_slave_scan_running(const ec_fsm_slave_scan_t *fsm /**< slave state ma && fsm->state != ec_fsm_slave_scan_state_error; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. @@ -144,7 +142,7 @@ int ec_fsm_slave_scan_exec(ec_fsm_slave_scan_t *fsm /**< slave state machine */) return ec_fsm_slave_scan_running(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** \return true, if the state machine terminated gracefully @@ -155,9 +153,9 @@ int ec_fsm_slave_scan_success(const ec_fsm_slave_scan_t *fsm /**< slave state ma return fsm->state == ec_fsm_slave_scan_state_end; } -/****************************************************************************** +/***************************************************************************** * slave scan state machine - *****************************************************************************/ + ****************************************************************************/ /** Slave scan state: START. @@ -174,7 +172,7 @@ void ec_fsm_slave_scan_state_start(ec_fsm_slave_scan_t *fsm /**< slave state mac fsm->state = ec_fsm_slave_scan_state_address; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: ADDRESS. @@ -212,7 +210,7 @@ void ec_fsm_slave_scan_state_address( fsm->state = ec_fsm_slave_scan_state_state; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: STATE. @@ -258,7 +256,7 @@ void ec_fsm_slave_scan_state_state( fsm->state = ec_fsm_slave_scan_state_base; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: BASE. */ @@ -330,7 +328,7 @@ void ec_fsm_slave_scan_state_base( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: DC CAPABILITIES. @@ -375,7 +373,7 @@ void ec_fsm_slave_scan_state_dc_cap( fsm->state = ec_fsm_slave_scan_state_dc_times; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: DC TIMES. @@ -414,7 +412,7 @@ void ec_fsm_slave_scan_state_dc_times( ec_fsm_slave_scan_enter_datalink(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan entry function: DATALINK. @@ -434,7 +432,7 @@ void ec_fsm_slave_scan_enter_datalink( fsm->state = ec_fsm_slave_scan_state_datalink; } -/*****************************************************************************/ +/****************************************************************************/ /** Enter slave scan state SII_SIZE. */ @@ -453,7 +451,7 @@ void ec_fsm_slave_scan_enter_sii_size( fsm->state(fsm); // execute state immediately } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_SII_ASSIGN @@ -477,7 +475,7 @@ void ec_fsm_slave_scan_enter_assign_sii( #endif -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: DATALINK. @@ -527,7 +525,7 @@ void ec_fsm_slave_scan_state_datalink( #endif } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_SII_ASSIGN @@ -565,7 +563,7 @@ continue_with_sii_size: #endif -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: SII SIZE. @@ -642,7 +640,7 @@ alloc_sii: ec_fsm_sii_exec(&fsm->fsm_sii); // execute state immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: SII DATA. @@ -869,7 +867,7 @@ end: fsm->state = ec_fsm_slave_scan_state_error; } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_REGALIAS @@ -890,7 +888,7 @@ void ec_fsm_slave_scan_enter_regalias( fsm->state = ec_fsm_slave_scan_state_regalias; } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: REGALIAS. */ @@ -928,7 +926,7 @@ void ec_fsm_slave_scan_state_regalias( #endif // defined EC_REGALIAS -/*****************************************************************************/ +/****************************************************************************/ /** Enter slave scan state PREOP. */ @@ -966,7 +964,7 @@ void ec_fsm_slave_scan_enter_preop( } } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: PREOP. */ @@ -985,7 +983,7 @@ void ec_fsm_slave_scan_state_preop( ec_fsm_slave_scan_enter_pdos(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: SYNC. */ @@ -1053,7 +1051,7 @@ void ec_fsm_slave_scan_state_sync( ec_fsm_slave_scan_enter_pdos(fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Enter slave scan state PDOS. */ @@ -1069,7 +1067,7 @@ void ec_fsm_slave_scan_enter_pdos( ec_fsm_pdo_exec(fsm->fsm_pdo, fsm->datagram); // execute immediately } -/*****************************************************************************/ +/****************************************************************************/ /** Slave scan state: PDOS. */ @@ -1090,9 +1088,9 @@ void ec_fsm_slave_scan_state_pdos( fsm->state = ec_fsm_slave_scan_state_end; } -/****************************************************************************** +/***************************************************************************** * Common state functions - *****************************************************************************/ + ****************************************************************************/ /** State: ERROR. */ @@ -1102,7 +1100,7 @@ void ec_fsm_slave_scan_state_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -1112,4 +1110,4 @@ void ec_fsm_slave_scan_state_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_slave_scan.h b/master/fsm_slave_scan.h index 883af379..72c8a39a 100644 --- a/master/fsm_slave_scan.h +++ b/master/fsm_slave_scan.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave scanning state machine. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_SLAVE_SCAN_H__ #define __EC_FSM_SLAVE_SCAN_H__ @@ -39,7 +37,7 @@ #include "fsm_coe.h" #include "fsm_pdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** \see ec_fsm_slave_scan */ typedef struct ec_fsm_slave_scan ec_fsm_slave_scan_t; @@ -61,7 +59,7 @@ struct ec_fsm_slave_scan ec_fsm_sii_t fsm_sii; /**< SII state machine. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_slave_scan_init(ec_fsm_slave_scan_t *, ec_datagram_t *, ec_fsm_slave_config_t *, ec_fsm_pdo_t *); @@ -72,6 +70,6 @@ void ec_fsm_slave_scan_start(ec_fsm_slave_scan_t *, ec_slave_t *); int ec_fsm_slave_scan_exec(ec_fsm_slave_scan_t *); int ec_fsm_slave_scan_success(const ec_fsm_slave_scan_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/fsm_soe.c b/master/fsm_soe.c index 92603df5..7a11cfdd 100644 --- a/master/fsm_soe.c +++ b/master/fsm_soe.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2020 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT SoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "master.h" #include "mailbox.h" #include "fsm_soe.h" -/*****************************************************************************/ +/****************************************************************************/ /** SoE operations */ @@ -54,7 +54,7 @@ enum ec_soe_opcodes { */ #define EC_SOE_RESPONSE_TIMEOUT 1000 -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_soe_read_start(ec_fsm_soe_t *, ec_datagram_t *); void ec_fsm_soe_read_request(ec_fsm_soe_t *, ec_datagram_t *); @@ -69,11 +69,11 @@ void ec_fsm_soe_write_response(ec_fsm_soe_t *, ec_datagram_t *); void ec_fsm_soe_end(ec_fsm_soe_t *, ec_datagram_t *); void ec_fsm_soe_error(ec_fsm_soe_t *, ec_datagram_t *); -/*****************************************************************************/ +/****************************************************************************/ extern const ec_code_msg_t soe_error_codes[]; -/*****************************************************************************/ +/****************************************************************************/ /** Outputs an SoE error code. */ @@ -92,7 +92,7 @@ void ec_print_soe_error(const ec_slave_t *slave, uint16_t error_code) EC_SLAVE_ERR(slave, "Unknown SoE error 0x%04X.\n", error_code); } -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -105,7 +105,7 @@ void ec_fsm_soe_init( fsm->fragment_size = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -115,7 +115,7 @@ void ec_fsm_soe_clear( { } -/*****************************************************************************/ +/****************************************************************************/ /** Starts to transfer an IDN to/from a slave. */ @@ -135,7 +135,7 @@ void ec_fsm_soe_transfer( } } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the current state of the state machine. * @@ -170,7 +170,7 @@ int ec_fsm_soe_exec( return datagram_used; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns, if the state machine terminated with success. * @@ -181,7 +181,7 @@ int ec_fsm_soe_success(const ec_fsm_soe_t *fsm /**< Finite state machine */) return fsm->state == ec_fsm_soe_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Output information about a failed SoE transfer. */ @@ -200,9 +200,9 @@ void ec_fsm_soe_print_error(ec_fsm_soe_t *fsm /**< Finite state machine */) printk(KERN_CONT " IDN 0x%04X failed.\n", request->idn); } -/****************************************************************************** +/***************************************************************************** * SoE read state machine - *****************************************************************************/ + ****************************************************************************/ /** Prepare a read operation. * @@ -239,7 +239,7 @@ int ec_fsm_soe_prepare_read( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: READ START. */ @@ -270,7 +270,7 @@ void ec_fsm_soe_read_start( } } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: READ REQUEST. */ @@ -325,7 +325,7 @@ void ec_fsm_soe_read_request( fsm->state = ec_fsm_soe_read_check; } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: READ CHECK. */ @@ -381,7 +381,7 @@ void ec_fsm_soe_read_check( fsm->state = ec_fsm_soe_read_response; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: READ RESPONSE. */ @@ -505,9 +505,9 @@ void ec_fsm_soe_read_response( } } -/****************************************************************************** +/***************************************************************************** * SoE write state machine - *****************************************************************************/ + ****************************************************************************/ /** Write next fragment. */ @@ -554,7 +554,7 @@ void ec_fsm_soe_write_next_fragment( fsm->state = ec_fsm_soe_write_request; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: WRITE START. */ @@ -590,7 +590,7 @@ void ec_fsm_soe_write_start( req->jiffies_sent = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: WRITE REQUEST. */ @@ -650,7 +650,7 @@ void ec_fsm_soe_write_request( } } -/*****************************************************************************/ +/****************************************************************************/ /** CoE state: WRITE CHECK. */ @@ -704,7 +704,7 @@ void ec_fsm_soe_write_check( fsm->state = ec_fsm_soe_write_response; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE state: WRITE RESPONSE. */ @@ -811,7 +811,7 @@ void ec_fsm_soe_write_response( } } -/*****************************************************************************/ +/****************************************************************************/ /** State: ERROR. */ @@ -822,7 +822,7 @@ void ec_fsm_soe_error( { } -/*****************************************************************************/ +/****************************************************************************/ /** State: END. */ @@ -833,4 +833,4 @@ void ec_fsm_soe_end( { } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/fsm_soe.h b/master/fsm_soe.h index 6fd60496..b99253d8 100644 --- a/master/fsm_soe.h +++ b/master/fsm_soe.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CoE state machines. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_FSM_SOE_H__ #define __EC_FSM_SOE_H__ @@ -36,7 +34,7 @@ #include "slave.h" #include "soe_request.h" -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_fsm_soe ec_fsm_soe_t; /**< \see ec_fsm_soe */ @@ -54,7 +52,7 @@ struct ec_fsm_soe { size_t fragment_size; /**< Size of the current fragment. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_fsm_soe_init(ec_fsm_soe_t *); void ec_fsm_soe_clear(ec_fsm_soe_t *); @@ -64,6 +62,6 @@ void ec_fsm_soe_transfer(ec_fsm_soe_t *, ec_slave_t *, ec_soe_request_t *); int ec_fsm_soe_exec(ec_fsm_soe_t *, ec_datagram_t *); int ec_fsm_soe_success(const ec_fsm_soe_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/globals.h b/master/globals.h index a0c820df..b540360e 100644 --- a/master/globals.h +++ b/master/globals.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2021 Florian Pose, Ingenieurgemeinschaft IgH * @@ -16,13 +16,13 @@ * You should have received a copy of the GNU Lesser General Public License * along with this file. If not, see . * - *****************************************************************************/ + ****************************************************************************/ /** \file * Global definitions and macros. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_MASTER_GLOBALS_H__ #define __EC_MASTER_GLOBALS_H__ @@ -30,9 +30,9 @@ #include "../globals.h" #include "../include/ecrt.h" -/****************************************************************************** +/***************************************************************************** * EtherCAT master - *****************************************************************************/ + ****************************************************************************/ /** Datagram timeout in microseconds. */ #define EC_IO_TIMEOUT 500 @@ -59,9 +59,9 @@ /** Number of statistic rate intervals to maintain. */ #define EC_RATE_COUNT 3 -/****************************************************************************** +/***************************************************************************** * EtherCAT protocol - *****************************************************************************/ + ****************************************************************************/ /** Size of an EtherCAT frame header. */ #define EC_FRAME_HEADER_SIZE 2 @@ -193,7 +193,7 @@ typedef enum { extern const char *ec_device_names[2]; // only main and backup! -/*****************************************************************************/ +/****************************************************************************/ /** Convenience macro for printing EtherCAT-specific information to syslog. * @@ -235,17 +235,17 @@ extern const char *ec_device_names[2]; // only main and backup! #define EC_DBG(fmt, args...) \ printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) -/*****************************************************************************/ +/****************************************************************************/ /** Absolute value. */ #define EC_ABS(X) ((X) >= 0 ? (X) : -(X)) -/*****************************************************************************/ +/****************************************************************************/ extern char *ec_master_version_str; -/*****************************************************************************/ +/****************************************************************************/ unsigned int ec_master_count(void); void ec_print_data(const uint8_t *, size_t); @@ -256,7 +256,7 @@ int ec_mac_is_zero(const uint8_t *); ec_master_t *ecrt_request_master_err(unsigned int); -/*****************************************************************************/ +/****************************************************************************/ /** Code/Message pair. * @@ -268,7 +268,7 @@ typedef struct { const char *message; /**< Message belonging to \a code. */ } ec_code_msg_t; -/*****************************************************************************/ +/****************************************************************************/ /** Generic request state. * @@ -283,11 +283,11 @@ typedef enum { EC_INT_REQUEST_FAILURE } ec_internal_request_state_t; -/*****************************************************************************/ +/****************************************************************************/ extern const ec_request_state_t ec_request_state_translation_table[]; -/*****************************************************************************/ +/****************************************************************************/ /** Origin type. */ @@ -296,10 +296,10 @@ typedef enum { EC_ORIG_EXTERNAL /**< External. */ } ec_origin_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct ec_slave ec_slave_t; /**< \see ec_slave. */ -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/ioctl.c b/master/ioctl.c index 2fc863d6..8d577d29 100644 --- a/master/ioctl.c +++ b/master/ioctl.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +23,7 @@ EtherCAT master character device. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -61,7 +61,7 @@ rt_mutex_lock_interruptible(lock) #endif // EC_IOCTL_RTDM -/*****************************************************************************/ +/****************************************************************************/ /** Copies a string to an ioctl structure. */ @@ -78,7 +78,7 @@ static void ec_ioctl_strcpy( } } -/*****************************************************************************/ +/****************************************************************************/ /** Get module information. * @@ -99,7 +99,7 @@ static ATTRIBUTES int ec_ioctl_module( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get master information. * @@ -198,7 +198,7 @@ static ATTRIBUTES int ec_ioctl_master( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave information. * @@ -285,7 +285,7 @@ static ATTRIBUTES int ec_ioctl_slave( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave sync manager information. * @@ -338,7 +338,7 @@ static ATTRIBUTES int ec_ioctl_slave_sync( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave sync manager PDO information. * @@ -397,7 +397,7 @@ static ATTRIBUTES int ec_ioctl_slave_sync_pdo( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave sync manager PDO entry information. * @@ -466,7 +466,7 @@ static ATTRIBUTES int ec_ioctl_slave_sync_pdo_entry( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get domain information. * @@ -511,7 +511,7 @@ static ATTRIBUTES int ec_ioctl_domain( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get domain FMMU information. * @@ -563,7 +563,7 @@ static ATTRIBUTES int ec_ioctl_domain_fmmu( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get domain data. * @@ -608,7 +608,7 @@ static ATTRIBUTES int ec_ioctl_domain_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Set master debug level. * @@ -622,7 +622,7 @@ static ATTRIBUTES int ec_ioctl_master_debug( return ec_master_debug_level(master, (unsigned long) arg); } -/*****************************************************************************/ +/****************************************************************************/ /** Issue a bus scan. * @@ -637,7 +637,7 @@ static ATTRIBUTES int ec_ioctl_master_rescan( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Set slave state. * @@ -672,7 +672,7 @@ static ATTRIBUTES int ec_ioctl_slave_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave SDO information. * @@ -721,7 +721,7 @@ static ATTRIBUTES int ec_ioctl_slave_sdo( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave SDO entry information. * @@ -801,7 +801,7 @@ static ATTRIBUTES int ec_ioctl_slave_sdo_entry( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Upload SDO. * @@ -847,7 +847,7 @@ static ATTRIBUTES int ec_ioctl_slave_sdo_upload( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Download SDO. * @@ -895,7 +895,7 @@ static ATTRIBUTES int ec_ioctl_slave_sdo_download( return retval; } -/*****************************************************************************/ +/****************************************************************************/ /** Read a slave's SII. * @@ -943,7 +943,7 @@ static ATTRIBUTES int ec_ioctl_slave_sii_read( return retval; } -/*****************************************************************************/ +/****************************************************************************/ /** Write a slave's SII. * @@ -1031,7 +1031,7 @@ static ATTRIBUTES int ec_ioctl_slave_sii_write( return request.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO; } -/*****************************************************************************/ +/****************************************************************************/ /** Read a slave's registers. * @@ -1110,7 +1110,7 @@ static ATTRIBUTES int ec_ioctl_slave_reg_read( return request.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO; } -/*****************************************************************************/ +/****************************************************************************/ /** Write a slave's registers. * @@ -1195,7 +1195,7 @@ static ATTRIBUTES int ec_ioctl_slave_reg_write( return request.state == EC_INT_REQUEST_SUCCESS ? 0 : -EIO; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration information. * @@ -1254,7 +1254,7 @@ static ATTRIBUTES int ec_ioctl_config( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration PDO information. * @@ -1310,7 +1310,7 @@ static ATTRIBUTES int ec_ioctl_config_pdo( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration PDO entry information. * @@ -1375,7 +1375,7 @@ static ATTRIBUTES int ec_ioctl_config_pdo_entry( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration SDO information. * @@ -1439,7 +1439,7 @@ static ATTRIBUTES int ec_ioctl_config_sdo( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration IDN information. * @@ -1503,7 +1503,7 @@ static ATTRIBUTES int ec_ioctl_config_idn( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get slave configuration feature flag information. * @@ -1566,7 +1566,7 @@ static ATTRIBUTES int ec_ioctl_config_flag( return 0; } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_EOE @@ -1620,7 +1620,7 @@ static ATTRIBUTES int ec_ioctl_eoe_handler( #endif -/*****************************************************************************/ +/****************************************************************************/ /** Request the master from userspace. * @@ -1645,7 +1645,7 @@ static ATTRIBUTES int ec_ioctl_request( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Create a domain. * @@ -1669,7 +1669,7 @@ static ATTRIBUTES int ec_ioctl_create_domain( return domain->index; } -/*****************************************************************************/ +/****************************************************************************/ /** Create a slave configuration. * @@ -1715,7 +1715,7 @@ static ATTRIBUTES int ec_ioctl_create_slave_config( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Select the DC reference clock. * @@ -1756,7 +1756,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Activates the master. * @@ -1840,7 +1840,7 @@ static ATTRIBUTES int ec_ioctl_activate( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Deactivates the master. * @@ -1859,7 +1859,7 @@ static ATTRIBUTES int ec_ioctl_deactivate( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Set max. number of databytes in a cycle * @@ -1891,7 +1891,7 @@ static ATTRIBUTES int ec_ioctl_set_send_interval( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Send frames. * @@ -1914,7 +1914,7 @@ static ATTRIBUTES int ec_ioctl_send( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Receive frames. * @@ -1937,7 +1937,7 @@ static ATTRIBUTES int ec_ioctl_receive( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the master state. * @@ -1959,7 +1959,7 @@ static ATTRIBUTES int ec_ioctl_master_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the link state. * @@ -1991,7 +1991,7 @@ static ATTRIBUTES int ec_ioctl_master_link_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Set the master DC application time. * @@ -2016,7 +2016,7 @@ static ATTRIBUTES int ec_ioctl_app_time( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sync the reference clock. * @@ -2039,7 +2039,7 @@ static ATTRIBUTES int ec_ioctl_sync_ref( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sync the reference clock. * @@ -2067,7 +2067,7 @@ static ATTRIBUTES int ec_ioctl_sync_ref_to( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sync the slave clocks. * @@ -2090,7 +2090,7 @@ static ATTRIBUTES int ec_ioctl_sync_slaves( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the system time of the reference clock. * @@ -2121,7 +2121,7 @@ static ATTRIBUTES int ec_ioctl_ref_clock_time( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Queue the sync monitoring datagram. * @@ -2144,7 +2144,7 @@ static ATTRIBUTES int ec_ioctl_sync_mon_queue( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Processes the sync monitoring datagram. * @@ -2169,7 +2169,7 @@ static ATTRIBUTES int ec_ioctl_sync_mon_process( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Reset configuration. * @@ -2187,7 +2187,7 @@ static ATTRIBUTES int ec_ioctl_reset( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Configure a sync manager. * @@ -2240,7 +2240,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Configure a slave's watchdogs. * @@ -2285,7 +2285,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Add a PDO to the assignment. * @@ -2319,7 +2319,7 @@ static ATTRIBUTES int ec_ioctl_sc_add_pdo( return ecrt_slave_config_pdo_assign_add(sc, data.sync_index, data.index); } -/*****************************************************************************/ +/****************************************************************************/ /** Clears the PDO assignment. * @@ -2354,7 +2354,7 @@ static ATTRIBUTES int ec_ioctl_sc_clear_pdos( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Add an entry to a PDO's mapping. * @@ -2389,7 +2389,7 @@ static ATTRIBUTES int ec_ioctl_sc_add_entry( data.entry_index, data.entry_subindex, data.entry_bit_length); } -/*****************************************************************************/ +/****************************************************************************/ /** Clears the mapping of a PDO. * @@ -2424,7 +2424,7 @@ static ATTRIBUTES int ec_ioctl_sc_clear_entries( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Registers a PDO entry. * @@ -2471,7 +2471,7 @@ static ATTRIBUTES int ec_ioctl_sc_reg_pdo_entry( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Registers a PDO entry by its position. * @@ -2521,7 +2521,7 @@ static ATTRIBUTES int ec_ioctl_sc_reg_pdo_pos( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets the DC AssignActivate word and the sync signal times. * @@ -2561,7 +2561,7 @@ static ATTRIBUTES int ec_ioctl_sc_dc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Configures an SDO. * @@ -2620,7 +2620,7 @@ static ATTRIBUTES int ec_ioctl_sc_sdo( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Set the emergency ring buffer size. * @@ -2658,7 +2658,7 @@ static ATTRIBUTES int ec_ioctl_sc_emerg_size( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Get an emergency message from the ring. * @@ -2702,7 +2702,7 @@ static ATTRIBUTES int ec_ioctl_sc_emerg_pop( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the emergency ring. * @@ -2735,7 +2735,7 @@ static ATTRIBUTES int ec_ioctl_sc_emerg_clear( return ecrt_slave_config_emerg_clear(sc); } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of emergency overruns. * @@ -2780,7 +2780,7 @@ static ATTRIBUTES int ec_ioctl_sc_emerg_overruns( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Create an SDO request. * @@ -2831,7 +2831,7 @@ static ATTRIBUTES int ec_ioctl_sc_create_sdo_request( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Create an SoE request. * @@ -2884,7 +2884,7 @@ static ATTRIBUTES int ec_ioctl_sc_create_soe_request( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Create a register request. * @@ -2938,7 +2938,7 @@ static ATTRIBUTES int ec_ioctl_sc_create_reg_request( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Create a VoE handler. * @@ -2988,7 +2988,7 @@ static ATTRIBUTES int ec_ioctl_sc_create_voe_handler( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the slave configuration's state. * @@ -3026,7 +3026,7 @@ static ATTRIBUTES int ec_ioctl_sc_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Configures an IDN. * @@ -3080,7 +3080,7 @@ static ATTRIBUTES int ec_ioctl_sc_idn( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Configures a feature flag. * @@ -3137,7 +3137,7 @@ static ATTRIBUTES int ec_ioctl_sc_flag( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets the domain's data size. * @@ -3171,7 +3171,7 @@ static ATTRIBUTES int ec_ioctl_domain_size( return -ENOENT; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets the domain's offset in the total process data. * @@ -3205,7 +3205,7 @@ static ATTRIBUTES int ec_ioctl_domain_offset( return -ENOENT; } -/*****************************************************************************/ +/****************************************************************************/ /** Process the domain. * @@ -3233,7 +3233,7 @@ static ATTRIBUTES int ec_ioctl_domain_process( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Queue the domain. * @@ -3264,7 +3264,7 @@ static ATTRIBUTES int ec_ioctl_domain_queue( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the domain state. * @@ -3302,7 +3302,7 @@ static ATTRIBUTES int ec_ioctl_domain_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets an SDO request's SDO index and subindex. * @@ -3339,7 +3339,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_index( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets an SDO request's timeout. * @@ -3376,7 +3376,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_timeout( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets an SDO request's state. * @@ -3421,7 +3421,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an SDO read operation. * @@ -3458,7 +3458,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_read( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an SDO write operation. * @@ -3509,7 +3509,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_write( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Read SDO data. * @@ -3549,7 +3549,7 @@ static ATTRIBUTES int ec_ioctl_sdo_request_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets an SoE request's drive number and IDN. * @@ -3586,7 +3586,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_index( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets an CoE request's timeout. * @@ -3623,7 +3623,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_timeout( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets an SoE request's state. * @@ -3670,7 +3670,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an SoE IDN read operation. * @@ -3707,7 +3707,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_read( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an SoE IDN write operation. * @@ -3758,7 +3758,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_write( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Read SoE IDN data. * @@ -3798,7 +3798,7 @@ static ATTRIBUTES int ec_ioctl_soe_request_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Read register data. * @@ -3845,7 +3845,7 @@ static ATTRIBUTES int ec_ioctl_reg_request_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets an register request's state. * @@ -3890,7 +3890,7 @@ static ATTRIBUTES int ec_ioctl_reg_request_state( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an register write operation. * @@ -3938,7 +3938,7 @@ static ATTRIBUTES int ec_ioctl_reg_request_write( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts an register read operation. * @@ -3981,7 +3981,7 @@ static ATTRIBUTES int ec_ioctl_reg_request_read( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Sets the VoE send header. * @@ -4026,7 +4026,7 @@ static ATTRIBUTES int ec_ioctl_voe_send_header( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Gets the received VoE header. * @@ -4074,7 +4074,7 @@ static ATTRIBUTES int ec_ioctl_voe_rec_header( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts a VoE read operation. * @@ -4111,7 +4111,7 @@ static ATTRIBUTES int ec_ioctl_voe_read( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts a VoE read operation without sending a sync message first. * @@ -4148,7 +4148,7 @@ static ATTRIBUTES int ec_ioctl_voe_read_nosync( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Starts a VoE write operation. * @@ -4194,7 +4194,7 @@ static ATTRIBUTES int ec_ioctl_voe_write( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Executes the VoE state machine. * @@ -4242,7 +4242,7 @@ static ATTRIBUTES int ec_ioctl_voe_exec( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Reads the received VoE data. * @@ -4282,7 +4282,7 @@ static ATTRIBUTES int ec_ioctl_voe_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Read a file from a slave via FoE. * @@ -4378,7 +4378,7 @@ static ATTRIBUTES int ec_ioctl_slave_foe_read( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Write a file to a slave via FoE * @@ -4466,7 +4466,7 @@ static ATTRIBUTES int ec_ioctl_slave_foe_write( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Read an SoE IDN. * @@ -4515,7 +4515,7 @@ static ATTRIBUTES int ec_ioctl_slave_soe_read( return retval; } -/*****************************************************************************/ +/****************************************************************************/ /** Write an IDN to a slave via SoE. * @@ -4561,7 +4561,7 @@ static ATTRIBUTES int ec_ioctl_slave_soe_write( return retval; } -/*****************************************************************************/ +/****************************************************************************/ /** ioctl() function to use. */ @@ -5149,4 +5149,4 @@ long EC_IOCTL( return ret; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/ioctl.h b/master/ioctl.h index 7a5e57b9..d18e37c7 100644 --- a/master/ioctl.h +++ b/master/ioctl.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2021 Florian Pose, Ingenieurgemeinschaft IgH * @@ -16,14 +16,14 @@ * You should have received a copy of the GNU Lesser General Public License * along with this file. If not, see . * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master character device IOCTL commands. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_IOCTL_H__ #define __EC_IOCTL_H__ @@ -32,7 +32,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -154,18 +154,18 @@ #define EC_IOCTL_VOE_DATA EC_IOWR(0x61, ec_ioctl_voe_t) #define EC_IOCTL_SET_SEND_INTERVAL EC_IOW(0x62, size_t) -/*****************************************************************************/ +/****************************************************************************/ #define EC_IOCTL_STRING_SIZE 64 -/*****************************************************************************/ +/****************************************************************************/ typedef struct { uint32_t ioctl_version_magic; uint32_t master_count; } ec_ioctl_module_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { uint32_t slave_count; @@ -205,7 +205,7 @@ typedef struct { uint16_t ref_clock; } ec_ioctl_master_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // input @@ -254,7 +254,7 @@ typedef struct { char name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_slave_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -269,7 +269,7 @@ typedef struct { uint8_t pdo_count; } ec_ioctl_slave_sync_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -283,7 +283,7 @@ typedef struct { int8_t name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_slave_sync_pdo_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -299,7 +299,7 @@ typedef struct { int8_t name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_slave_sync_pdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -313,7 +313,7 @@ typedef struct { uint32_t fmmu_count; } ec_ioctl_domain_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -329,7 +329,7 @@ typedef struct { uint32_t data_size; } ec_ioctl_domain_fmmu_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -338,7 +338,7 @@ typedef struct { uint8_t *target; } ec_ioctl_domain_data_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -346,7 +346,7 @@ typedef struct { uint8_t al_state; } ec_ioctl_slave_state_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -359,7 +359,7 @@ typedef struct { int8_t name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_slave_sdo_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -375,7 +375,7 @@ typedef struct { int8_t description[EC_IOCTL_STRING_SIZE]; } ec_ioctl_slave_sdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -390,7 +390,7 @@ typedef struct { uint32_t abort_code; } ec_ioctl_slave_sdo_upload_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -405,7 +405,7 @@ typedef struct { uint32_t abort_code; } ec_ioctl_slave_sdo_download_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -415,7 +415,7 @@ typedef struct { uint16_t *words; } ec_ioctl_slave_sii_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -426,7 +426,7 @@ typedef struct { uint8_t *data; } ec_ioctl_slave_reg_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -442,7 +442,7 @@ typedef struct { char file_name[32]; } ec_ioctl_slave_foe_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -457,7 +457,7 @@ typedef struct { uint16_t error_code; } ec_ioctl_slave_soe_read_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -471,7 +471,7 @@ typedef struct { uint16_t error_code; } ec_ioctl_slave_soe_write_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -498,7 +498,7 @@ typedef struct { ec_sync_signal_t dc_sync[EC_SYNC_SIGNAL_COUNT]; } ec_ioctl_config_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -512,7 +512,7 @@ typedef struct { int8_t name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_config_pdo_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -528,7 +528,7 @@ typedef struct { int8_t name[EC_IOCTL_STRING_SIZE]; } ec_ioctl_config_pdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ /** Maximum size for displayed SDO data. * \todo Make this dynamic. @@ -548,7 +548,7 @@ typedef struct { uint8_t complete_access; } ec_ioctl_config_sdo_t; -/*****************************************************************************/ +/****************************************************************************/ /** Maximum size for displayed IDN data. * \todo Make this dynamic. @@ -568,7 +568,7 @@ typedef struct { uint8_t data[EC_MAX_IDN_DATA_SIZE]; } ec_ioctl_config_idn_t; -/*****************************************************************************/ +/****************************************************************************/ /** Maximum size for key. */ @@ -584,7 +584,7 @@ typedef struct { int32_t value; } ec_ioctl_config_flag_t; -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_EOE @@ -606,7 +606,7 @@ typedef struct { #endif -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // outputs @@ -614,7 +614,7 @@ typedef struct { size_t process_data_size; } ec_ioctl_master_activate_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -625,7 +625,7 @@ typedef struct { uint8_t entry_bit_length; } ec_ioctl_add_pdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -638,7 +638,7 @@ typedef struct { unsigned int bit_position; } ec_ioctl_reg_pdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -652,7 +652,7 @@ typedef struct { unsigned int bit_position; } ec_ioctl_reg_pdo_pos_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -664,7 +664,7 @@ typedef struct { uint8_t complete_access; } ec_ioctl_sc_sdo_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -676,7 +676,7 @@ typedef struct { int32_t overruns; } ec_ioctl_sc_emerg_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -686,7 +686,7 @@ typedef struct { ec_slave_config_state_t *state; } ec_ioctl_sc_state_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -698,7 +698,7 @@ typedef struct { size_t size; } ec_ioctl_sc_idn_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -708,7 +708,7 @@ typedef struct { int32_t value; } ec_ioctl_sc_flag_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -718,7 +718,7 @@ typedef struct { ec_domain_state_t *state; } ec_ioctl_domain_state_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -734,7 +734,7 @@ typedef struct { ec_request_state_t state; } ec_ioctl_sdo_request_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -750,7 +750,7 @@ typedef struct { ec_request_state_t state; } ec_ioctl_soe_request_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -766,7 +766,7 @@ typedef struct { size_t transfer_size; } ec_ioctl_reg_request_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -781,7 +781,7 @@ typedef struct { ec_request_state_t state; } ec_ioctl_voe_t; -/*****************************************************************************/ +/****************************************************************************/ typedef struct { // inputs @@ -791,7 +791,7 @@ typedef struct { ec_master_link_state_t *state; } ec_ioctl_link_state_t; -/*****************************************************************************/ +/****************************************************************************/ #ifdef __KERNEL__ @@ -817,7 +817,7 @@ int ec_rtdm_mmap(ec_ioctl_context_t *, void **); #endif -/*****************************************************************************/ +/****************************************************************************/ /** \endcond */ diff --git a/master/mailbox.c b/master/mailbox.c index 7bb9b628..dacf3392 100644 --- a/master/mailbox.c +++ b/master/mailbox.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Mailbox functionality. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -35,7 +33,7 @@ #include "datagram.h" #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ /** Prepares a mailbox-send datagram. @@ -79,7 +77,7 @@ uint8_t *ec_slave_mbox_prepare_send(const ec_slave_t *slave, /**< slave */ return datagram->data + EC_MBOX_HEADER_SIZE; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares a datagram for checking the mailbox state. @@ -99,7 +97,7 @@ int ec_slave_mbox_prepare_check(const ec_slave_t *slave, /**< slave */ return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Processes a mailbox state checking datagram. @@ -111,7 +109,7 @@ int ec_slave_mbox_check(const ec_datagram_t *datagram /**< datagram */) return EC_READ_U8(datagram->data + 5) & 8 ? 1 : 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares a datagram to fetch mailbox data. @@ -132,7 +130,7 @@ int ec_slave_mbox_prepare_fetch(const ec_slave_t *slave, /**< slave */ return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Mailbox error codes. @@ -150,7 +148,7 @@ const ec_code_msg_t mbox_error_messages[] = { {} }; -/*****************************************************************************/ +/****************************************************************************/ /** Processes received mailbox data. * @@ -202,4 +200,4 @@ uint8_t *ec_slave_mbox_fetch(const ec_slave_t *slave, /**< slave */ return datagram->data + EC_MBOX_HEADER_SIZE; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/mailbox.h b/master/mailbox.h index 6f7a1970..89475f3f 100644 --- a/master/mailbox.h +++ b/master/mailbox.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Mailbox functionality. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_MAILBOX_H__ #define __EC_MAILBOX_H__ #include "slave.h" -/*****************************************************************************/ +/****************************************************************************/ /** Size of the mailbox header. */ @@ -49,7 +47,7 @@ enum ec_mbox_types { EC_MBOX_TYPE_VOE = 0x0f, }; -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ec_slave_mbox_prepare_send(const ec_slave_t *, ec_datagram_t *, uint8_t, size_t); @@ -59,6 +57,6 @@ int ec_slave_mbox_prepare_fetch(const ec_slave_t *, ec_datagram_t *); uint8_t *ec_slave_mbox_fetch(const ec_slave_t *, const ec_datagram_t *, uint8_t *, size_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/master.c b/master/master.c index 2ef2c561..0e06367a 100644 --- a/master/master.c +++ b/master/master.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2020 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +19,14 @@ * * vim: expandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -54,7 +54,7 @@ #include "master.h" -/*****************************************************************************/ +/****************************************************************************/ /** Set to 1 to enable external datagram injection debugging. */ @@ -95,7 +95,7 @@ const unsigned int rate_intervals[] = { 1, 10, 60 }; -/*****************************************************************************/ +/****************************************************************************/ void ec_master_clear_slave_configs(ec_master_t *); void ec_master_clear_domains(ec_master_t *); @@ -108,7 +108,7 @@ void ec_master_find_dc_ref_clock(ec_master_t *); void ec_master_clear_device_stats(ec_master_t *); void ec_master_update_device_stats(ec_master_t *); -/*****************************************************************************/ +/****************************************************************************/ /** Static variables initializer. */ @@ -126,7 +126,7 @@ void ec_master_init_static(void) #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Master constructor. @@ -365,7 +365,7 @@ out_clear_devices: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -407,7 +407,7 @@ void ec_master_clear( } } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_EOE /** Clear and free all EoE handlers. @@ -426,7 +426,7 @@ void ec_master_clear_eoe_handlers( } #endif -/*****************************************************************************/ +/****************************************************************************/ /** Clear all slave configurations. */ @@ -444,7 +444,7 @@ void ec_master_clear_slave_configs(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ /** Clear all slaves. */ @@ -486,7 +486,7 @@ void ec_master_clear_slaves(ec_master_t *master) master->slave_count = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Clear all domains. */ @@ -501,7 +501,7 @@ void ec_master_clear_domains(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the configuration applied by the application. */ @@ -515,7 +515,7 @@ void ec_master_clear_config( up(&master->master_sem); } -/*****************************************************************************/ +/****************************************************************************/ /** Internal sending callback. */ @@ -530,7 +530,7 @@ void ec_master_internal_send_cb( rt_mutex_unlock(&master->io_mutex); } -/*****************************************************************************/ +/****************************************************************************/ /** Internal receiving callback. */ @@ -545,7 +545,7 @@ void ec_master_internal_receive_cb( rt_mutex_unlock(&master->io_mutex); } -/*****************************************************************************/ +/****************************************************************************/ /** Starts the master thread. * @@ -577,7 +577,7 @@ int ec_master_thread_start( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Stops the master thread. */ @@ -607,7 +607,7 @@ void ec_master_thread_stop( schedule_timeout(sleep_jiffies); } -/*****************************************************************************/ +/****************************************************************************/ /** Transition function from ORPHANED to IDLE phase. * @@ -642,7 +642,7 @@ int ec_master_enter_idle_phase( return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Transition function from IDLE to ORPHANED phase. */ @@ -664,7 +664,7 @@ void ec_master_leave_idle_phase(ec_master_t *master /**< EtherCAT master */) ec_fsm_master_reset(&master->fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Transition function from IDLE to OPERATION phase. * @@ -748,7 +748,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Transition function from OPERATION to IDLE phase. */ @@ -770,7 +770,7 @@ void ec_master_leave_operation_phase( master->phase = EC_IDLE; } -/*****************************************************************************/ +/****************************************************************************/ /** Injects external datagrams that fit into the datagram queue. */ @@ -883,7 +883,7 @@ void ec_master_inject_external_datagrams( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Sets the expected interval between calls to ecrt_master_send * and calculates the maximum amount of data to queue. @@ -899,7 +899,7 @@ void ec_master_set_send_interval( master->max_queue_size -= master->max_queue_size / 10; } -/*****************************************************************************/ +/****************************************************************************/ /** Searches for a free datagram in the external datagram ring. * @@ -920,7 +920,7 @@ ec_datagram_t *ec_master_get_external_datagram( } } -/*****************************************************************************/ +/****************************************************************************/ /** Places a datagram in the datagram queue. */ @@ -953,7 +953,7 @@ void ec_master_queue_datagram( datagram->state = EC_DATAGRAM_QUEUED; } -/*****************************************************************************/ +/****************************************************************************/ /** Places a datagram in the non-application datagram queue. */ @@ -967,7 +967,7 @@ void ec_master_queue_datagram_ext( up(&master->ext_queue_sem); } -/*****************************************************************************/ +/****************************************************************************/ /** Sends the datagrams in the queue for a certain device. * @@ -1101,7 +1101,7 @@ void ec_master_send_datagrams( #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Processes a received frame. * @@ -1240,7 +1240,7 @@ void ec_master_receive_datagrams( } } -/*****************************************************************************/ +/****************************************************************************/ /** Output master statistics. * @@ -1273,7 +1273,7 @@ void ec_master_output_stats(ec_master_t *master /**< EtherCAT master */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Clears the common device statistics. */ @@ -1305,7 +1305,7 @@ void ec_master_clear_device_stats( master->device_stats.jiffies = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Updates the common device statistics. */ @@ -1357,7 +1357,7 @@ void ec_master_update_device_stats( s->jiffies = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_USE_HRTIMER @@ -1377,10 +1377,10 @@ static enum hrtimer_restart ec_master_nanosleep_wakeup(struct hrtimer *timer) return HRTIMER_NORESTART; } -/*****************************************************************************/ +/****************************************************************************/ -/*****************************************************************************/ +/****************************************************************************/ void ec_master_nanosleep(const unsigned long nsecs) { @@ -1407,7 +1407,7 @@ void ec_master_nanosleep(const unsigned long nsecs) #endif // EC_USE_HRTIMER -/*****************************************************************************/ +/****************************************************************************/ /** Execute slave FSMs. */ @@ -1497,7 +1497,7 @@ void ec_master_exec_slave_fsms( } } -/*****************************************************************************/ +/****************************************************************************/ /** Master kernel thread function for IDLE phase. */ @@ -1570,7 +1570,7 @@ static int ec_master_idle_thread(void *priv_data) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Master kernel thread function for OPERATION phase. */ @@ -1623,7 +1623,7 @@ static int ec_master_operation_thread(void *priv_data) return 0; } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_EOE @@ -1639,7 +1639,7 @@ static inline void set_normal_priority(struct task_struct *p, int nice) #endif } -/*****************************************************************************/ +/****************************************************************************/ /** Starts Ethernet over EtherCAT processing on demand. */ @@ -1673,7 +1673,7 @@ void ec_master_eoe_start(ec_master_t *master /**< EtherCAT master */) set_normal_priority(master->eoe_thread, 0); } -/*****************************************************************************/ +/****************************************************************************/ /** Stops the Ethernet over EtherCAT processing. */ @@ -1688,7 +1688,7 @@ void ec_master_eoe_stop(ec_master_t *master /**< EtherCAT master */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Does the Ethernet over EtherCAT processing. */ @@ -1751,7 +1751,7 @@ schedule: #endif -/*****************************************************************************/ +/****************************************************************************/ /** Attaches the slave configurations to the slaves. */ @@ -1766,7 +1766,7 @@ void ec_master_attach_slave_configs( } } -/*****************************************************************************/ +/****************************************************************************/ /** Common implementation for ec_master_find_slave() * and ec_master_find_slave_const(). @@ -1821,7 +1821,7 @@ const ec_slave_t *ec_master_find_slave_const( EC_FIND_SLAVE; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of slave configurations provided by the application. * @@ -1841,7 +1841,7 @@ unsigned int ec_master_config_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Common implementation for ec_master_get_config() * and ec_master_get_config_const(). @@ -1884,7 +1884,7 @@ const ec_slave_config_t *ec_master_get_config_const( EC_FIND_CONFIG; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of domains. * @@ -1904,7 +1904,7 @@ unsigned int ec_master_domain_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Common implementation for ec_master_find_domain() and * ec_master_find_domain_const(). @@ -1948,7 +1948,7 @@ const ec_domain_t *ec_master_find_domain_const( EC_FIND_DOMAIN; } -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_EOE @@ -1970,7 +1970,7 @@ uint16_t ec_master_eoe_handler_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Get an EoE handler via its position in the list. * @@ -1996,7 +1996,7 @@ const ec_eoe_t *ec_master_get_eoe_handler_const( #endif -/*****************************************************************************/ +/****************************************************************************/ /** Set the debug level. * @@ -2022,7 +2022,7 @@ int ec_master_debug_level( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds the DC reference clock. */ @@ -2082,7 +2082,7 @@ void ec_master_find_dc_ref_clock( ref ? ref->station_address : 0xffff, 0x0910, 4); } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the bus topology; recursion function. * @@ -2127,7 +2127,7 @@ int ec_master_calc_topology_rec( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the bus topology. */ @@ -2144,7 +2144,7 @@ void ec_master_calc_topology( EC_MASTER_ERR(master, "Failed to calculate bus topology.\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the bus transmission delays. */ @@ -2166,7 +2166,7 @@ void ec_master_calc_transmission_delays( } } -/*****************************************************************************/ +/****************************************************************************/ /** Distributed-clocks calculations. */ @@ -2183,7 +2183,7 @@ void ec_master_calc_dc( ec_master_calc_transmission_delays(master); } -/*****************************************************************************/ +/****************************************************************************/ /** Request OP state for configured slaves. */ @@ -2213,9 +2213,9 @@ void ec_master_request_op( } } -/****************************************************************************** +/***************************************************************************** * Application interface - *****************************************************************************/ + ****************************************************************************/ /** Same as ecrt_master_create_domain(), but with ERR_PTR() return value. * @@ -2256,7 +2256,7 @@ ec_domain_t *ecrt_master_create_domain_err( return domain; } -/*****************************************************************************/ +/****************************************************************************/ ec_domain_t *ecrt_master_create_domain( ec_master_t *master /**< master */ @@ -2266,7 +2266,7 @@ ec_domain_t *ecrt_master_create_domain( return IS_ERR(d) ? NULL : d; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_activate(ec_master_t *master) { @@ -2340,7 +2340,7 @@ int ecrt_master_activate(ec_master_t *master) return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_deactivate(ec_master_t *master) { @@ -2410,7 +2410,7 @@ void ecrt_master_deactivate(ec_master_t *master) master->active = 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_send(ec_master_t *master) { @@ -2454,7 +2454,7 @@ void ecrt_master_send(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_receive(ec_master_t *master) { @@ -2506,7 +2506,7 @@ void ecrt_master_receive(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_send_ext(ec_master_t *master) { @@ -2523,7 +2523,7 @@ void ecrt_master_send_ext(ec_master_t *master) ecrt_master_send(master); } -/*****************************************************************************/ +/****************************************************************************/ /** Same as ecrt_master_slave_config(), but with ERR_PTR() return value. */ @@ -2583,7 +2583,7 @@ ec_slave_config_t *ecrt_master_slave_config_err(ec_master_t *master, return sc; } -/*****************************************************************************/ +/****************************************************************************/ ec_slave_config_t *ecrt_master_slave_config(ec_master_t *master, uint16_t alias, uint16_t position, uint32_t vendor_id, @@ -2594,7 +2594,7 @@ ec_slave_config_t *ecrt_master_slave_config(ec_master_t *master, return IS_ERR(sc) ? NULL : sc; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_select_reference_clock(ec_master_t *master, ec_slave_config_t *sc) @@ -2614,7 +2614,7 @@ int ecrt_master_select_reference_clock(ec_master_t *master, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master(ec_master_t *master, ec_master_info_t *master_info) { @@ -2628,7 +2628,7 @@ int ecrt_master(ec_master_t *master, ec_master_info_t *master_info) return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_scan_progress(ec_master_t *master, ec_master_scan_progress_t *progress) @@ -2641,7 +2641,7 @@ int ecrt_master_scan_progress(ec_master_t *master, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_get_slave(ec_master_t *master, uint16_t slave_position, ec_slave_info_t *slave_info) @@ -2703,7 +2703,7 @@ out_get_slave: return ret; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_callbacks(ec_master_t *master, void (*send_cb)(void *), void (*receive_cb)(void *), void *cb_data) @@ -2717,7 +2717,7 @@ void ecrt_master_callbacks(ec_master_t *master, master->app_cb_data = cb_data; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_state(const ec_master_t *master, ec_master_state_t *state) { @@ -2740,7 +2740,7 @@ void ecrt_master_state(const ec_master_t *master, ec_master_state_t *state) } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_link_state(const ec_master_t *master, unsigned int dev_idx, ec_master_link_state_t *state) @@ -2756,7 +2756,7 @@ int ecrt_master_link_state(const ec_master_t *master, unsigned int dev_idx, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_application_time(ec_master_t *master, uint64_t app_time) { @@ -2767,7 +2767,7 @@ void ecrt_master_application_time(ec_master_t *master, uint64_t app_time) } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_reference_clock_time(ec_master_t *master, uint32_t *time) { @@ -2786,7 +2786,7 @@ int ecrt_master_reference_clock_time(ec_master_t *master, uint32_t *time) return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_sync_reference_clock(ec_master_t *master) { @@ -2796,7 +2796,7 @@ void ecrt_master_sync_reference_clock(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_sync_reference_clock_to( ec_master_t *master, @@ -2809,7 +2809,7 @@ void ecrt_master_sync_reference_clock_to( } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_sync_slave_clocks(ec_master_t *master) { @@ -2819,7 +2819,7 @@ void ecrt_master_sync_slave_clocks(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_sync_monitor_queue(ec_master_t *master) { @@ -2827,7 +2827,7 @@ void ecrt_master_sync_monitor_queue(ec_master_t *master) ec_master_queue_datagram(master, &master->sync_mon_datagram); } -/*****************************************************************************/ +/****************************************************************************/ uint32_t ecrt_master_sync_monitor_process(ec_master_t *master) { @@ -2838,7 +2838,7 @@ uint32_t ecrt_master_sync_monitor_process(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_sdo_download(ec_master_t *master, uint16_t slave_position, uint16_t index, uint8_t subindex, uint8_t *data, @@ -2917,7 +2917,7 @@ int ecrt_master_sdo_download(ec_master_t *master, uint16_t slave_position, return ret; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_sdo_download_complete(ec_master_t *master, uint16_t slave_position, uint16_t index, uint8_t *data, @@ -2998,7 +2998,7 @@ int ecrt_master_sdo_download_complete(ec_master_t *master, return ret; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_sdo_upload(ec_master_t *master, uint16_t slave_position, uint16_t index, uint8_t subindex, uint8_t *target, @@ -3081,7 +3081,7 @@ int ecrt_master_sdo_upload(ec_master_t *master, uint16_t slave_position, return ret; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_write_idn(ec_master_t *master, uint16_t slave_position, uint8_t drive_no, uint16_t idn, uint8_t *data, size_t data_size, @@ -3157,7 +3157,7 @@ int ecrt_master_write_idn(ec_master_t *master, uint16_t slave_position, return ret; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_master_read_idn(ec_master_t *master, uint16_t slave_position, uint8_t drive_no, uint16_t idn, uint8_t *target, size_t target_size, @@ -3241,7 +3241,7 @@ int ecrt_master_read_idn(ec_master_t *master, uint16_t slave_position, return ret; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_master_reset(ec_master_t *master) { @@ -3254,7 +3254,7 @@ void ecrt_master_reset(ec_master_t *master) } } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -3288,4 +3288,4 @@ EXPORT_SYMBOL(ecrt_master_reset); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/master.h b/master/master.h index 12e07cd1..995fc0ca 100644 --- a/master/master.h +++ b/master/master.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2024 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT master structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_MASTER_H__ #define __EC_MASTER_H__ @@ -46,7 +46,7 @@ #include "rtdm.h" #endif -/*****************************************************************************/ +/****************************************************************************/ /** Convenience macro for printing master-specific information to syslog. * @@ -110,7 +110,7 @@ */ #define EC_EXT_RING_SIZE 32 -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT master phase. */ @@ -123,7 +123,7 @@ typedef enum { application. */ } ec_master_phase_t; -/*****************************************************************************/ +/****************************************************************************/ /** Cyclic statistics. */ @@ -135,7 +135,7 @@ typedef struct { unsigned long output_jiffies; /**< time of last output */ } ec_stats_t; -/*****************************************************************************/ +/****************************************************************************/ /** Device statistics. */ @@ -166,13 +166,13 @@ typedef struct { unsigned long jiffies; /**< Jiffies of last statistic cycle. */ } ec_device_stats_t; -/*****************************************************************************/ +/****************************************************************************/ #if EC_MAX_NUM_DEVICES < 1 #error Invalid number of devices #endif -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT master. * @@ -296,7 +296,7 @@ struct ec_master { from user space. */ }; -/*****************************************************************************/ +/****************************************************************************/ // static funtions void ec_master_init_static(void); @@ -372,6 +372,6 @@ void ec_master_internal_receive_cb(void *); extern const unsigned int rate_intervals[EC_RATE_COUNT]; // see master.c -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/module.c b/master/module.c index 06f052fa..407b7d92 100644 --- a/master/module.c +++ b/master/module.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT master driver module. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -35,25 +33,27 @@ #include "master.h" #include "device.h" -/*****************************************************************************/ +/****************************************************************************/ #define MAX_MASTERS 32 /**< Maximum number of masters. */ -/*****************************************************************************/ +/****************************************************************************/ int __init ec_init_module(void); void __exit ec_cleanup_module(void); static int ec_mac_parse(uint8_t *, const char *, int); -/*****************************************************************************/ +/****************************************************************************/ static char *main_devices[MAX_MASTERS]; /**< Main devices parameter. */ static unsigned int master_count; /**< Number of masters. */ static char *backup_devices[MAX_MASTERS]; /**< Backup devices parameter. */ static unsigned int backup_count; /**< Number of backup devices. */ static unsigned int debug_level; /**< Debug level parameter. */ -static unsigned int run_on_cpu = 0xffffffff; /**< Bind created kernel threads to a cpu. Default do not bind*/ +static unsigned int run_on_cpu = 0xffffffff; /**< Bind created kernel threads + to a cpu. Default do not bind. + */ static ec_master_t *masters; /**< Array of masters. */ static struct semaphore master_sem; /**< Master semaphore. */ @@ -65,11 +65,11 @@ static uint8_t macs[MAX_MASTERS][2][ETH_ALEN]; /**< MAC addresses. */ char *ec_master_version_str = EC_MASTER_VERSION; /**< Version string. */ -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT master driver module"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); @@ -85,7 +85,7 @@ MODULE_PARM_DESC(run_on_cpu, "Bind kthreads to a specific cpu"); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ /** Module initialization. * @@ -173,7 +173,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Module cleanup. * @@ -198,7 +198,7 @@ void __exit ec_cleanup_module(void) EC_INFO("Master module cleaned up.\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of masters. */ @@ -228,7 +228,7 @@ int ec_mac_equal( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Maximum MAC string size. */ @@ -256,7 +256,7 @@ ssize_t ec_mac_print( return off; } -/*****************************************************************************/ +/****************************************************************************/ /** * \return true, if the MAC address is all-zero. @@ -274,7 +274,7 @@ int ec_mac_is_zero( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** * \return true, if the given MAC address is the broadcast address. @@ -292,7 +292,7 @@ int ec_mac_is_broadcast( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Parse a MAC address from a string. * @@ -333,7 +333,7 @@ static int ec_mac_parse(uint8_t *mac, const char *src, int allow_empty) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs frame contents for debugging purposes. * If the data block is larger than 256 bytes, only the first 128 @@ -363,7 +363,7 @@ void ec_print_data(const uint8_t *data, /**< pointer to data */ printk(KERN_CONT "\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs frame contents and differences for debugging purposes. */ @@ -390,7 +390,7 @@ void ec_print_data_diff(const uint8_t *d1, /**< first data */ printk(KERN_CONT "\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Prints slave states in clear text. * @@ -454,9 +454,9 @@ size_t ec_state_string(uint8_t states, /**< slave states */ return off; } -/****************************************************************************** +/***************************************************************************** * Device interface - *****************************************************************************/ + ****************************************************************************/ /** Device names. */ @@ -522,9 +522,9 @@ ec_device_t *ecdev_offer( return NULL; // offer declined } -/****************************************************************************** +/***************************************************************************** * Application interface - *****************************************************************************/ + ****************************************************************************/ /** Request a master. * @@ -606,7 +606,7 @@ ec_master_t *ecrt_request_master_err( return errptr; } -/*****************************************************************************/ +/****************************************************************************/ ec_master_t *ecrt_request_master(unsigned int master_index) { @@ -614,7 +614,7 @@ ec_master_t *ecrt_request_master(unsigned int master_index) return IS_ERR(master) ? NULL : master; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_release_master(ec_master_t *master) { @@ -640,14 +640,14 @@ void ecrt_release_master(ec_master_t *master) EC_MASTER_INFO(master, "Released.\n"); } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ecrt_version_magic(void) { return ECRT_VERSION_MAGIC; } -/*****************************************************************************/ +/****************************************************************************/ /** Global request state type translation table. * @@ -661,7 +661,7 @@ const ec_request_state_t ec_request_state_translation_table[] = { EC_REQUEST_ERROR // EC_INT_REQUEST_FAILURE }; -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -676,4 +676,4 @@ EXPORT_SYMBOL(ecrt_version_magic); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/pdo.c b/master/pdo.c index a8db3bad..9c145939 100644 --- a/master/pdo.c +++ b/master/pdo.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,21 +17,21 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT process data object methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include #include "pdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** PDO constructor. */ @@ -46,7 +44,7 @@ void ec_pdo_init( INIT_LIST_HEAD(&pdo->entries); } -/*****************************************************************************/ +/****************************************************************************/ /** PDO copy constructor. * @@ -81,7 +79,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** PDO destructor. */ @@ -93,7 +91,7 @@ void ec_pdo_clear(ec_pdo_t *pdo /**< EtherCAT PDO. */) ec_pdo_clear_entries(pdo); } -/*****************************************************************************/ +/****************************************************************************/ /** Clear PDO entry list. */ @@ -109,7 +107,7 @@ void ec_pdo_clear_entries(ec_pdo_t *pdo /**< EtherCAT PDO. */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Set PDO name. * @@ -142,7 +140,7 @@ int ec_pdo_set_name( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Add a new PDO entry to the configuration. * @@ -170,7 +168,7 @@ ec_pdo_entry_t *ec_pdo_add_entry( return entry; } -/*****************************************************************************/ +/****************************************************************************/ /** Copy PDO entries from another PDO. * @@ -206,7 +204,7 @@ int ec_pdo_copy_entries( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Compares the entries of two PDOs. * @@ -242,7 +240,7 @@ int ec_pdo_equal_entries( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of PDO entries. * @@ -262,7 +260,7 @@ unsigned int ec_pdo_entry_count( return num; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a PDO entry via its position in the list. * @@ -286,7 +284,7 @@ const ec_pdo_entry_t *ec_pdo_find_entry_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs the PDOs in the list. */ @@ -308,4 +306,4 @@ void ec_pdo_print_entries( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/pdo.h b/master/pdo.h index 3481b17f..1819c836 100644 --- a/master/pdo.h +++ b/master/pdo.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT Process data object structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_PDO_H__ #define __EC_PDO_H__ @@ -36,7 +34,7 @@ #include "globals.h" #include "pdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ /** PDO description. */ @@ -48,7 +46,7 @@ typedef struct { struct list_head entries; /**< List of PDO entries. */ } ec_pdo_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_pdo_init(ec_pdo_t *); int ec_pdo_init_copy(ec_pdo_t *, const ec_pdo_t *); @@ -64,6 +62,6 @@ const ec_pdo_entry_t *ec_pdo_find_entry_by_pos_const( void ec_pdo_print_entries(const ec_pdo_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/pdo_entry.c b/master/pdo_entry.c index e659f489..836cb3df 100644 --- a/master/pdo_entry.c +++ b/master/pdo_entry.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,20 +17,20 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT process data object entry methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include "pdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ /** PDO entry constructor. */ @@ -43,7 +41,7 @@ void ec_pdo_entry_init( entry->name = NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** PDO entry copy constructor. * @@ -63,7 +61,7 @@ int ec_pdo_entry_init_copy( return ec_pdo_entry_set_name(entry, other->name); } -/*****************************************************************************/ +/****************************************************************************/ /** PDO entry destructor. */ @@ -73,7 +71,7 @@ void ec_pdo_entry_clear(ec_pdo_entry_t *entry /**< PDO entry. */) kfree(entry->name); } -/*****************************************************************************/ +/****************************************************************************/ /** Set PDO entry name. * @@ -106,7 +104,7 @@ int ec_pdo_entry_set_name( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Compares two PDO entries. * @@ -123,4 +121,4 @@ int ec_pdo_entry_equal( && entry1->bit_length == entry2->bit_length; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/pdo_entry.h b/master/pdo_entry.h index f385fd5a..96dc41eb 100644 --- a/master/pdo_entry.h +++ b/master/pdo_entry.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT Process data object structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_PDO_ENTRY_H__ #define __EC_PDO_ENTRY_H__ @@ -35,7 +33,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** PDO entry description. */ @@ -47,7 +45,7 @@ typedef struct { uint8_t bit_length; /**< entry length in bit */ } ec_pdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_pdo_entry_init(ec_pdo_entry_t *); int ec_pdo_entry_init_copy(ec_pdo_entry_t *, const ec_pdo_entry_t *); @@ -55,6 +53,6 @@ void ec_pdo_entry_clear(ec_pdo_entry_t *); int ec_pdo_entry_set_name(ec_pdo_entry_t *, const char *); int ec_pdo_entry_equal(const ec_pdo_entry_t *, const ec_pdo_entry_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/pdo_list.c b/master/pdo_list.c index 22fe2f85..f26b1c88 100644 --- a/master/pdo_list.c +++ b/master/pdo_list.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT PDO list methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include @@ -37,7 +35,7 @@ #include "pdo_list.h" -/*****************************************************************************/ +/****************************************************************************/ /** PDO list constructor. */ @@ -48,7 +46,7 @@ void ec_pdo_list_init( INIT_LIST_HEAD(&pl->list); } -/*****************************************************************************/ +/****************************************************************************/ /** PDO list destructor. */ @@ -57,7 +55,7 @@ void ec_pdo_list_clear(ec_pdo_list_t *pl /**< PDO list. */) ec_pdo_list_clear_pdos(pl); } -/*****************************************************************************/ +/****************************************************************************/ /** Clears the list of mapped PDOs. */ @@ -72,7 +70,7 @@ void ec_pdo_list_clear_pdos(ec_pdo_list_t *pl /**< PDO list. */) } } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the total size of the mapped PDO entries. * @@ -102,7 +100,7 @@ uint16_t ec_pdo_list_total_size( return byte_size; } -/*****************************************************************************/ +/****************************************************************************/ /** Add a new PDO to the list. * @@ -126,7 +124,7 @@ ec_pdo_t *ec_pdo_list_add_pdo( return pdo; } -/*****************************************************************************/ +/****************************************************************************/ /** Add the copy of an existing PDO to the list. * @@ -162,7 +160,7 @@ int ec_pdo_list_add_pdo_copy( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Makes a deep copy of another PDO list. * @@ -188,7 +186,7 @@ int ec_pdo_list_copy( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Compares two PDO lists. * @@ -228,7 +226,7 @@ int ec_pdo_list_equal( return 1; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a PDO with the given index. * @@ -250,7 +248,7 @@ ec_pdo_t *ec_pdo_list_find_pdo( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a PDO with the given index and returns a const pointer. * @@ -272,7 +270,7 @@ const ec_pdo_t *ec_pdo_list_find_pdo_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a PDO via its position in the list. * @@ -296,7 +294,7 @@ const ec_pdo_t *ec_pdo_list_find_pdo_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of PDOs in the list. * @@ -316,7 +314,7 @@ unsigned int ec_pdo_list_count( return num; } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs the PDOs in the list. */ @@ -337,4 +335,4 @@ void ec_pdo_list_print( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/pdo_list.h b/master/pdo_list.h index eaafe364..5bd9be7f 100644 --- a/master/pdo_list.h +++ b/master/pdo_list.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT PDO list structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_PDO_LIST_H__ #define __EC_PDO_LIST_H__ @@ -36,7 +34,7 @@ #include "globals.h" #include "pdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT PDO list. */ @@ -44,7 +42,7 @@ typedef struct { struct list_head list; /**< List of PDOs. */ } ec_pdo_list_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_pdo_list_init(ec_pdo_list_t *); void ec_pdo_list_clear(ec_pdo_list_t *); @@ -68,6 +66,6 @@ unsigned int ec_pdo_list_count(const ec_pdo_list_t *); void ec_pdo_list_print(const ec_pdo_list_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/reg_request.c b/master/reg_request.c index 75791cbc..627061be 100644 --- a/master/reg_request.c +++ b/master/reg_request.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * Register request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -33,7 +31,7 @@ #include "reg_request.h" -/*****************************************************************************/ +/****************************************************************************/ /** Register request constructor. * @@ -60,7 +58,7 @@ int ec_reg_request_init( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Register request destructor. */ @@ -82,14 +80,14 @@ uint8_t *ecrt_reg_request_data(ec_reg_request_t *reg) return reg->data; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_reg_request_state(const ec_reg_request_t *reg) { return ec_request_state_translation_table[reg->state]; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_reg_request_write(ec_reg_request_t *reg, uint16_t address, size_t size) @@ -100,7 +98,7 @@ void ecrt_reg_request_write(ec_reg_request_t *reg, uint16_t address, reg->state = EC_INT_REQUEST_QUEUED; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_reg_request_read(ec_reg_request_t *reg, uint16_t address, size_t size) @@ -111,7 +109,7 @@ void ecrt_reg_request_read(ec_reg_request_t *reg, uint16_t address, reg->state = EC_INT_REQUEST_QUEUED; } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -122,4 +120,4 @@ EXPORT_SYMBOL(ecrt_reg_request_read); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/reg_request.h b/master/reg_request.h index b50c25ec..86876b64 100644 --- a/master/reg_request.h +++ b/master/reg_request.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT register request structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_REG_REQUEST_H__ #define __EC_REG_REQUEST_H__ @@ -35,7 +33,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** Register request. */ @@ -51,11 +49,11 @@ struct ec_reg_request { uint16_t ring_position; /**< Ring position for emergency requests. */ }; -/*****************************************************************************/ +/****************************************************************************/ int ec_reg_request_init(ec_reg_request_t *, size_t); void ec_reg_request_clear(ec_reg_request_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/rt_locks.h b/master/rt_locks.h index 799cd58f..bfe59217 100644 --- a/master/rt_locks.h +++ b/master/rt_locks.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Abstract locks for realtime part of interface. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_LOCKS_H__ #define __EC_LOCKS_H__ @@ -36,7 +34,7 @@ #include -/*****************************************************************************/ +/****************************************************************************/ #ifdef EC_USE_RTMUTEX @@ -47,9 +45,13 @@ typedef struct rt_mutex ec_lock_t; static inline void ec_lock_init(ec_lock_t *sem) { rt_mutex_init(sem); } static inline void ec_lock_down(ec_lock_t *sem) { rt_mutex_lock(sem); } #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 34) -static inline int ec_lock_down_interruptible(ec_lock_t *sem) { return rt_mutex_lock_interruptible(sem); } +static inline int ec_lock_down_interruptible(ec_lock_t *sem) { + return rt_mutex_lock_interruptible(sem); +} #else -static inline int ec_lock_down_interruptible(ec_lock_t *sem) { return rt_mutex_lock_interruptible(sem, 1); } +static inline int ec_lock_down_interruptible(ec_lock_t *sem) { + return rt_mutex_lock_interruptible(sem, 1); +} #endif static inline void ec_lock_up(ec_lock_t *sem) { rt_mutex_unlock(sem); } @@ -59,13 +61,15 @@ typedef struct semaphore ec_lock_t; static inline void ec_lock_init(ec_lock_t *sem) { sema_init(sem, 1); } static inline void ec_lock_down(ec_lock_t *sem) { down(sem); } -static inline int ec_lock_down_interruptible(ec_lock_t *sem) { return down_interruptible(sem); } +static inline int ec_lock_down_interruptible(ec_lock_t *sem) { + return down_interruptible(sem); +} static inline void ec_lock_up(ec_lock_t *sem) { up(sem); } #endif -/*****************************************************************************/ +/****************************************************************************/ #endif -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/rtdm.c b/master/rtdm.c index 9059be9e..e28c26de 100644 --- a/master/rtdm.c +++ b/master/rtdm.c @@ -1,10 +1,8 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2009-2010 Moehwald GmbH B. Benner * 2011 IgH Andreas Stewering-Bone - * 2012 Florian Pose + * 2012 Florian Pose * * This file is part of the IgH EtherCAT master. * diff --git a/master/rtdm.h b/master/rtdm.h index b0229257..3c2fa138 100644 --- a/master/rtdm.h +++ b/master/rtdm.h @@ -1,8 +1,6 @@ /***************************************************************************** * - * $Id$ - * - * Copyright (C) 2012 Florian Pose + * Copyright (C) 2012 Florian Pose * * This file is part of the IgH EtherCAT master. * @@ -29,11 +27,11 @@ #include "../include/ecrt.h" /* ec_master_t */ -/*****************************************************************************/ +/****************************************************************************/ struct rtdm_device; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT RTDM device. */ @@ -42,7 +40,7 @@ typedef struct ec_rtdm_dev { struct rtdm_device *dev; /**< RTDM device. */ } ec_rtdm_dev_t; -/*****************************************************************************/ +/****************************************************************************/ int ec_rtdm_dev_init(ec_rtdm_dev_t *, ec_master_t *); void ec_rtdm_dev_clear(ec_rtdm_dev_t *); diff --git a/master/sdo.c b/master/sdo.c index 9ea66c23..3b8d3ac6 100644 --- a/master/sdo.c +++ b/master/sdo.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file CANopen SDO functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include @@ -34,7 +32,7 @@ #include "sdo.h" -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -52,7 +50,7 @@ void ec_sdo_init( INIT_LIST_HEAD(&sdo->entries); } -/*****************************************************************************/ +/****************************************************************************/ /** SDO destructor. * @@ -75,7 +73,7 @@ void ec_sdo_clear( kfree(sdo->name); } -/*****************************************************************************/ +/****************************************************************************/ /** Get an SDO entry from an SDO via its subindex. * @@ -98,7 +96,7 @@ ec_sdo_entry_t *ec_sdo_get_entry( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get an SDO entry from an SDO via its subindex. * @@ -123,4 +121,4 @@ const ec_sdo_entry_t *ec_sdo_get_entry_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/sdo.h b/master/sdo.h index 2d90a08e..5426bcaa 100644 --- a/master/sdo.h +++ b/master/sdo.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CANopen SDO structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SDO_H__ #define __EC_SDO_H__ @@ -36,7 +34,7 @@ #include "globals.h" #include "sdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ /** CANopen SDO. */ @@ -50,7 +48,7 @@ struct ec_sdo { struct list_head entries; /**< List of entries. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_init(ec_sdo_t *, ec_slave_t *, uint16_t); void ec_sdo_clear(ec_sdo_t *); @@ -58,6 +56,6 @@ void ec_sdo_clear(ec_sdo_t *); ec_sdo_entry_t *ec_sdo_get_entry(ec_sdo_t *, uint8_t); const ec_sdo_entry_t *ec_sdo_get_entry_const(const ec_sdo_t *, uint8_t); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/sdo_entry.c b/master/sdo_entry.c index 327d5d04..ae4b3661 100644 --- a/master/sdo_entry.c +++ b/master/sdo_entry.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,20 +17,20 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file CANopen over EtherCAT SDO entry functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include "sdo_entry.h" -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -55,7 +53,7 @@ void ec_sdo_entry_init( entry->description = NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -68,4 +66,4 @@ void ec_sdo_entry_clear( kfree(entry->description); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/sdo_entry.h b/master/sdo_entry.h index 6f5e0e7f..87c92bbd 100644 --- a/master/sdo_entry.h +++ b/master/sdo_entry.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CANopen SDO entry structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SDO_ENTRY_H__ #define __EC_SDO_ENTRY_H__ @@ -36,12 +34,12 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ struct ec_sdo; typedef struct ec_sdo ec_sdo_t; /**< \see ec_sdo. */ -/*****************************************************************************/ +/****************************************************************************/ /** CANopen SDO entry. */ @@ -56,11 +54,11 @@ typedef struct { char *description; /**< Description. */ } ec_sdo_entry_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_entry_init(ec_sdo_entry_t *, ec_sdo_t *, uint8_t); void ec_sdo_entry_clear(ec_sdo_entry_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/sdo_request.c b/master/sdo_request.c index 4876f37a..3a4c66c6 100644 --- a/master/sdo_request.c +++ b/master/sdo_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * Canopen over EtherCAT SDO request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -31,17 +31,17 @@ #include "sdo_request.h" -/*****************************************************************************/ +/****************************************************************************/ /** Default timeout in ms to wait for SDO transfer responses. */ #define EC_SDO_REQUEST_RESPONSE_TIMEOUT 1000 -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_request_clear_data(ec_sdo_request_t *); -/*****************************************************************************/ +/****************************************************************************/ /** SDO request constructor. */ @@ -63,7 +63,7 @@ void ec_sdo_request_init( req->abort_code = 0x00000000; } -/*****************************************************************************/ +/****************************************************************************/ /** SDO request destructor. */ @@ -74,7 +74,7 @@ void ec_sdo_request_clear( ec_sdo_request_clear_data(req); } -/*****************************************************************************/ +/****************************************************************************/ /** Copy another SDO request. * @@ -93,7 +93,7 @@ int ec_sdo_request_copy( return ec_sdo_request_copy_data(req, other->data, other->data_size); } -/*****************************************************************************/ +/****************************************************************************/ /** SDO request destructor. */ @@ -110,7 +110,7 @@ void ec_sdo_request_clear_data( req->data_size = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Pre-allocates the data memory. * @@ -138,7 +138,7 @@ int ec_sdo_request_alloc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Copies SDO data from an external source. * @@ -162,7 +162,7 @@ int ec_sdo_request_copy_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Checks, if the timeout was exceeded. * @@ -185,35 +185,35 @@ void ecrt_sdo_request_index(ec_sdo_request_t *req, uint16_t index, req->subindex = subindex; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_timeout(ec_sdo_request_t *req, uint32_t timeout) { req->issue_timeout = timeout; } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_sdo_request_data(ec_sdo_request_t *req) { return req->data; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_sdo_request_data_size(const ec_sdo_request_t *req) { return req->data_size; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_sdo_request_state(const ec_sdo_request_t *req) { return ec_request_state_translation_table[req->state]; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_read(ec_sdo_request_t *req) { @@ -224,7 +224,7 @@ void ecrt_sdo_request_read(ec_sdo_request_t *req) req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_sdo_request_write(ec_sdo_request_t *req) { @@ -235,7 +235,7 @@ void ecrt_sdo_request_write(ec_sdo_request_t *req) req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -249,4 +249,4 @@ EXPORT_SYMBOL(ecrt_sdo_request_write); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/sdo_request.h b/master/sdo_request.h index dd272ea3..aa2d1849 100644 --- a/master/sdo_request.h +++ b/master/sdo_request.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT CANopen SDO request structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SDO_REQUEST_H__ #define __EC_SDO_REQUEST_H__ @@ -33,7 +33,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** CANopen SDO request. */ @@ -60,7 +60,7 @@ struct ec_sdo_request { uint32_t abort_code; /**< SDO request abort code. Zero on success. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_sdo_request_init(ec_sdo_request_t *); void ec_sdo_request_clear(ec_sdo_request_t *); @@ -70,6 +70,6 @@ int ec_sdo_request_alloc(ec_sdo_request_t *, size_t); int ec_sdo_request_copy_data(ec_sdo_request_t *, const uint8_t *, size_t); int ec_sdo_request_timed_out(const ec_sdo_request_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/slave.c b/master/slave.c index 2f29f156..3773fe06 100644 --- a/master/slave.c +++ b/master/slave.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -38,15 +36,15 @@ #include "slave.h" -/*****************************************************************************/ +/****************************************************************************/ extern const ec_code_msg_t al_status_messages[]; -/*****************************************************************************/ +/****************************************************************************/ char *ec_slave_sii_string(ec_slave_t *, unsigned int); -/*****************************************************************************/ +/****************************************************************************/ /** Slave constructor. @@ -154,7 +152,7 @@ void ec_slave_init( ec_fsm_slave_init(&slave->fsm, slave); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave destructor. @@ -242,7 +240,7 @@ void ec_slave_clear(ec_slave_t *slave /**< EtherCAT slave */) ec_fsm_slave_clear(&slave->fsm); } -/*****************************************************************************/ +/****************************************************************************/ /** Clear the sync manager array. */ @@ -259,7 +257,7 @@ void ec_slave_clear_sync_managers(ec_slave_t *slave /**< EtherCAT slave. */) } } -/*****************************************************************************/ +/****************************************************************************/ /** * Sets the application state of a slave. @@ -281,7 +279,7 @@ void ec_slave_set_state(ec_slave_t *slave, /**< EtherCAT slave */ } } -/*****************************************************************************/ +/****************************************************************************/ /** * Request a slave state and resets the error flag. @@ -295,7 +293,7 @@ void ec_slave_request_state(ec_slave_t *slave, /**< EtherCAT slave */ slave->error_flag = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Fetches data from a STRING category. @@ -352,7 +350,7 @@ out_zero: return err; } -/*****************************************************************************/ +/****************************************************************************/ /** Fetches data from a GENERAL category. @@ -402,7 +400,7 @@ int ec_slave_fetch_sii_general( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Fetches data from a SYNC MANAGER category. * @@ -469,7 +467,7 @@ int ec_slave_fetch_sii_syncs( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Fetches data from a [RT]xPDO category. @@ -552,7 +550,7 @@ int ec_slave_fetch_sii_pdos( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Searches the string list for an index. @@ -575,7 +573,7 @@ char *ec_slave_sii_string( return slave->sii.strings[index]; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the sync manager given an index. * @@ -593,7 +591,7 @@ ec_sync_t *ec_slave_get_sync( } } -/*****************************************************************************/ +/****************************************************************************/ /** Counts the total number of SDOs and entries in the dictionary. @@ -620,7 +618,7 @@ void ec_slave_sdo_dict_info(const ec_slave_t *slave, /**< EtherCAT slave */ *entry_count = entries; } -/*****************************************************************************/ +/****************************************************************************/ /** * Get an SDO from the dictionary. @@ -643,7 +641,7 @@ ec_sdo_t *ec_slave_get_sdo( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** * Get an SDO from the dictionary. @@ -669,7 +667,7 @@ const ec_sdo_t *ec_slave_get_sdo_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get an SDO from the dictionary, given its position in the list. * \returns The desired SDO, or NULL. @@ -691,7 +689,7 @@ const ec_sdo_t *ec_slave_get_sdo_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of SDOs in the dictionary. * \returns SDO count. @@ -711,7 +709,7 @@ uint16_t ec_slave_sdo_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a mapped PDO. * \returns The desired PDO object, or NULL. @@ -737,7 +735,7 @@ const ec_pdo_t *ec_slave_find_pdo( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Find name for a PDO and its entries. */ @@ -768,7 +766,7 @@ void ec_slave_find_names_for_pdo( } } -/*****************************************************************************/ +/****************************************************************************/ /** Attach PDO names. */ @@ -788,7 +786,7 @@ void ec_slave_attach_pdo_names( } } -/*****************************************************************************/ +/****************************************************************************/ /** Returns the previous connected port of a given port. * @@ -818,7 +816,7 @@ unsigned int ec_slave_get_previous_port( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Returns the next connected port of a given port. * @@ -848,7 +846,7 @@ unsigned int ec_slave_get_next_port( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the sum of round-trip-times of connected ports 1-3. * @@ -874,7 +872,7 @@ uint32_t ec_slave_calc_rtt_sum( return rtt_sum; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds the next slave supporting DC delay measurement. * @@ -909,7 +907,7 @@ ec_slave_t *ec_slave_find_next_dc_slave( return dc_slave; } -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the port transmission delays. */ @@ -955,7 +953,7 @@ void ec_slave_calc_port_delays( } } -/*****************************************************************************/ +/****************************************************************************/ /** Recursively calculates transmission delays. */ @@ -991,4 +989,4 @@ void ec_slave_calc_transmission_delays_rec( *delay = *delay + slave->ports[0].delay_to_next_dc; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/slave.h b/master/slave.h index 4bf86d31..f367f844 100644 --- a/master/slave.h +++ b/master/slave.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SLAVE_H__ #define __EC_SLAVE_H__ @@ -41,7 +39,7 @@ #include "sdo.h" #include "fsm_slave.h" -/*****************************************************************************/ +/****************************************************************************/ /** Convenience macro for printing slave-specific information to syslog. * @@ -105,7 +103,7 @@ } \ } while (0) -/*****************************************************************************/ +/****************************************************************************/ /** Slave port. */ @@ -119,7 +117,7 @@ typedef struct { this port [ns]. */ } ec_slave_port_t; -/*****************************************************************************/ +/****************************************************************************/ /** Slave information interface data. */ @@ -163,7 +161,7 @@ typedef struct { struct list_head pdos; /**< SII [RT]XPDO categories. */ } ec_sii_t; -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT slave. */ @@ -228,7 +226,7 @@ struct ec_slave ec_fsm_slave_t fsm; /**< Slave state machine. */ }; -/*****************************************************************************/ +/****************************************************************************/ // slave construction/destruction void ec_slave_init(ec_slave_t *, ec_master_t *, ec_device_index_t, @@ -262,6 +260,6 @@ void ec_slave_attach_pdo_names(ec_slave_t *); void ec_slave_calc_port_delays(ec_slave_t *); void ec_slave_calc_transmission_delays_rec(ec_slave_t *, uint32_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/slave_config.c b/master/slave_config.c index 03d1e077..b68cfd14 100644 --- a/master/slave_config.c +++ b/master/slave_config.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +19,14 @@ * * vim: expandtab * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave configuration methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -38,7 +38,7 @@ #include "slave_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration constructor. * @@ -88,7 +88,7 @@ void ec_slave_config_init( ec_coe_emerg_ring_init(&sc->emerg_ring, sc); } -/*****************************************************************************/ +/****************************************************************************/ /** Slave configuration destructor. * @@ -163,7 +163,7 @@ void ec_slave_config_clear( ec_coe_emerg_ring_clear(&sc->emerg_ring); } -/*****************************************************************************/ +/****************************************************************************/ /** Prepares an FMMU configuration. * @@ -208,7 +208,7 @@ int ec_slave_config_prepare_fmmu( return fmmu->logical_start_address; } -/*****************************************************************************/ +/****************************************************************************/ /** Attaches the configuration to the addressed slave object. * @@ -269,7 +269,7 @@ int ec_slave_config_attach( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Detaches the configuration from a slave object. */ @@ -294,7 +294,7 @@ void ec_slave_config_detach( } } -/*****************************************************************************/ +/****************************************************************************/ /** Loads the default PDO assignment from the slave object. */ @@ -319,7 +319,7 @@ void ec_slave_config_load_default_sync_config(ec_slave_config_t *sc) } } -/*****************************************************************************/ +/****************************************************************************/ /** Loads the default mapping for a PDO from the slave object. */ @@ -373,7 +373,7 @@ void ec_slave_config_load_default_mapping( EC_CONFIG_DBG(sc, 1, "No default mapping found.\n"); } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of SDO configurations. * @@ -393,7 +393,7 @@ unsigned int ec_slave_config_sdo_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds an SDO configuration via its position in the list. * @@ -417,7 +417,7 @@ const ec_sdo_request_t *ec_slave_config_get_sdo_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of IDN configurations. * @@ -437,7 +437,7 @@ unsigned int ec_slave_config_idn_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds an IDN configuration via its position in the list. * @@ -461,7 +461,7 @@ const ec_soe_request_t *ec_slave_config_get_idn_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Get the number of feature flags. * @@ -481,7 +481,7 @@ unsigned int ec_slave_config_flag_count( return count; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a flag via its position in the list. * @@ -505,7 +505,7 @@ const ec_flag_t *ec_slave_config_get_flag_by_pos_const( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a CoE SDO request via its position in the list. * @@ -527,7 +527,7 @@ ec_sdo_request_t *ec_slave_config_find_sdo_request( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a SoE request via its position in the list. * @@ -549,7 +549,7 @@ ec_soe_request_t *ec_slave_config_find_soe_request( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a register handler via its position in the list. * @@ -571,7 +571,7 @@ ec_reg_request_t *ec_slave_config_find_reg_request( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a VoE handler via its position in the list. * @@ -593,7 +593,7 @@ ec_voe_handler_t *ec_slave_config_find_voe_handler( return NULL; } -/*****************************************************************************/ +/****************************************************************************/ /** Finds a flag. * @@ -616,9 +616,9 @@ ec_flag_t *ec_slave_config_find_flag( return NULL; } -/****************************************************************************** +/***************************************************************************** * Application interface - *****************************************************************************/ + ****************************************************************************/ int ecrt_slave_config_sync_manager(ec_slave_config_t *sc, uint8_t sync_index, ec_direction_t dir, ec_watchdog_mode_t watchdog_mode) @@ -645,7 +645,7 @@ int ecrt_slave_config_sync_manager(ec_slave_config_t *sc, uint8_t sync_index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_watchdog(ec_slave_config_t *sc, uint16_t divider, uint16_t intervals) @@ -657,7 +657,7 @@ void ecrt_slave_config_watchdog(ec_slave_config_t *sc, sc->watchdog_intervals = intervals; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdo_assign_add(ec_slave_config_t *sc, uint8_t sync_index, uint16_t pdo_index) @@ -687,7 +687,7 @@ int ecrt_slave_config_pdo_assign_add(ec_slave_config_t *sc, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_pdo_assign_clear(ec_slave_config_t *sc, uint8_t sync_index) @@ -705,7 +705,7 @@ void ecrt_slave_config_pdo_assign_clear(ec_slave_config_t *sc, up(&sc->master->master_sem); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdo_mapping_add(ec_slave_config_t *sc, uint16_t pdo_index, uint16_t entry_index, uint8_t entry_subindex, @@ -742,7 +742,7 @@ int ecrt_slave_config_pdo_mapping_add(ec_slave_config_t *sc, return retval; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_pdo_mapping_clear(ec_slave_config_t *sc, uint16_t pdo_index) @@ -767,7 +767,7 @@ void ecrt_slave_config_pdo_mapping_clear(ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_pdos(ec_slave_config_t *sc, unsigned int n_syncs, const ec_sync_info_t syncs[]) @@ -834,7 +834,7 @@ int ecrt_slave_config_pdos(ec_slave_config_t *sc, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_reg_pdo_entry( ec_slave_config_t *sc, @@ -889,7 +889,7 @@ int ecrt_slave_config_reg_pdo_entry( return -ENOENT; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_reg_pdo_entry_pos( ec_slave_config_t *sc, @@ -954,7 +954,7 @@ int ecrt_slave_config_reg_pdo_entry_pos( return -ENOENT; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_dc(ec_slave_config_t *sc, uint16_t assign_activate, uint32_t sync0_cycle_time, int32_t sync0_shift_time, @@ -973,7 +973,7 @@ void ecrt_slave_config_dc(ec_slave_config_t *sc, uint16_t assign_activate, sc->dc_sync[1].shift_time = sync1_shift_time; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, const uint8_t *data, size_t size) @@ -1013,7 +1013,7 @@ int ecrt_slave_config_sdo(ec_slave_config_t *sc, uint16_t index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo8(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint8_t value) @@ -1028,7 +1028,7 @@ int ecrt_slave_config_sdo8(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 1); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo16(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint16_t value) @@ -1043,7 +1043,7 @@ int ecrt_slave_config_sdo16(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 2); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_sdo32(ec_slave_config_t *sc, uint16_t index, uint8_t subindex, uint32_t value) @@ -1058,7 +1058,7 @@ int ecrt_slave_config_sdo32(ec_slave_config_t *sc, uint16_t index, return ecrt_slave_config_sdo(sc, index, subindex, data, 4); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_complete_sdo(ec_slave_config_t *sc, uint16_t index, const uint8_t *data, size_t size) @@ -1098,35 +1098,35 @@ int ecrt_slave_config_complete_sdo(ec_slave_config_t *sc, uint16_t index, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_size(ec_slave_config_t *sc, size_t elements) { return ec_coe_emerg_ring_size(&sc->emerg_ring, elements); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_pop(ec_slave_config_t *sc, uint8_t *target) { return ec_coe_emerg_ring_pop(&sc->emerg_ring, target); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_clear(ec_slave_config_t *sc) { return ec_coe_emerg_ring_clear_ring(&sc->emerg_ring); } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_emerg_overruns(ec_slave_config_t *sc) { return ec_coe_emerg_ring_overruns(&sc->emerg_ring); } -/*****************************************************************************/ +/****************************************************************************/ /** Same as ecrt_slave_config_create_sdo_request(), but with ERR_PTR() return * value. @@ -1168,7 +1168,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request_err( return req; } -/*****************************************************************************/ +/****************************************************************************/ ec_sdo_request_t *ecrt_slave_config_create_sdo_request( ec_slave_config_t *sc, uint16_t index, uint8_t subindex, size_t size) @@ -1178,7 +1178,7 @@ ec_sdo_request_t *ecrt_slave_config_create_sdo_request( return IS_ERR(s) ? NULL : s; } -/*****************************************************************************/ +/****************************************************************************/ /** Same as ecrt_slave_config_create_soe_request(), but with ERR_PTR() return * value. @@ -1220,7 +1220,7 @@ ec_soe_request_t *ecrt_slave_config_create_soe_request_err( return req; } -/*****************************************************************************/ +/****************************************************************************/ ec_soe_request_t *ecrt_slave_config_create_soe_request( ec_slave_config_t *sc, uint8_t drive_no, uint16_t idn, size_t size) @@ -1230,7 +1230,7 @@ ec_soe_request_t *ecrt_slave_config_create_soe_request( return IS_ERR(req) ? NULL : req; } -/*****************************************************************************/ +/****************************************************************************/ /** Same as ecrt_slave_config_create_reg_request(), but with ERR_PTR() return * value. @@ -1263,7 +1263,7 @@ ec_reg_request_t *ecrt_slave_config_create_reg_request_err( return reg; } -/*****************************************************************************/ +/****************************************************************************/ ec_reg_request_t *ecrt_slave_config_create_reg_request( ec_slave_config_t *sc, size_t size) @@ -1273,7 +1273,7 @@ ec_reg_request_t *ecrt_slave_config_create_reg_request( return IS_ERR(reg) ? NULL : reg; } -/*****************************************************************************/ +/****************************************************************************/ /** Same as ecrt_slave_config_create_voe_handler(), but with ERR_PTR() return * value. @@ -1305,7 +1305,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler_err( return voe; } -/*****************************************************************************/ +/****************************************************************************/ ec_voe_handler_t *ecrt_slave_config_create_voe_handler( ec_slave_config_t *sc, size_t size) @@ -1315,7 +1315,7 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler( return IS_ERR(voe) ? NULL : voe; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_slave_config_state(const ec_slave_config_t *sc, ec_slave_config_state_t *state) @@ -1332,7 +1332,7 @@ void ecrt_slave_config_state(const ec_slave_config_t *sc, } } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_idn(ec_slave_config_t *sc, uint8_t drive_no, uint16_t idn, ec_al_state_t state, const uint8_t *data, @@ -1387,7 +1387,7 @@ int ecrt_slave_config_idn(ec_slave_config_t *sc, uint8_t drive_no, return 0; } -/*****************************************************************************/ +/****************************************************************************/ int ecrt_slave_config_flag(ec_slave_config_t *sc, const char *key, int32_t value) @@ -1423,7 +1423,7 @@ int ecrt_slave_config_flag(ec_slave_config_t *sc, const char *key, return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -1456,4 +1456,4 @@ EXPORT_SYMBOL(ecrt_slave_config_flag); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/slave_config.h b/master/slave_config.h index 5eedbcf6..3ddd8dd8 100644 --- a/master/slave_config.h +++ b/master/slave_config.h @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT slave configuration structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SLAVE_CONFIG_H__ #define __EC_SLAVE_CONFIG_H__ @@ -38,7 +38,7 @@ #include "coe_emerg_ring.h" #include "flag.h" -/*****************************************************************************/ +/****************************************************************************/ /** Convenience macro for printing configuration-specific information to * syslog. @@ -104,7 +104,7 @@ } \ } while (0) -/*****************************************************************************/ +/****************************************************************************/ /** EtherCAT slave configuration. */ @@ -144,7 +144,7 @@ struct ec_slave_config { ec_coe_emerg_ring_t emerg_ring; /**< CoE emergency ring buffer. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_slave_config_init(ec_slave_config_t *, ec_master_t *, uint16_t, uint16_t, uint32_t, uint32_t); @@ -183,6 +183,6 @@ ec_voe_handler_t *ecrt_slave_config_create_voe_handler_err( ec_reg_request_t *ecrt_slave_config_create_reg_request_err( ec_slave_config_t *, size_t); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/soe_errors.c b/master/soe_errors.c index b9d6917d..937803b2 100644 --- a/master/soe_errors.c +++ b/master/soe_errors.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,18 +17,18 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT SoE errors. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** SoE error codes. */ @@ -87,4 +85,4 @@ const ec_code_msg_t soe_error_codes[] = { {} }; -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/soe_request.c b/master/soe_request.c index 3fc1609f..7acd50bf 100644 --- a/master/soe_request.c +++ b/master/soe_request.c @@ -1,4 +1,4 @@ -/****************************************************************************** +/***************************************************************************** * * Copyright (C) 2006-2023 Florian Pose, Ingenieurgemeinschaft IgH * @@ -17,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * Sercos-over-EtherCAT request functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -31,17 +31,17 @@ #include "soe_request.h" -/*****************************************************************************/ +/****************************************************************************/ /** Default timeout in ms to wait for SoE responses. */ #define EC_SOE_REQUEST_RESPONSE_TIMEOUT 1000 -/*****************************************************************************/ +/****************************************************************************/ void ec_soe_request_clear_data(ec_soe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ /** SoE request constructor. */ @@ -64,7 +64,7 @@ void ec_soe_request_init( req->error_code = 0x0000; } -/*****************************************************************************/ +/****************************************************************************/ /** SoE request destructor. */ @@ -75,7 +75,7 @@ void ec_soe_request_clear( ec_soe_request_clear_data(req); } -/*****************************************************************************/ +/****************************************************************************/ /** Copy another SoE request. * @@ -92,7 +92,7 @@ int ec_soe_request_copy( return ec_soe_request_copy_data(req, other->data, other->data_size); } -/*****************************************************************************/ +/****************************************************************************/ /** Set drive number. */ @@ -104,7 +104,7 @@ void ec_soe_request_set_drive_no( req->drive_no = drive_no; } -/*****************************************************************************/ +/****************************************************************************/ /** Set IDN. */ @@ -116,7 +116,7 @@ void ec_soe_request_set_idn( req->idn = idn; } -/*****************************************************************************/ +/****************************************************************************/ /** Free allocated memory. */ @@ -133,7 +133,7 @@ void ec_soe_request_clear_data( req->data_size = 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Pre-allocates the data memory. * @@ -161,7 +161,7 @@ int ec_soe_request_alloc( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Copies SoE data from an external source. * @@ -185,7 +185,7 @@ int ec_soe_request_copy_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Copies SoE data from an external source. * @@ -219,7 +219,7 @@ int ec_soe_request_append_data( return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Request a read operation. */ @@ -233,7 +233,7 @@ void ec_soe_request_read( req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ /** Request a write operation. */ @@ -247,7 +247,7 @@ void ec_soe_request_write( req->jiffies_start = jiffies; } -/*****************************************************************************/ +/****************************************************************************/ /** Checks, if the timeout was exceeded. * @@ -270,49 +270,49 @@ void ecrt_soe_request_idn(ec_soe_request_t *req, uint8_t drive_no, req->idn = idn; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_timeout(ec_soe_request_t *req, uint32_t timeout) { req->issue_timeout = timeout; } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_soe_request_data(ec_soe_request_t *req) { return req->data; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_soe_request_data_size(const ec_soe_request_t *req) { return req->data_size; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_soe_request_state(ec_soe_request_t *req) { return ec_request_state_translation_table[req->state]; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_read(ec_soe_request_t *req) { ec_soe_request_read(req); } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_soe_request_write(ec_soe_request_t *req) { ec_soe_request_write(req); } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -326,4 +326,4 @@ EXPORT_SYMBOL(ecrt_soe_request_write); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/soe_request.h b/master/soe_request.h index 43b056b7..67422ff7 100644 --- a/master/soe_request.h +++ b/master/soe_request.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file EtherCAT SoE request structure. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SOE_REQUEST_H__ #define __EC_SOE_REQUEST_H__ @@ -35,7 +33,7 @@ #include "globals.h" -/*****************************************************************************/ +/****************************************************************************/ /** Sercos-over-EtherCAT request. */ @@ -58,7 +56,7 @@ struct ec_soe_request { uint16_t error_code; /**< SoE error code. */ }; -/*****************************************************************************/ +/****************************************************************************/ void ec_soe_request_init(ec_soe_request_t *); void ec_soe_request_clear(ec_soe_request_t *); @@ -73,6 +71,6 @@ void ec_soe_request_read(ec_soe_request_t *); void ec_soe_request_write(ec_soe_request_t *); int ec_soe_request_timed_out(const ec_soe_request_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/sync.c b/master/sync.c index b2a22216..bcfe63fc 100644 --- a/master/sync.c +++ b/master/sync.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT sync manager methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "slave.h" @@ -33,7 +31,7 @@ #include "pdo.h" #include "sync.h" -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -50,7 +48,7 @@ void ec_sync_init( ec_pdo_list_init(&sync->pdos); } -/*****************************************************************************/ +/****************************************************************************/ /** Copy constructor. */ @@ -68,7 +66,7 @@ void ec_sync_init_copy( ec_pdo_list_copy(&sync->pdos, &other->pdos); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -79,7 +77,7 @@ void ec_sync_clear( ec_pdo_list_clear(&sync->pdos); } -/*****************************************************************************/ +/****************************************************************************/ /** Initializes a sync manager configuration page. * @@ -138,7 +136,7 @@ void ec_sync_page( EC_WRITE_U16(data + 6, enable); } -/*****************************************************************************/ +/****************************************************************************/ /** Adds a PDO to the list of known mapped PDOs. * @@ -152,7 +150,7 @@ int ec_sync_add_pdo( return ec_pdo_list_add_pdo_copy(&sync->pdos, pdo); } -/*****************************************************************************/ +/****************************************************************************/ /** Determines the default direction from the control register. * @@ -169,4 +167,4 @@ ec_direction_t ec_sync_default_direction( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/sync.h b/master/sync.h index 4a4fe5b0..9d0ddced 100644 --- a/master/sync.h +++ b/master/sync.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT sync manager. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SYNC_H__ #define __EC_SYNC_H__ @@ -34,7 +32,7 @@ #include "pdo_list.h" #include "sync_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** Sync manager. */ @@ -47,7 +45,7 @@ typedef struct { ec_pdo_list_t pdos; /**< Current PDO assignment. */ } ec_sync_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_sync_init(ec_sync_t *, ec_slave_t *); void ec_sync_init_copy(ec_sync_t *, const ec_sync_t *); @@ -57,6 +55,6 @@ void ec_sync_page(const ec_sync_t *, uint8_t, uint16_t, int ec_sync_add_pdo(ec_sync_t *, const ec_pdo_t *); ec_direction_t ec_sync_default_direction(const ec_sync_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/sync_config.c b/master/sync_config.c index 50dcdd76..d2d87a74 100644 --- a/master/sync_config.c +++ b/master/sync_config.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,18 +17,18 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT sync manager configuration methods. */ -/*****************************************************************************/ +/****************************************************************************/ #include "globals.h" #include "sync_config.h" -/*****************************************************************************/ +/****************************************************************************/ /** Constructor. */ @@ -43,7 +41,7 @@ void ec_sync_config_init( ec_pdo_list_init(&sync_config->pdos); } -/*****************************************************************************/ +/****************************************************************************/ /** Destructor. */ @@ -54,4 +52,4 @@ void ec_sync_config_clear( ec_pdo_list_clear(&sync_config->pdos); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/sync_config.h b/master/sync_config.h index 68468c65..ca31aa72 100644 --- a/master/sync_config.h +++ b/master/sync_config.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT sync manager. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_SYNC_CONFIG_H__ #define __EC_SYNC_CONFIG_H__ @@ -33,7 +31,7 @@ #include "globals.h" #include "pdo_list.h" -/*****************************************************************************/ +/****************************************************************************/ /** Sync manager configuration. */ @@ -43,11 +41,11 @@ typedef struct { ec_pdo_list_t pdos; /**< Current PDO assignment. */ } ec_sync_config_t; -/*****************************************************************************/ +/****************************************************************************/ void ec_sync_config_init(ec_sync_config_t *); void ec_sync_config_clear(ec_sync_config_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/master/voe_handler.c b/master/voe_handler.c index 9ab79b94..68df5397 100644 --- a/master/voe_handler.c +++ b/master/voe_handler.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * Vendor specific over EtherCAT protocol handler functions. */ -/*****************************************************************************/ +/****************************************************************************/ #include @@ -42,7 +40,7 @@ */ #define EC_VOE_RESPONSE_TIMEOUT 500 -/*****************************************************************************/ +/****************************************************************************/ void ec_voe_handler_state_write_start(ec_voe_handler_t *); void ec_voe_handler_state_write_response(ec_voe_handler_t *); @@ -57,7 +55,7 @@ void ec_voe_handler_state_read_nosync_response(ec_voe_handler_t *); void ec_voe_handler_state_end(ec_voe_handler_t *); void ec_voe_handler_state_error(ec_voe_handler_t *); -/*****************************************************************************/ +/****************************************************************************/ /** VoE handler constructor. * @@ -82,7 +80,7 @@ int ec_voe_handler_init( size + EC_MBOX_HEADER_SIZE + EC_VOE_HEADER_SIZE); } -/*****************************************************************************/ +/****************************************************************************/ /** VoE handler destructor. */ @@ -93,7 +91,7 @@ void ec_voe_handler_clear( ec_datagram_clear(&voe->datagram); } -/*****************************************************************************/ +/****************************************************************************/ /** Get usable memory size. * @@ -121,7 +119,7 @@ void ecrt_voe_handler_send_header(ec_voe_handler_t *voe, uint32_t vendor_id, voe->vendor_type = vendor_type; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_received_header(const ec_voe_handler_t *voe, uint32_t *vendor_id, uint16_t *vendor_type) @@ -134,21 +132,21 @@ void ecrt_voe_handler_received_header(const ec_voe_handler_t *voe, *vendor_type = EC_READ_U16(header + 4); } -/*****************************************************************************/ +/****************************************************************************/ uint8_t *ecrt_voe_handler_data(ec_voe_handler_t *voe) { return voe->datagram.data + EC_MBOX_HEADER_SIZE + EC_VOE_HEADER_SIZE; } -/*****************************************************************************/ +/****************************************************************************/ size_t ecrt_voe_handler_data_size(const ec_voe_handler_t *voe) { return voe->data_size; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_read(ec_voe_handler_t *voe) { @@ -157,7 +155,7 @@ void ecrt_voe_handler_read(ec_voe_handler_t *voe) voe->request_state = EC_INT_REQUEST_BUSY; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_read_nosync(ec_voe_handler_t *voe) { @@ -166,7 +164,7 @@ void ecrt_voe_handler_read_nosync(ec_voe_handler_t *voe) voe->request_state = EC_INT_REQUEST_BUSY; } -/*****************************************************************************/ +/****************************************************************************/ void ecrt_voe_handler_write(ec_voe_handler_t *voe, size_t size) { @@ -176,7 +174,7 @@ void ecrt_voe_handler_write(ec_voe_handler_t *voe, size_t size) voe->request_state = EC_INT_REQUEST_BUSY; } -/*****************************************************************************/ +/****************************************************************************/ ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe) { @@ -193,9 +191,9 @@ ec_request_state_t ecrt_voe_handler_execute(ec_voe_handler_t *voe) return ec_request_state_translation_table[voe->request_state]; } -/****************************************************************************** +/***************************************************************************** * State functions. - *****************************************************************************/ + ****************************************************************************/ /** Start writing VoE data. */ @@ -234,7 +232,7 @@ void ec_voe_handler_state_write_start(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_write_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Wait for the mailbox response. */ @@ -279,7 +277,7 @@ void ec_voe_handler_state_write_response(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_end; } -/*****************************************************************************/ +/****************************************************************************/ /** Start reading VoE data. */ @@ -304,7 +302,7 @@ void ec_voe_handler_state_read_start(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_read_check; } -/*****************************************************************************/ +/****************************************************************************/ /** Check for new data in the mailbox. */ @@ -354,7 +352,7 @@ void ec_voe_handler_state_read_check(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_read_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Read the pending mailbox data. */ @@ -419,7 +417,7 @@ void ec_voe_handler_state_read_response(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_end; // success } -/*****************************************************************************/ +/****************************************************************************/ /** Start reading VoE data without sending a sync message before. */ @@ -444,7 +442,7 @@ void ec_voe_handler_state_read_nosync_start(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_read_nosync_response; } -/*****************************************************************************/ +/****************************************************************************/ /** Read the pending mailbox data without sending a sync message before. This * might lead to an empty reponse from the client. @@ -517,7 +515,7 @@ void ec_voe_handler_state_read_nosync_response(ec_voe_handler_t *voe) voe->state = ec_voe_handler_state_end; // success } -/*****************************************************************************/ +/****************************************************************************/ /** Successful termination state function. */ @@ -525,7 +523,7 @@ void ec_voe_handler_state_end(ec_voe_handler_t *voe) { } -/*****************************************************************************/ +/****************************************************************************/ /** Failure termination state function. */ @@ -533,7 +531,7 @@ void ec_voe_handler_state_error(ec_voe_handler_t *voe) { } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -547,4 +545,4 @@ EXPORT_SYMBOL(ecrt_voe_handler_execute); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/ diff --git a/master/voe_handler.h b/master/voe_handler.h index 495af35a..8e85372c 100644 --- a/master/voe_handler.h +++ b/master/voe_handler.h @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,14 +17,14 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file Vendor specific over EtherCAT protocol handler. */ -/*****************************************************************************/ +/****************************************************************************/ #ifndef __EC_VOE_HANDLER_H__ #define __EC_VOE_HANDLER_H__ @@ -36,7 +34,7 @@ #include "globals.h" #include "datagram.h" -/*****************************************************************************/ +/****************************************************************************/ /** Vendor specific over EtherCAT handler. */ @@ -56,12 +54,12 @@ struct ec_voe_handler { unsigned long jiffies_start; /**< Timestamp for timeout calculation. */ }; -/*****************************************************************************/ +/****************************************************************************/ int ec_voe_handler_init(ec_voe_handler_t *, ec_slave_config_t *, size_t); void ec_voe_handler_clear(ec_voe_handler_t *); size_t ec_voe_handler_mem_size(const ec_voe_handler_t *); -/*****************************************************************************/ +/****************************************************************************/ #endif diff --git a/script/ethercat.conf b/script/ethercat.conf index 0be604af..40da8d30 100644 --- a/script/ethercat.conf +++ b/script/ethercat.conf @@ -2,8 +2,6 @@ # # EtherCAT master configuration file for use with ethercatctl. # -# $Id$ -# # vim: spelllang=en spell tw=78 # #------------------------------------------------------------------------------ diff --git a/script/ifup-eoe.sh b/script/ifup-eoe.sh index d350dffe..15ed8663 100755 --- a/script/ifup-eoe.sh +++ b/script/ifup-eoe.sh @@ -2,8 +2,6 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/script/init.d/Makefile.am b/script/init.d/Makefile.am index 89a6cc5e..1ee86ecb 100644 --- a/script/init.d/Makefile.am +++ b/script/init.d/Makefile.am @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/script/init.d/ethercat.in b/script/init.d/ethercat.in index 428b7221..6eac1bec 100755 --- a/script/init.d/ethercat.in +++ b/script/init.d/ethercat.in @@ -4,8 +4,6 @@ # # Init script for EtherCAT # -# $Id$ -# # Copyright (C) 2006-2021 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/script/sysconfig/Makefile.am b/script/sysconfig/Makefile.am index 4aab9f02..2273c32b 100644 --- a/script/sysconfig/Makefile.am +++ b/script/sysconfig/Makefile.am @@ -1,7 +1,5 @@ #------------------------------------------------------------------------------ # -# $Id$ -# # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # # This file is part of the IgH EtherCAT Master. diff --git a/script/sysconfig/ethercat b/script/sysconfig/ethercat index bf326d7c..f8b2388b 100644 --- a/script/sysconfig/ethercat +++ b/script/sysconfig/ethercat @@ -2,8 +2,6 @@ # # EtherCAT master sysconfig file # -# $Id$ -# # vim: spelllang=en spell tw=78 # #------------------------------------------------------------------------------ diff --git a/tool/Command.cpp b/tool/Command.cpp index af397604..4f539ab6 100644 --- a/tool/Command.cpp +++ b/tool/Command.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,12 +28,12 @@ using namespace std; #include "MasterDevice.h" #include "NumberListParser.h" -/*****************************************************************************/ +/****************************************************************************/ typedef map AliasMap; typedef map ConfigMap; -/*****************************************************************************/ +/****************************************************************************/ class MasterIndexParser: public NumberListParser @@ -49,7 +47,7 @@ class MasterIndexParser: }; }; -/*****************************************************************************/ +/****************************************************************************/ class SlaveAliasParser: public NumberListParser @@ -78,7 +76,7 @@ class SlaveAliasParser: MasterDevice &dev; }; -/*****************************************************************************/ +/****************************************************************************/ class ConfigAliasParser: public NumberListParser @@ -94,7 +92,7 @@ class ConfigAliasParser: unsigned int maxAlias; }; -/*****************************************************************************/ +/****************************************************************************/ class PositionParser: public NumberListParser @@ -112,7 +110,7 @@ class PositionParser: const unsigned int count; }; -/*****************************************************************************/ +/****************************************************************************/ class AliasPositionParser: public NumberListParser @@ -139,7 +137,7 @@ class AliasPositionParser: const AliasMap &aliasMap; }; -/*****************************************************************************/ +/****************************************************************************/ Command::Command(const string &name, const string &briefDesc): name(name), @@ -150,76 +148,76 @@ Command::Command(const string &name, const string &briefDesc): { } -/*****************************************************************************/ +/****************************************************************************/ Command::~Command() { } -/*****************************************************************************/ +/****************************************************************************/ void Command::setMasters(const string &m) { masters = m; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setVerbosity(Verbosity v) { verbosity = v; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setAliases(const string &a) { aliases = a; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setPositions(const string &p) { positions = p; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setDomains(const string &d) { domains = d; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setDataType(const string &t) { dataType = t; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setEmergency(bool e) { emergency = e; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setForce(bool f) { force = f; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setOutputFile(const string &f) { outputFile = f; }; -/*****************************************************************************/ +/****************************************************************************/ void Command::setSkin(const string &s) { @@ -249,7 +247,7 @@ bool Command::matchesAbbrev(const string &abb) const return true; } -/*****************************************************************************/ +/****************************************************************************/ string Command::numericInfo() { @@ -262,28 +260,28 @@ string Command::numericInfo() return str.str(); } -/*****************************************************************************/ +/****************************************************************************/ void Command::throwInvalidUsageException(const stringstream &s) const { throw InvalidUsageException(s); } -/*****************************************************************************/ +/****************************************************************************/ void Command::throwCommandException(const string &msg) const { throw CommandException(msg); } -/*****************************************************************************/ +/****************************************************************************/ void Command::throwCommandException(const stringstream &s) const { throw CommandException(s); } -/*****************************************************************************/ +/****************************************************************************/ void Command::throwSingleSlaveRequired(unsigned int size) const { @@ -295,7 +293,7 @@ void Command::throwSingleSlaveRequired(unsigned int size) const throwInvalidUsageException(err); } -/*****************************************************************************/ +/****************************************************************************/ Command::MasterIndexList Command::getMasterIndices() const { @@ -317,7 +315,7 @@ Command::MasterIndexList Command::getMasterIndices() const return indices; } -/*****************************************************************************/ +/****************************************************************************/ unsigned int Command::getSingleMasterIndex() const { @@ -332,7 +330,7 @@ unsigned int Command::getSingleMasterIndex() const return masterIndices.front(); } -/*****************************************************************************/ +/****************************************************************************/ Command::SlaveList Command::selectedSlaves(MasterDevice &m) { @@ -395,7 +393,7 @@ Command::SlaveList Command::selectedSlaves(MasterDevice &m) return list; } -/*****************************************************************************/ +/****************************************************************************/ bool operator<( const ec_ioctl_config_t &a, @@ -406,7 +404,7 @@ bool operator<( || (a.alias == b.alias && a.position < b.position); } -/*****************************************************************************/ +/****************************************************************************/ Command::ConfigList Command::selectedConfigs(MasterDevice &m) { diff --git a/tool/Command.h b/tool/Command.h index 724044f7..5fe878bb 100644 --- a/tool/Command.h +++ b/tool/Command.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandAlias.cpp b/tool/CommandAlias.cpp index 2b85d061..d3282e91 100644 --- a/tool/CommandAlias.cpp +++ b/tool/CommandAlias.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "sii_crc.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandAlias::CommandAlias(): Command("alias", "Write alias addresses.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandAlias::helpString(const string &binaryBaseName) const { @@ -66,7 +64,7 @@ string CommandAlias::helpString(const string &binaryBaseName) const return str.str(); } -/*****************************************************************************/ +/****************************************************************************/ /** Writes the Secondary slave address (alias) to the slave's SII. */ @@ -113,7 +111,7 @@ void CommandAlias::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ /** Writes the Secondary slave address (alias) to the slave's SII. */ @@ -168,4 +166,4 @@ void CommandAlias::writeSlaveAlias( delete [] data.words; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandAlias.h b/tool/CommandAlias.h index 54fb8777..8189c87f 100644 --- a/tool/CommandAlias.h +++ b/tool/CommandAlias.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandCStruct.cpp b/tool/CommandCStruct.cpp index 08ba8e6d..1623666d 100644 --- a/tool/CommandCStruct.cpp +++ b/tool/CommandCStruct.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -31,14 +29,14 @@ using namespace std; #include "CommandCStruct.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandCStruct::CommandCStruct(): Command("cstruct", "Generate slave PDO information in C language.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandCStruct::helpString(const string &binaryBaseName) const { @@ -200,4 +198,4 @@ void CommandCStruct::generateSlaveCStruct( << endl; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandCStruct.h b/tool/CommandCStruct.h index 3b2fa44b..cf78d7d7 100644 --- a/tool/CommandCStruct.h +++ b/tool/CommandCStruct.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandConfig.cpp b/tool/CommandConfig.cpp index 9fb92045..55330a4e 100644 --- a/tool/CommandConfig.cpp +++ b/tool/CommandConfig.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -32,14 +30,14 @@ using namespace std; #include "CommandConfig.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandConfig::CommandConfig(): Command("config", "Show slave configurations.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandConfig::helpString(const string &binaryBaseName) const { @@ -94,7 +92,7 @@ string CommandConfig::helpString(const string &binaryBaseName) const return str.str(); } -/*****************************************************************************/ +/****************************************************************************/ /** Lists the bus configuration. */ @@ -131,7 +129,7 @@ void CommandConfig::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ /** Lists the complete bus configuration. */ @@ -322,7 +320,7 @@ void CommandConfig::showDetailedConfigs( } } -/*****************************************************************************/ +/****************************************************************************/ /** Lists the bus configuration. */ @@ -411,4 +409,4 @@ void CommandConfig::listConfigs( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandConfig.h b/tool/CommandConfig.h index 59534713..f58d4324 100644 --- a/tool/CommandConfig.h +++ b/tool/CommandConfig.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandCrc.cpp b/tool/CommandCrc.cpp index f5289ad5..eb06ed66 100644 --- a/tool/CommandCrc.cpp +++ b/tool/CommandCrc.cpp @@ -27,14 +27,14 @@ using namespace std; #include "CommandCrc.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandCrc::CommandCrc(): Command("crc", "CRC error register diagnosis.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandCrc::helpString(const string &binaryBaseName) const { @@ -171,4 +171,4 @@ void CommandCrc::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandData.cpp b/tool/CommandData.cpp index 484ef5a1..6fc58912 100644 --- a/tool/CommandData.cpp +++ b/tool/CommandData.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -29,14 +27,14 @@ using namespace std; #include "CommandData.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandData::CommandData(): Command("data", "Output binary domain process data.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandData::helpString(const string &binaryBaseName) const { diff --git a/tool/CommandData.h b/tool/CommandData.h index 6c69ad1f..64b3be9f 100644 --- a/tool/CommandData.h +++ b/tool/CommandData.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandDebug.cpp b/tool/CommandDebug.cpp index 8eddf3e3..b106da2d 100644 --- a/tool/CommandDebug.cpp +++ b/tool/CommandDebug.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "CommandDebug.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandDebug::CommandDebug(): Command("debug", "Set the master's debug level.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandDebug::helpString(const string &binaryBaseName) const { @@ -94,4 +92,4 @@ void CommandDebug::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandDebug.h b/tool/CommandDebug.h index 3b5c5e49..b9f0fe59 100644 --- a/tool/CommandDebug.h +++ b/tool/CommandDebug.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandDomains.cpp b/tool/CommandDomains.cpp index 61fd3ba1..83abf1fd 100644 --- a/tool/CommandDomains.cpp +++ b/tool/CommandDomains.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandDomains.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandDomains::CommandDomains(): Command("domains", "Show configured domains.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandDomains::helpString(const string &binaryBaseName) const { @@ -208,4 +206,4 @@ void CommandDomains::showDomain( delete [] processData; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandDomains.h b/tool/CommandDomains.h index 86742655..cfb966dd 100644 --- a/tool/CommandDomains.h +++ b/tool/CommandDomains.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandDownload.cpp b/tool/CommandDownload.cpp index d85a08dd..4daeb7dd 100644 --- a/tool/CommandDownload.cpp +++ b/tool/CommandDownload.cpp @@ -26,14 +26,14 @@ using namespace std; #include "CommandDownload.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandDownload::CommandDownload(): SdoCommand("download", "Write an SDO entry to a slave.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandDownload::helpString(const string &binaryBaseName) const { @@ -218,4 +218,4 @@ void CommandDownload::execute(const StringVector &args) delete [] data.data; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandDownload.h b/tool/CommandDownload.h index 6fd1486a..2d3f6863 100644 --- a/tool/CommandDownload.h +++ b/tool/CommandDownload.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandEoe.cpp b/tool/CommandEoe.cpp index fb53abeb..f87e3a0a 100644 --- a/tool/CommandEoe.cpp +++ b/tool/CommandEoe.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "CommandEoe.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandEoe::CommandEoe(): Command("eoe", "Display Ethernet over EtherCAT statictics.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandEoe::helpString(const string &binaryBaseName) const { @@ -112,4 +110,4 @@ void CommandEoe::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandEoe.h b/tool/CommandEoe.h index ce76400d..4c1bd8a8 100644 --- a/tool/CommandEoe.h +++ b/tool/CommandEoe.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandFoeRead.cpp b/tool/CommandFoeRead.cpp index c335a85c..f17e3f46 100644 --- a/tool/CommandFoeRead.cpp +++ b/tool/CommandFoeRead.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id: CommandFoeRead.cpp,v 4f682084c643 2010/10/25 08:12:26 fp $ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -31,14 +29,14 @@ using namespace std; #include "foe.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandFoeRead::CommandFoeRead(): FoeCommand("foe_read", "Read a file from a slave via FoE.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandFoeRead::helpString(const string &binaryBaseName) const { @@ -129,4 +127,4 @@ void CommandFoeRead::execute(const StringVector &args) delete [] data.buffer; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandFoeRead.h b/tool/CommandFoeRead.h index fcbb8929..717158d6 100644 --- a/tool/CommandFoeRead.h +++ b/tool/CommandFoeRead.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandFoeWrite.cpp b/tool/CommandFoeWrite.cpp index 4adde6d7..6574f3f7 100644 --- a/tool/CommandFoeWrite.cpp +++ b/tool/CommandFoeWrite.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id: CommandFoeWrite.cpp,v 4f682084c643 2010/10/25 08:12:26 fp $ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -33,14 +31,14 @@ using namespace std; #include "foe.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandFoeWrite::CommandFoeWrite(): FoeCommand("foe_write", "Store a file on a slave via FoE.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandFoeWrite::helpString(const string &binaryBaseName) const { @@ -165,7 +163,7 @@ void CommandFoeWrite::execute(const StringVector &args) delete [] data.buffer; } -/*****************************************************************************/ +/****************************************************************************/ void CommandFoeWrite::loadFoeData( ec_ioctl_slave_foe_t *data, @@ -191,4 +189,4 @@ void CommandFoeWrite::loadFoeData( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandFoeWrite.h b/tool/CommandFoeWrite.h index 6ef6afd2..f1cd6038 100644 --- a/tool/CommandFoeWrite.h +++ b/tool/CommandFoeWrite.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandGraph.cpp b/tool/CommandGraph.cpp index fd82fccb..1e3745de 100644 --- a/tool/CommandGraph.cpp +++ b/tool/CommandGraph.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -29,14 +27,14 @@ using namespace std; #include "CommandGraph.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandGraph::CommandGraph(): Command("graph", "Output the bus topology as a graph.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandGraph::helpString(const string &binaryBaseName) const { @@ -281,4 +279,4 @@ void CommandGraph::execute(const StringVector &args) cout << "}" << endl; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandGraph.h b/tool/CommandGraph.h index 25dd97cc..389fcd4a 100644 --- a/tool/CommandGraph.h +++ b/tool/CommandGraph.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandMaster.cpp b/tool/CommandMaster.cpp index 34f47e4d..9e743eeb 100644 --- a/tool/CommandMaster.cpp +++ b/tool/CommandMaster.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,7 +28,7 @@ using namespace std; #define MAX_TIME_STR_SIZE 50 -/*****************************************************************************/ +/****************************************************************************/ CommandMaster::CommandMaster(): Command("master", "Show master and Ethernet device information.") @@ -270,4 +268,4 @@ void CommandMaster::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandMaster.h b/tool/CommandMaster.h index 57f5cbed..d807f417 100644 --- a/tool/CommandMaster.h +++ b/tool/CommandMaster.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandPdos.cpp b/tool/CommandPdos.cpp index 82aaaeed..2b5b5a6b 100644 --- a/tool/CommandPdos.cpp +++ b/tool/CommandPdos.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -29,14 +27,14 @@ using namespace std; #include "CommandPdos.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandPdos::CommandPdos(): Command("pdos", "List Sync managers, PDO assignment and mapping.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandPdos::helpString(const string &binaryBaseName) const { @@ -307,4 +305,4 @@ void CommandPdos::etherlabConfig( cout << "end" << endl; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandPdos.h b/tool/CommandPdos.h index 74a80565..072ba0cb 100644 --- a/tool/CommandPdos.h +++ b/tool/CommandPdos.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandRegRead.cpp b/tool/CommandRegRead.cpp index 6d615b8d..b5ed2ebf 100644 --- a/tool/CommandRegRead.cpp +++ b/tool/CommandRegRead.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandRegRead.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandRegRead::CommandRegRead(): Command("reg_read", "Output a slave's register contents.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandRegRead::helpString(const string &binaryBaseName) const { @@ -164,4 +162,4 @@ void CommandRegRead::execute(const StringVector &args) delete [] io.data; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandRegRead.h b/tool/CommandRegRead.h index cea04864..01321363 100644 --- a/tool/CommandRegRead.h +++ b/tool/CommandRegRead.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandRegWrite.cpp b/tool/CommandRegWrite.cpp index a403224e..5a1e9d5c 100644 --- a/tool/CommandRegWrite.cpp +++ b/tool/CommandRegWrite.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2012 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "sii_crc.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandRegWrite::CommandRegWrite(): Command("reg_write", "Write data to a slave's registers.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandRegWrite::helpString(const string &binaryBaseName) const { @@ -182,7 +180,7 @@ void CommandRegWrite::execute(const StringVector &args) delete [] io.data; } -/*****************************************************************************/ +/****************************************************************************/ void CommandRegWrite::loadRegData( ec_ioctl_slave_reg_t *io, @@ -210,4 +208,4 @@ void CommandRegWrite::loadRegData( contents.copy((char *) io->data, contents.size()); } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandRegWrite.h b/tool/CommandRegWrite.h index fb210483..c70c41c3 100644 --- a/tool/CommandRegWrite.h +++ b/tool/CommandRegWrite.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandRescan.cpp b/tool/CommandRescan.cpp index 8044f28f..a1cd8807 100644 --- a/tool/CommandRescan.cpp +++ b/tool/CommandRescan.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "CommandRescan.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandRescan::CommandRescan(): Command("rescan", "Rescan the bus.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandRescan::helpString(const string &binaryBaseName) const { @@ -76,4 +74,4 @@ void CommandRescan::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandRescan.h b/tool/CommandRescan.h index 023a04a8..540bcc6f 100644 --- a/tool/CommandRescan.h +++ b/tool/CommandRescan.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSdos.cpp b/tool/CommandSdos.cpp index a2b2edaf..5a472eb7 100644 --- a/tool/CommandSdos.cpp +++ b/tool/CommandSdos.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandSdos.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSdos::CommandSdos(): SdoCommand("sdos", "List SDO dictionaries.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSdos::helpString(const string &binaryBaseName) const { @@ -170,4 +168,4 @@ void CommandSdos::listSlaveSdos( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSdos.h b/tool/CommandSdos.h index a724cc1e..313f07e4 100644 --- a/tool/CommandSdos.h +++ b/tool/CommandSdos.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSiiRead.cpp b/tool/CommandSiiRead.cpp index b457c187..f7b474e5 100644 --- a/tool/CommandSiiRead.cpp +++ b/tool/CommandSiiRead.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandSiiRead.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSiiRead::CommandSiiRead(): Command("sii_read", "Output a slave's SII contents.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSiiRead::helpString(const string &binaryBaseName) const { @@ -202,4 +200,4 @@ const char *CommandSiiRead::getCategoryName(uint16_t type) return "unknown"; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSiiRead.h b/tool/CommandSiiRead.h index d5011f74..db642a35 100644 --- a/tool/CommandSiiRead.h +++ b/tool/CommandSiiRead.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSiiWrite.cpp b/tool/CommandSiiWrite.cpp index f48ad1be..0c7adb08 100644 --- a/tool/CommandSiiWrite.cpp +++ b/tool/CommandSiiWrite.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "sii_crc.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSiiWrite::CommandSiiWrite(): Command("sii_write", "Write SII contents to a slave.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSiiWrite::helpString(const string &binaryBaseName) const { @@ -135,7 +133,7 @@ void CommandSiiWrite::execute(const StringVector &args) delete [] data.words; } -/*****************************************************************************/ +/****************************************************************************/ void CommandSiiWrite::loadSiiData( ec_ioctl_slave_sii_t *data, @@ -164,7 +162,7 @@ void CommandSiiWrite::loadSiiData( contents.copy((char *) data->words, contents.size()); } -/*****************************************************************************/ +/****************************************************************************/ void CommandSiiWrite::checkSiiData( const ec_ioctl_slave_sii_t *data @@ -211,4 +209,4 @@ void CommandSiiWrite::checkSiiData( } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSiiWrite.h b/tool/CommandSiiWrite.h index 0ac4ca15..c475e07c 100644 --- a/tool/CommandSiiWrite.h +++ b/tool/CommandSiiWrite.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSlaves.cpp b/tool/CommandSlaves.cpp index 541392a9..c7e4f609 100644 --- a/tool/CommandSlaves.cpp +++ b/tool/CommandSlaves.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -30,14 +28,14 @@ using namespace std; #include "CommandSlaves.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSlaves::CommandSlaves(): Command("slaves", "Display slaves on the bus.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSlaves::helpString(const string &binaryBaseName) const { @@ -453,4 +451,4 @@ bool CommandSlaves::slaveInList( return false; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSlaves.h b/tool/CommandSlaves.h index c4430d45..c3eb45df 100644 --- a/tool/CommandSlaves.h +++ b/tool/CommandSlaves.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSoeRead.cpp b/tool/CommandSoeRead.cpp index 0aada972..886b2cbb 100644 --- a/tool/CommandSoeRead.cpp +++ b/tool/CommandSoeRead.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandSoeRead.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSoeRead::CommandSoeRead(): Command("soe_read", "Read an SoE IDN from a slave.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSoeRead::helpString(const string &binaryBaseName) const { @@ -167,4 +165,4 @@ void CommandSoeRead::execute(const StringVector &args) delete [] ioctl.data; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSoeRead.h b/tool/CommandSoeRead.h index 5598a56b..6cf43796 100644 --- a/tool/CommandSoeRead.h +++ b/tool/CommandSoeRead.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandSoeWrite.cpp b/tool/CommandSoeWrite.cpp index a6dac3a1..a227d470 100644 --- a/tool/CommandSoeWrite.cpp +++ b/tool/CommandSoeWrite.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandSoeWrite.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandSoeWrite::CommandSoeWrite(): Command("soe_write", "Write an SoE IDN to a slave.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandSoeWrite::helpString(const string &binaryBaseName) const { @@ -181,4 +179,4 @@ void CommandSoeWrite::execute(const StringVector &args) delete [] ioctl.data; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandSoeWrite.h b/tool/CommandSoeWrite.h index ca8cac7f..5c754b31 100644 --- a/tool/CommandSoeWrite.h +++ b/tool/CommandSoeWrite.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandStates.cpp b/tool/CommandStates.cpp index 40ffe2d0..2cea1539 100644 --- a/tool/CommandStates.cpp +++ b/tool/CommandStates.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandStates.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandStates::CommandStates(): Command("states", "Request application-layer states.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandStates::helpString(const string &binaryBaseName) const { @@ -107,4 +105,4 @@ void CommandStates::execute(const StringVector &args) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandStates.h b/tool/CommandStates.h index ec80baff..a673d115 100644 --- a/tool/CommandStates.h +++ b/tool/CommandStates.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandUpload.cpp b/tool/CommandUpload.cpp index 54c1dd52..6df6b145 100644 --- a/tool/CommandUpload.cpp +++ b/tool/CommandUpload.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,14 +26,14 @@ using namespace std; #include "CommandUpload.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandUpload::CommandUpload(): SdoCommand("upload", "Read an SDO entry from a slave.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandUpload::helpString(const string &binaryBaseName) const { @@ -172,4 +170,4 @@ void CommandUpload::execute(const StringVector &args) delete [] data.target; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandUpload.h b/tool/CommandUpload.h index afe00091..8ebf66df 100644 --- a/tool/CommandUpload.h +++ b/tool/CommandUpload.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandVersion.cpp b/tool/CommandVersion.cpp index 1e76095e..b651de42 100644 --- a/tool/CommandVersion.cpp +++ b/tool/CommandVersion.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -26,7 +24,7 @@ using namespace std; #include "CommandVersion.h" -/*****************************************************************************/ +/****************************************************************************/ CommandVersion::CommandVersion(): Command("version", "Show version information.") @@ -59,4 +57,4 @@ void CommandVersion::execute(const StringVector &args) cout << "IgH EtherCAT master " << EC_MASTER_VERSION << endl; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandVersion.h b/tool/CommandVersion.h index b551126b..f1552d2d 100644 --- a/tool/CommandVersion.h +++ b/tool/CommandVersion.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/CommandXml.cpp b/tool/CommandXml.cpp index cd4d231c..afe45599 100644 --- a/tool/CommandXml.cpp +++ b/tool/CommandXml.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH * @@ -29,14 +27,14 @@ using namespace std; #include "CommandXml.h" #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ CommandXml::CommandXml(): Command("xml", "Generate slave information XML.") { } -/*****************************************************************************/ +/****************************************************************************/ string CommandXml::helpString(const string &binaryBaseName) const { @@ -218,4 +216,4 @@ void CommandXml::generateSlaveXml( << in << "" << endl; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/CommandXml.h b/tool/CommandXml.h index 648f3538..09d806dc 100644 --- a/tool/CommandXml.h +++ b/tool/CommandXml.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/DataTypeHandler.cpp b/tool/DataTypeHandler.cpp index 0d05b2ce..9f0ebc62 100644 --- a/tool/DataTypeHandler.cpp +++ b/tool/DataTypeHandler.cpp @@ -33,7 +33,7 @@ using namespace std; #include "ecrt.h" -/*****************************************************************************/ +/****************************************************************************/ DataTypeHandler::DataTypeHandler() { @@ -464,4 +464,4 @@ const DataTypeHandler::DataType DataTypeHandler::dataTypes[] = { {} }; -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/DataTypeHandler.h b/tool/DataTypeHandler.h index 5f14b129..86f5db45 100644 --- a/tool/DataTypeHandler.h +++ b/tool/DataTypeHandler.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/FoeCommand.cpp b/tool/FoeCommand.cpp index 9fc5fb29..82443085 100644 --- a/tool/FoeCommand.cpp +++ b/tool/FoeCommand.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -24,7 +22,7 @@ #include "FoeCommand.h" #include "foe.h" -/*****************************************************************************/ +/****************************************************************************/ FoeCommand::FoeCommand(const string &name, const string &briefDesc): Command(name, briefDesc) diff --git a/tool/FoeCommand.h b/tool/FoeCommand.h index e90d72ef..6becbde9 100644 --- a/tool/FoeCommand.h +++ b/tool/FoeCommand.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/Makefile.am b/tool/Makefile.am index a850a9c9..c5935631 100644 --- a/tool/Makefile.am +++ b/tool/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -23,7 +21,7 @@ # # vim: syntax=automake # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- EXTRA_DIST = @@ -127,4 +125,4 @@ ethercat_CXXFLAGS = \ -Wall -DREV=$(REV) \ -fno-strict-aliasing -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/tool/MasterDevice.cpp b/tool/MasterDevice.cpp index 27128b87..d24e56a0 100644 --- a/tool/MasterDevice.cpp +++ b/tool/MasterDevice.cpp @@ -601,4 +601,4 @@ void MasterDevice::writeSoe(ec_ioctl_slave_soe_write_t *data) } } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/MasterDevice.h b/tool/MasterDevice.h index 1e012168..c7f3a177 100644 --- a/tool/MasterDevice.h +++ b/tool/MasterDevice.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/NumberListParser.cpp b/tool/NumberListParser.cpp index a508a1f4..c72d6d59 100644 --- a/tool/NumberListParser.cpp +++ b/tool/NumberListParser.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,7 +26,7 @@ using namespace std; #include "NumberListParser.h" -/*****************************************************************************/ +/****************************************************************************/ NumberListParser::NumberListParser(): max(0U), @@ -36,13 +34,13 @@ NumberListParser::NumberListParser(): { } -/*****************************************************************************/ +/****************************************************************************/ NumberListParser::~NumberListParser() { } -/*****************************************************************************/ +/****************************************************************************/ NumberListParser::List NumberListParser::parse(const char *data) { @@ -160,7 +158,7 @@ NumberListParser::List NumberListParser::parse(const char *data) return ret; } -/*****************************************************************************/ +/****************************************************************************/ int NumberListParser::maximum() { @@ -171,14 +169,14 @@ int NumberListParser::maximum() return max; } -/*****************************************************************************/ +/****************************************************************************/ bool NumberListParser::isNumeric(char c) { return c >= '0' && c <= '9'; } -/*****************************************************************************/ +/****************************************************************************/ unsigned int NumberListParser::parseNumber( const char *data, diff --git a/tool/NumberListParser.h b/tool/NumberListParser.h index 270b6bd8..37b89f33 100644 --- a/tool/NumberListParser.h +++ b/tool/NumberListParser.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -24,7 +22,7 @@ #include using namespace std; -/*****************************************************************************/ +/****************************************************************************/ class NumberListParser { diff --git a/tool/SdoCommand.cpp b/tool/SdoCommand.cpp index 2b4f0cde..aa93583f 100644 --- a/tool/SdoCommand.cpp +++ b/tool/SdoCommand.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ #include "SdoCommand.h" -/*****************************************************************************/ +/****************************************************************************/ SdoCommand::SdoCommand(const string &name, const string &briefDesc): Command(name, briefDesc) @@ -45,7 +43,7 @@ const char *SdoCommand::abortText(uint32_t abortCode) return "???"; } -/*****************************************************************************/ +/****************************************************************************/ /** SDO abort messages. * diff --git a/tool/SdoCommand.h b/tool/SdoCommand.h index 2f3ed4f0..794ddc80 100644 --- a/tool/SdoCommand.h +++ b/tool/SdoCommand.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/SoeCommand.cpp b/tool/SoeCommand.cpp index 5dd1dde8..67cb0792 100644 --- a/tool/SoeCommand.cpp +++ b/tool/SoeCommand.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -28,7 +26,7 @@ using namespace std; extern const ec_code_msg_t soe_error_codes[]; -/*****************************************************************************/ +/****************************************************************************/ uint16_t SoeCommand::parseIdn(const string &str) { @@ -94,7 +92,7 @@ uint16_t SoeCommand::parseIdn(const string &str) return idn; } -/*****************************************************************************/ +/****************************************************************************/ string SoeCommand::outputIdn(uint16_t idn) { @@ -107,7 +105,7 @@ string SoeCommand::outputIdn(uint16_t idn) return str.str(); } -/*****************************************************************************/ +/****************************************************************************/ /** Outputs an SoE error code. */ diff --git a/tool/SoeCommand.h b/tool/SoeCommand.h index 2499db99..2391b25a 100644 --- a/tool/SoeCommand.h +++ b/tool/SoeCommand.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * diff --git a/tool/main.cpp b/tool/main.cpp index d3167caf..4589ac0b 100644 --- a/tool/main.cpp +++ b/tool/main.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -61,7 +59,7 @@ using namespace std; #include "MasterDevice.h" -/*****************************************************************************/ +/****************************************************************************/ typedef list CommandList; CommandList commandList; @@ -83,7 +81,7 @@ bool helpRequested = false; string outputFile; string skin; -/*****************************************************************************/ +/****************************************************************************/ string usage() { @@ -129,7 +127,7 @@ string usage() return str.str(); } -/*****************************************************************************/ +/****************************************************************************/ void getOptions(int argc, char **argv) { diff --git a/tool/sii_crc.cpp b/tool/sii_crc.cpp index e19f976d..ef780c92 100644 --- a/tool/sii_crc.cpp +++ b/tool/sii_crc.cpp @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -23,7 +21,7 @@ #include "sii_crc.h" -/*****************************************************************************/ +/****************************************************************************/ /** Calculates the SII checksum field. * @@ -64,4 +62,4 @@ uint8_t calcSiiCrc( return crc; } -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tool/sii_crc.h b/tool/sii_crc.h index ac45b97d..f284a983 100644 --- a/tool/sii_crc.h +++ b/tool/sii_crc.h @@ -1,6 +1,4 @@ /***************************************************************************** - * - * $Id$ * * Copyright (C) 2006-2009 Florian Pose, Ingenieurgemeinschaft IgH * @@ -26,4 +24,4 @@ uint8_t calcSiiCrc(const uint8_t *, size_t); -/*****************************************************************************/ +/****************************************************************************/ diff --git a/tty/Kbuild.in b/tty/Kbuild.in index 78370c74..8c6c349e 100644 --- a/tty/Kbuild.in +++ b/tty/Kbuild.in @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,12 +17,11 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -# # --- # # vi: syntax=make # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- src := @abs_srcdir@ ccflags-y := -I@abs_top_builddir@ @@ -42,4 +39,4 @@ REV := $(shell if test -s $(src)/../revision; then \ CFLAGS_module.o := -DREV=$(REV) -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/tty/Makefile.am b/tty/Makefile.am index dd605449..c5c9c59b 100644 --- a/tty/Makefile.am +++ b/tty/Makefile.am @@ -1,6 +1,4 @@ -#------------------------------------------------------------------------------ -# -# $Id$ +#----------------------------------------------------------------------------- # # Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH # @@ -19,7 +17,8 @@ # with the IgH EtherCAT Master; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- + include $(top_srcdir)/Makefile.kbuild # using HEADERS to enable tags target @@ -29,4 +28,4 @@ noinst_HEADERS = \ EXTRA_DIST = \ README -#------------------------------------------------------------------------------ +#----------------------------------------------------------------------------- diff --git a/tty/README b/tty/README index 0b231d22..c81f1b2d 100644 --- a/tty/README +++ b/tty/README @@ -1,5 +1,3 @@ -$Id$ - vim700: spelllang=en spell Virtual TTY interface driver for EtherCAT slave supporting serial comm diff --git a/tty/module.c b/tty/module.c index b73ef68c..05486940 100644 --- a/tty/module.c +++ b/tty/module.c @@ -1,6 +1,4 @@ -/****************************************************************************** - * - * $Id$ +/***************************************************************************** * * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH * @@ -19,13 +17,13 @@ * with the IgH EtherCAT Master; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * - *****************************************************************************/ + ****************************************************************************/ /** \file * EtherCAT tty driver module. */ -/*****************************************************************************/ +/****************************************************************************/ #include #include @@ -46,7 +44,7 @@ #include "../master/globals.h" #include "../include/ectty.h" -/*****************************************************************************/ +/****************************************************************************/ #define PFX "ec_tty: " @@ -56,7 +54,7 @@ #define EC_TTY_DEBUG 0 -/*****************************************************************************/ +/****************************************************************************/ char *ec_master_version_str = EC_MASTER_VERSION; /**< Version string. */ unsigned int debug_level = 0; @@ -71,11 +69,11 @@ void ec_tty_wakeup(struct timer_list *); void ec_tty_wakeup(unsigned long); #endif -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ -MODULE_AUTHOR("Florian Pose "); +MODULE_AUTHOR("Florian Pose "); MODULE_DESCRIPTION("EtherCAT TTY driver module"); MODULE_LICENSE("GPL"); MODULE_VERSION(EC_MASTER_VERSION); @@ -121,7 +119,7 @@ struct ec_tty { static const struct tty_operations ec_tty_ops; // see below -/*****************************************************************************/ +/****************************************************************************/ /** Module initialization. * @@ -182,7 +180,7 @@ out_return: return ret; } -/*****************************************************************************/ +/****************************************************************************/ /** Module cleanup. * @@ -211,9 +209,9 @@ void __exit ec_tty_cleanup_module(void) printk(KERN_INFO PFX "Module unloading.\n"); } -/****************************************************************************** +/***************************************************************************** * ec_tty_t methods. - *****************************************************************************/ + ****************************************************************************/ int ec_tty_init(ec_tty_t *t, int minor, const ec_tty_operations_t *ops, void *cb_data) @@ -290,7 +288,7 @@ int ec_tty_init(ec_tty_t *t, int minor, return 0; } -/*****************************************************************************/ +/****************************************************************************/ void ec_tty_clear(ec_tty_t *tty) { @@ -298,7 +296,7 @@ void ec_tty_clear(ec_tty_t *tty) tty_unregister_device(tty_driver, tty->minor); } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ec_tty_tx_size(ec_tty_t *tty) { @@ -313,14 +311,14 @@ unsigned int ec_tty_tx_size(ec_tty_t *tty) return ret; } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ec_tty_tx_space(ec_tty_t *tty) { return EC_TTY_TX_BUFFER_SIZE - 1 - ec_tty_tx_size(tty); } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ec_tty_rx_size(ec_tty_t *tty) { @@ -335,14 +333,14 @@ unsigned int ec_tty_rx_size(ec_tty_t *tty) return ret; } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ec_tty_rx_space(ec_tty_t *tty) { return EC_TTY_RX_BUFFER_SIZE - 1 - ec_tty_rx_size(tty); } -/*****************************************************************************/ +/****************************************************************************/ int ec_tty_get_serial_info(ec_tty_t *tty, struct serial_struct *data) { @@ -359,7 +357,7 @@ int ec_tty_get_serial_info(ec_tty_t *tty, struct serial_struct *data) return 0; } -/*****************************************************************************/ +/****************************************************************************/ /** Timer function. */ @@ -432,9 +430,9 @@ void ec_tty_wakeup(unsigned long data) add_timer(&tty->timer); } -/****************************************************************************** +/***************************************************************************** * Device callbacks - *****************************************************************************/ + ****************************************************************************/ static int ec_tty_open(struct tty_struct *tty, struct file *file) { @@ -468,7 +466,7 @@ static int ec_tty_open(struct tty_struct *tty, struct file *file) return 0; } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_close(struct tty_struct *tty, struct file *file) { @@ -488,7 +486,7 @@ static void ec_tty_close(struct tty_struct *tty, struct file *file) } } -/*****************************************************************************/ +/****************************************************************************/ static int ec_tty_write( struct tty_struct *tty, @@ -519,7 +517,7 @@ static int ec_tty_write( return data_size; } -/*****************************************************************************/ +/****************************************************************************/ static int ec_tty_put_char(struct tty_struct *tty, unsigned char ch) { @@ -539,7 +537,7 @@ static int ec_tty_put_char(struct tty_struct *tty, unsigned char ch) } } -/*****************************************************************************/ +/****************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) static unsigned int ec_tty_write_room(struct tty_struct *tty) @@ -557,7 +555,7 @@ static int ec_tty_write_room(struct tty_struct *tty) return ret; } -/*****************************************************************************/ +/****************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) static unsigned int ec_tty_chars_in_buffer(struct tty_struct *tty) @@ -581,7 +579,7 @@ static int ec_tty_chars_in_buffer(struct tty_struct *tty) return ret; } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_flush_buffer(struct tty_struct *tty) { @@ -592,7 +590,7 @@ static void ec_tty_flush_buffer(struct tty_struct *tty) // FIXME empty ring buffer } -/*****************************************************************************/ +/****************************************************************************/ static int ec_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) @@ -636,7 +634,7 @@ static int ec_tty_ioctl(struct tty_struct *tty, return ret; } -/*****************************************************************************/ +/****************************************************************************/ #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) static void ec_tty_set_termios(struct tty_struct *tty, @@ -678,7 +676,7 @@ static void ec_tty_set_termios(struct tty_struct *tty, } } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_stop(struct tty_struct *tty) { @@ -687,7 +685,7 @@ static void ec_tty_stop(struct tty_struct *tty) #endif } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_start(struct tty_struct *tty) { @@ -696,7 +694,7 @@ static void ec_tty_start(struct tty_struct *tty) #endif } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_hangup(struct tty_struct *tty) { @@ -705,7 +703,7 @@ static void ec_tty_hangup(struct tty_struct *tty) #endif } -/*****************************************************************************/ +/****************************************************************************/ static int ec_tty_break(struct tty_struct *tty, int break_state) { @@ -716,7 +714,7 @@ static int ec_tty_break(struct tty_struct *tty, int break_state) return -EIO; // not implemented } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_send_xchar(struct tty_struct *tty, char ch) { @@ -725,7 +723,7 @@ static void ec_tty_send_xchar(struct tty_struct *tty, char ch) #endif } -/*****************************************************************************/ +/****************************************************************************/ static void ec_tty_wait_until_sent(struct tty_struct *tty, int timeout) { @@ -734,7 +732,7 @@ static void ec_tty_wait_until_sent(struct tty_struct *tty, int timeout) #endif } -/*****************************************************************************/ +/****************************************************************************/ static const struct tty_operations ec_tty_ops = { .open = ec_tty_open, @@ -754,9 +752,9 @@ static const struct tty_operations ec_tty_ops = { .wait_until_sent = ec_tty_wait_until_sent, }; -/****************************************************************************** +/***************************************************************************** * Public functions and methods - *****************************************************************************/ + ****************************************************************************/ ec_tty_t *ectty_create(const ec_tty_operations_t *ops, void *cb_data) { @@ -796,7 +794,7 @@ ec_tty_t *ectty_create(const ec_tty_operations_t *ops, void *cb_data) return ERR_PTR(-EBUSY); } -/*****************************************************************************/ +/****************************************************************************/ void ectty_free(ec_tty_t *tty) { @@ -815,7 +813,7 @@ void ectty_free(ec_tty_t *tty) kfree(tty); } -/*****************************************************************************/ +/****************************************************************************/ unsigned int ectty_tx_data(ec_tty_t *tty, uint8_t *buffer, size_t size) { @@ -839,7 +837,7 @@ unsigned int ectty_tx_data(ec_tty_t *tty, uint8_t *buffer, size_t size) return data_size; } -/*****************************************************************************/ +/****************************************************************************/ void ectty_rx_data(ec_tty_t *tty, const uint8_t *buffer, size_t size) { @@ -866,7 +864,7 @@ void ectty_rx_data(ec_tty_t *tty, const uint8_t *buffer, size_t size) } } -/*****************************************************************************/ +/****************************************************************************/ /** \cond */ @@ -880,4 +878,4 @@ EXPORT_SYMBOL(ectty_rx_data); /** \endcond */ -/*****************************************************************************/ +/****************************************************************************/