equal
deleted
inserted
replaced
|
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 |
|
18 typedef struct ec_device ec_device_t; |
|
19 |
|
20 /*****************************************************************************/ |
|
21 |
|
22 typedef enum |
|
23 { |
|
24 EC_DEVICE_STATE_READY, EC_DEVICE_STATE_SENT, EC_DEVICE_STATE_RECEIVED, |
|
25 EC_DEVICE_STATE_TIMEOUT, EC_DEVICE_STATE_ERROR |
|
26 } |
|
27 ec_device_state_t; |
|
28 |
|
29 /*****************************************************************************/ |
|
30 |
|
31 ec_device_t *EtherCAT_dev_register(unsigned int, struct net_device *, |
|
32 irqreturn_t (*)(int, void *, |
|
33 struct pt_regs *), |
|
34 struct module *); |
|
35 void EtherCAT_dev_unregister(unsigned int); |
|
36 int EtherCAT_dev_is_ec(ec_device_t *, struct net_device *); |
|
37 void EtherCAT_dev_state(ec_device_t *, ec_device_state_t); |
|
38 int EtherCAT_dev_receive(ec_device_t *, void *, unsigned int); |
|
39 |
|
40 /*****************************************************************************/ |
|
41 |
|
42 #endif |