fp@575: /****************************************************************************** fp@575: * fp@575: * $Id$ fp@575: * fp@575: * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@575: * fp@575: * This file is part of the IgH EtherCAT Master. fp@575: * fp@575: * The IgH EtherCAT Master is free software; you can redistribute it fp@575: * and/or modify it under the terms of the GNU General Public License fp@575: * as published by the Free Software Foundation; either version 2 of the fp@575: * License, or (at your option) any later version. fp@575: * fp@575: * The IgH EtherCAT Master is distributed in the hope that it will be fp@575: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@575: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@575: * GNU General Public License for more details. fp@575: * fp@575: * You should have received a copy of the GNU General Public License fp@575: * along with the IgH EtherCAT Master; if not, write to the Free Software fp@575: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@575: * fp@575: * The right to use EtherCAT Technology is granted and comes free of fp@575: * charge under condition of compatibility of product made by fp@575: * Licensee. People intending to distribute/sell products based on the fp@575: * code, have to sign an agreement to guarantee that products using fp@575: * software based on IgH EtherCAT master stay compatible with the actual fp@575: * EtherCAT specification (which are released themselves as an open fp@575: * standard) as the (only) precondition to have the right to use EtherCAT fp@575: * Technology, IP and trade marks. fp@575: * fp@575: *****************************************************************************/ fp@575: fp@575: /** fp@575: \file fp@575: EtherCAT device ID structure. fp@575: */ fp@575: fp@575: /*****************************************************************************/ fp@575: fp@575: #ifndef _EC_DEVICE_ID_H_ fp@575: #define _EC_DEVICE_ID_H_ fp@575: fp@575: #include fp@575: fp@575: #include "globals.h" fp@575: fp@575: /*****************************************************************************/ fp@575: fp@575: typedef enum { fp@575: ec_device_id_empty, fp@575: ec_device_id_mac fp@575: } fp@575: ec_device_id_type_t; fp@575: fp@575: typedef struct { fp@575: struct list_head list; fp@575: ec_device_id_type_t type; fp@575: unsigned char octets[ETH_ALEN]; fp@575: } fp@575: ec_device_id_t; fp@575: fp@575: /*****************************************************************************/ fp@575: fp@575: int ec_device_id_process_params(const char *, const char *, fp@575: struct list_head *, struct list_head *); fp@575: void ec_device_id_clear_list(struct list_head *); fp@575: int ec_device_id_check(const ec_device_id_t *, const struct net_device *, fp@575: const char *, unsigned int); fp@577: ssize_t ec_device_id_print(const ec_device_id_t *, char *); fp@575: fp@575: /*****************************************************************************/ fp@575: fp@575: #endif