fp@2597: /****************************************************************************** fp@2597: * fp@2597: * $Id$ fp@2597: * fp@2597: * Copyright (C) 2006-2014 Florian Pose, Ingenieurgemeinschaft IgH fp@2597: * fp@2597: * This file is part of the IgH EtherCAT Master. fp@2597: * fp@2597: * The IgH EtherCAT Master is free software; you can redistribute it and/or fp@2597: * modify it under the terms of the GNU General Public License version 2, as fp@2597: * published by the Free Software Foundation. fp@2597: * fp@2597: * The IgH EtherCAT Master is distributed in the hope that it will be useful, fp@2597: * but WITHOUT ANY WARRANTY; without even the implied warranty of fp@2597: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General fp@2597: * Public License for more details. fp@2597: * fp@2597: * You should have received a copy of the GNU General Public License along fp@2597: * with the IgH EtherCAT Master; if not, write to the Free Software fp@2597: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@2597: * fp@2597: * --- fp@2597: * fp@2597: * The license mentioned above concerns the source code only. Using the fp@2597: * EtherCAT technology and brand is only permitted in compliance with the fp@2597: * industrial property and similar rights of Beckhoff Automation GmbH. fp@2597: * fp@2597: *****************************************************************************/ fp@2597: fp@2597: /** fp@2597: \file fp@2597: EtherCAT EoE request structure. fp@2597: */ fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: #ifndef __EC_EOE_REQUEST_H__ fp@2597: #define __EC_EOE_REQUEST_H__ fp@2597: fp@2597: #include fp@2597: #include // ETH_ALEN fp@2597: fp@2597: #include "globals.h" fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: /** Ethernet-over-EtherCAT set IP parameter request. fp@2597: */ fp@2597: typedef struct { fp@2597: struct list_head list; /**< List item. */ fp@2597: ec_internal_request_state_t state; /**< Request state. */ fp@2597: unsigned long jiffies_sent; /**< Jiffies, when the request was sent. */ fp@2597: fp@2597: uint8_t mac_address_included; fp@2597: uint8_t ip_address_included; fp@2597: uint8_t subnet_mask_included; fp@2597: uint8_t gateway_included; fp@2597: uint8_t dns_included; fp@2597: uint8_t name_included; fp@2597: fp@2597: unsigned char mac_address[ETH_ALEN]; fp@2597: uint32_t ip_address; fp@2597: uint32_t subnet_mask; fp@2597: uint32_t gateway; fp@2597: uint32_t dns; fp@2597: char name[EC_MAX_HOSTNAME_SIZE]; fp@2597: fp@2597: uint16_t result; fp@2597: } ec_eoe_request_t; fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: void ec_eoe_request_init(ec_eoe_request_t *); fp@2597: fp@2597: /*****************************************************************************/ fp@2597: fp@2597: #endif