692 MODULE_PARM_DESC(ec_device_index, |
692 MODULE_PARM_DESC(ec_device_index, |
693 "Index of the device reserved for EtherCAT."); |
693 "Index of the device reserved for EtherCAT."); |
694 MODULE_PARM_DESC(ec_device_master_index, |
694 MODULE_PARM_DESC(ec_device_master_index, |
695 "Index of the EtherCAT master to register the device."); |
695 "Index of the EtherCAT master to register the device."); |
696 |
696 |
|
697 void ec_poll(struct net_device *); |
|
698 |
697 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
699 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
698 |
700 |
699 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len); |
701 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len); |
700 static int rtl8139_open (struct net_device *dev); |
702 static int rtl8139_open (struct net_device *dev); |
701 static int mdio_read (struct net_device *dev, int phy_id, int location); |
703 static int mdio_read (struct net_device *dev, int phy_id, int location); |
708 struct net_device *dev); |
710 struct net_device *dev); |
709 static int rtl8139_poll(struct net_device *dev, int *budget); |
711 static int rtl8139_poll(struct net_device *dev, int *budget); |
710 #ifdef CONFIG_NET_POLL_CONTROLLER |
712 #ifdef CONFIG_NET_POLL_CONTROLLER |
711 static void rtl8139_poll_controller(struct net_device *dev); |
713 static void rtl8139_poll_controller(struct net_device *dev); |
712 #endif |
714 #endif |
713 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
715 static irqreturn_t rtl8139_interrupt (int irq, void *dev_instance, |
714 void ec_poll(struct net_device *); |
716 struct pt_regs *regs); |
715 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
|
716 irqreturn_t rtl8139_interrupt (int irq, void *dev_instance, |
|
717 struct pt_regs *regs); |
|
718 static int rtl8139_close (struct net_device *dev); |
717 static int rtl8139_close (struct net_device *dev); |
719 static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd); |
718 static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd); |
720 static struct net_device_stats *rtl8139_get_stats (struct net_device *dev); |
719 static struct net_device_stats *rtl8139_get_stats (struct net_device *dev); |
721 static void rtl8139_set_rx_mode (struct net_device *dev); |
720 static void rtl8139_set_rx_mode (struct net_device *dev); |
722 static void __set_rx_mode (struct net_device *dev); |
721 static void __set_rx_mode (struct net_device *dev); |