include/EtherCAT_dev.h
changeset 104 052bc82d5442
parent 103 d2a8adde27c4
child 105 fad6709a526f
equal deleted inserted replaced
103:d2a8adde27c4 104:052bc82d5442
     1 /******************************************************************************
       
     2  *
       
     3  * Oeffentliche EtherCAT-Schnittstellen fuer EtherCAT-Geraetetreiber.
       
     4  *
       
     5  * $Id$
       
     6  *
       
     7  *****************************************************************************/
       
     8 
       
     9 #ifndef _ETHERCAT_DEVICE_H_
       
    10 #define _ETHERCAT_DEVICE_H_
       
    11 
       
    12 #include <linux/netdevice.h>
       
    13 
       
    14 /*****************************************************************************/
       
    15 
       
    16 struct ec_device;
       
    17 typedef struct ec_device ec_device_t;
       
    18 
       
    19 /*****************************************************************************/
       
    20 
       
    21 ec_device_t *EtherCAT_dev_register(unsigned int, struct net_device *,
       
    22                                    irqreturn_t (*)(int, void *,
       
    23                                                    struct pt_regs *),
       
    24                                    struct module *);
       
    25 void EtherCAT_dev_unregister(unsigned int, ec_device_t *);
       
    26 
       
    27 int EtherCAT_dev_is_ec(const ec_device_t *, const struct net_device *);
       
    28 void EtherCAT_dev_receive(ec_device_t *, const void *, size_t);
       
    29 void EtherCAT_dev_link_state(ec_device_t *, uint8_t);
       
    30 
       
    31 /*****************************************************************************/
       
    32 
       
    33 #endif