fp@1565: /****************************************************************************** fp@1565: * fp@1565: * $Id$ fp@1565: * fp@1565: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@1565: * fp@1565: * This file is part of the IgH EtherCAT Master. fp@1565: * fp@1565: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1565: * modify it under the terms of the GNU General Public License version 2, as fp@1565: * published by the Free Software Foundation. fp@1565: * fp@1565: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1565: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1565: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1565: * Public License for more details. fp@1565: * fp@1565: * You should have received a copy of the GNU General Public License along fp@1565: * with the IgH EtherCAT Master; if not, write to the Free Software fp@1565: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@1565: * fp@1565: * --- fp@1565: * fp@1565: * The license mentioned above concerns the source code only. Using the fp@1565: * EtherCAT technology and brand is only permitted in compliance with the fp@1565: * industrial property and similar rights of Beckhoff Automation GmbH. fp@1565: * fp@1565: *****************************************************************************/ fp@1565: fp@1565: /** \file fp@1565: * EtherCAT tty driver module. fp@1565: */ fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: #include fp@1565: #include fp@1565: fp@1565: #include "../master/globals.h" fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: int __init ec_tty_init_module(void); fp@1565: void __exit ec_tty_cleanup_module(void); fp@1565: fp@1565: unsigned int debug_level = 0; fp@1565: char *ec_master_version_str = EC_MASTER_VERSION; /**< Version string. */ fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: /** \cond */ fp@1565: fp@1565: MODULE_AUTHOR("Florian Pose "); fp@1565: MODULE_DESCRIPTION("EtherCAT TTY driver module"); fp@1565: MODULE_LICENSE("GPL"); fp@1565: MODULE_VERSION(EC_MASTER_VERSION); fp@1565: fp@1565: module_param_named(debug_level, debug_level, uint, S_IRUGO); fp@1565: MODULE_PARM_DESC(debug_level, "Debug level"); fp@1565: fp@1565: /** \endcond */ fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: /** Module initialization. fp@1565: * fp@1565: * \return 0 on success, else < 0 fp@1565: */ fp@1565: int __init ec_tty_init_module(void) fp@1565: { fp@1565: int ret = 0; fp@1565: fp@1565: EC_INFO("TTY driver %s\n", EC_MASTER_VERSION); fp@1565: fp@1565: return ret; fp@1565: } fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: /** Module cleanup. fp@1565: * fp@1565: * Clears all master instances. fp@1565: */ fp@1565: void __exit ec_tty_cleanup_module(void) fp@1565: { fp@1565: EC_INFO("TTY module cleaned up.\n"); fp@1565: } fp@1565: fp@1565: /*****************************************************************************/ fp@1565: fp@1565: /** \cond */ fp@1565: fp@1565: module_init(ec_tty_init_module); fp@1565: module_exit(ec_tty_cleanup_module); fp@1565: fp@1565: /** \endcond */ fp@1565: fp@1565: /*****************************************************************************/