fp@231: /****************************************************************************** fp@231: * fp@231: * $Id$ fp@231: * fp@231: * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@231: * fp@231: * This file is part of the IgH EtherCAT Master. fp@231: * fp@231: * The IgH EtherCAT Master is free software; you can redistribute it fp@231: * and/or modify it under the terms of the GNU General Public License fp@246: * as published by the Free Software Foundation; either version 2 of the fp@246: * License, or (at your option) any later version. fp@231: * fp@231: * The IgH EtherCAT Master is distributed in the hope that it will be fp@231: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@231: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@231: * GNU General Public License for more details. fp@231: * fp@231: * You should have received a copy of the GNU General Public License fp@231: * along 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@246: * The right to use EtherCAT Technology is granted and comes free of fp@246: * charge under condition of compatibility of product made by fp@246: * Licensee. People intending to distribute/sell products based on the fp@246: * code, have to sign an agreement to guarantee that products using fp@246: * software based on IgH EtherCAT master stay compatible with the actual fp@246: * EtherCAT specification (which are released themselves as an open fp@246: * standard) as the (only) precondition to have the right to use EtherCAT fp@246: * Technology, IP and trade marks. 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@1744: 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: /*****************************************************************************/