fp@361: /****************************************************************************** fp@361: * fp@361: * $Id$ fp@361: * fp@361: * Copyright (C) 2006 Florian Pose, Ingenieurgemeinschaft IgH fp@361: * fp@361: * This file is part of the IgH EtherCAT Master. fp@361: * fp@361: * The IgH EtherCAT Master is free software; you can redistribute it fp@361: * and/or modify it under the terms of the GNU General Public License fp@361: * as published by the Free Software Foundation; either version 2 of the fp@361: * License, or (at your option) any later version. fp@361: * fp@361: * The IgH EtherCAT Master is distributed in the hope that it will be fp@361: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of fp@361: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the fp@361: * GNU General Public License for more details. fp@361: * fp@361: * You should have received a copy of the GNU General Public License fp@361: * along with the IgH EtherCAT Master; if not, write to the Free Software fp@361: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA fp@361: * fp@361: * The right to use EtherCAT Technology is granted and comes free of fp@361: * charge under condition of compatibility of product made by fp@361: * Licensee. People intending to distribute/sell products based on the fp@361: * code, have to sign an agreement to guarantee that products using fp@361: * software based on IgH EtherCAT master stay compatible with the actual fp@361: * EtherCAT specification (which are released themselves as an open fp@361: * standard) as the (only) precondition to have the right to use EtherCAT fp@361: * Technology, IP and trade marks. fp@361: * fp@361: *****************************************************************************/ fp@361: fp@361: /** fp@361: \file fp@361: EtherCAT XML device. fp@361: */ fp@361: fp@361: /*****************************************************************************/ fp@361: fp@361: #ifndef _EC_XMLDEV_H_ fp@361: #define _EC_XMLDEV_H_ fp@361: fp@361: #include fp@361: #include fp@361: fp@361: #include "globals.h" fp@361: #include "../include/ecrt.h" fp@361: fp@361: /*****************************************************************************/ fp@361: fp@361: /** fp@361: EtherCAT XML character device. fp@361: */ fp@361: fp@361: typedef struct fp@361: { fp@361: ec_master_t *master; /**< master owning the device */ fp@361: struct cdev cdev; /**< character device */ fp@362: atomic_t available; /**< allow only one open() */ fp@361: } fp@361: ec_xmldev_t; fp@361: fp@361: /*****************************************************************************/ fp@361: fp@758: /** \cond */ fp@758: fp@361: int ec_xmldev_init(ec_xmldev_t *, ec_master_t *, dev_t); fp@361: void ec_xmldev_clear(ec_xmldev_t *); fp@361: fp@362: int ec_xmldev_request(ec_xmldev_t *, uint32_t, uint32_t); fp@362: fp@758: /** \endcond */ fp@758: fp@361: /*****************************************************************************/ fp@361: fp@361: #endif