devices/8139too-2.6.13-ethercat.c
changeset 535 4c8edc04fe24
parent 533 acdd1f9ef7ab
child 573 cdee4ea90ce9
equal deleted inserted replaced
534:dfaeae243866 535:4c8edc04fe24
   691 MODULE_PARM_DESC(ec_device_index,
   691 MODULE_PARM_DESC(ec_device_index,
   692                  "Index of the device reserved for EtherCAT.");
   692                  "Index of the device reserved for EtherCAT.");
   693 MODULE_PARM_DESC(ec_device_master_index,
   693 MODULE_PARM_DESC(ec_device_master_index,
   694                  "Index of the EtherCAT master to register the device.");
   694                  "Index of the EtherCAT master to register the device.");
   695 
   695 
       
   696 void ec_poll(struct net_device *);
       
   697 
   696 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
   698 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
   697 
   699 
   698 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
   700 static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
   699 static int rtl8139_open (struct net_device *dev);
   701 static int rtl8139_open (struct net_device *dev);
   700 static int mdio_read (struct net_device *dev, int phy_id, int location);
   702 static int mdio_read (struct net_device *dev, int phy_id, int location);
   707 			       struct net_device *dev);
   709 			       struct net_device *dev);
   708 static int rtl8139_poll(struct net_device *dev, int *budget);
   710 static int rtl8139_poll(struct net_device *dev, int *budget);
   709 #ifdef CONFIG_NET_POLL_CONTROLLER
   711 #ifdef CONFIG_NET_POLL_CONTROLLER
   710 static void rtl8139_poll_controller(struct net_device *dev);
   712 static void rtl8139_poll_controller(struct net_device *dev);
   711 #endif
   713 #endif
   712 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
   714 static irqreturn_t rtl8139_interrupt (int irq, void *dev_instance,
   713 void ec_poll(struct net_device *);
   715 			       struct pt_regs *regs);
   714 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
       
   715 irqreturn_t rtl8139_interrupt (int irq, void *dev_instance,
       
   716                                struct pt_regs *regs);
       
   717 static int rtl8139_close (struct net_device *dev);
   716 static int rtl8139_close (struct net_device *dev);
   718 static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd);
   717 static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd);
   719 static struct net_device_stats *rtl8139_get_stats (struct net_device *dev);
   718 static struct net_device_stats *rtl8139_get_stats (struct net_device *dev);
   720 static void rtl8139_set_rx_mode (struct net_device *dev);
   719 static void rtl8139_set_rx_mode (struct net_device *dev);
   721 static void __set_rx_mode (struct net_device *dev);
   720 static void __set_rx_mode (struct net_device *dev);