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