mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Added missing prototypes.
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
|
||||
int __init ec_gen_init_module(void);
|
||||
void __exit ec_gen_cleanup_module(void);
|
||||
void ec_gen_poll(struct net_device *);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
@@ -87,11 +88,18 @@ typedef struct {
|
||||
uint8_t dev_addr[ETH_ALEN];
|
||||
} ec_gen_interface_desc_t;
|
||||
|
||||
int ec_gen_device_init(ec_gen_device_t *);
|
||||
void ec_gen_device_clear(ec_gen_device_t *);
|
||||
int ec_gen_device_create_socket(ec_gen_device_t *, ec_gen_interface_desc_t *);
|
||||
int ec_gen_device_offer(ec_gen_device_t *, ec_gen_interface_desc_t *);
|
||||
int ec_gen_device_open(ec_gen_device_t *);
|
||||
int ec_gen_device_stop(ec_gen_device_t *);
|
||||
int ec_gen_device_start_xmit(ec_gen_device_t *, struct sk_buff *);
|
||||
void ec_gen_device_poll(ec_gen_device_t *);
|
||||
|
||||
int offer_device(ec_gen_interface_desc_t *);
|
||||
void clear_devices(void);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
static int ec_gen_netdev_open(struct net_device *dev)
|
||||
|
||||
@@ -182,6 +182,21 @@ static ec_voe_handler_t *voe;
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
void check_domain1_state(void);
|
||||
void check_master_state(void);
|
||||
void check_slave_config_states(void);
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
|
||||
void cyclic_task(struct timer_list *);
|
||||
#else
|
||||
void cyclic_task(unsigned long);
|
||||
#endif
|
||||
void send_callback(void *);
|
||||
void receive_callback(void *);
|
||||
int init_mini_module(void);
|
||||
void cleanup_mini_module(void);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
void check_domain1_state(void)
|
||||
{
|
||||
ec_domain_state_t ds;
|
||||
|
||||
Reference in New Issue
Block a user