fp@231: /****************************************************************************** fp@231: * fp@231: * $Id$ fp@231: * fp@1685: * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH fp@231: * fp@231: * This file is part of the IgH EtherCAT Master. fp@231: * fp@1685: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@1685: * modify it under the terms of the GNU General Public License version 2, as fp@1685: * published by the Free Software Foundation. fp@231: * fp@1685: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@1685: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@1685: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@1685: * Public License for more details. fp@231: * fp@1685: * You should have received a copy of the GNU General Public License along fp@1685: * with the IgH EtherCAT Master; if not, write to the Free Software fp@231: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@231: * fp@1685: * Using the EtherCAT technology and brand is permitted in compliance with fp@1685: * the industrial property and similar rights of Beckhoff Automation GmbH. fp@246: * fp@231: *****************************************************************************/ fp@231: fp@231: /** fp@231: \file fp@231: Network interface for debugging purposes. fp@231: */ fp@231: fp@231: /*****************************************************************************/ fp@231: fp@231: #include fp@231: fp@231: /*****************************************************************************/ fp@231: fp@231: /** fp@231: Debugging network interface. fp@231: */ fp@231: fp@231: typedef struct fp@231: { fp@231: struct net_device *dev; /**< net_device for virtual ethernet device */ fp@231: struct net_device_stats stats; /**< device statistics */ fp@231: uint8_t opened; /**< net_device is opened */ fp@231: } fp@231: ec_debug_t; fp@231: fp@231: /*****************************************************************************/ fp@231: fp@687: int ec_debug_init(ec_debug_t *, const char *); fp@231: void ec_debug_clear(ec_debug_t *); fp@231: void ec_debug_send(ec_debug_t *, const uint8_t *, size_t); fp@231: fp@231: /*****************************************************************************/