equal
deleted
inserted
replaced
154 #include <asm/irq.h> |
154 #include <asm/irq.h> |
155 |
155 |
156 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
156 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
157 |
157 |
158 #include "ecdev.h" |
158 #include "ecdev.h" |
|
159 #include "../master/globals.h" |
159 |
160 |
160 #define LIT(X) #X |
161 #define LIT(X) #X |
161 #define STR(X) LIT(X) |
162 #define STR(X) LIT(X) |
162 |
163 |
163 #define COMPILE_INFO "Revision " STR(EC_REV) \ |
164 #define RTL8139_DRIVER_NAME DRV_NAME \ |
164 ", compiled by " STR(EC_USER) \ |
165 " EtherCAT-capable Fast Ethernet driver " \ |
165 " at " __DATE__ " " __TIME__ |
166 DRV_VERSION ", master " EC_MASTER_VERSION |
166 |
167 |
167 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
168 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
168 |
169 |
169 #define RTL8139_DRIVER_NAME DRV_NAME " Fast Ethernet driver " DRV_VERSION |
|
170 #define PFX DRV_NAME ": " |
170 #define PFX DRV_NAME ": " |
171 |
171 |
172 /* Default Message level */ |
172 /* Default Message level */ |
173 #define RTL8139_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ |
173 #define RTL8139_DEF_MSG_ENABLE (NETIF_MSG_DRV | \ |
174 NETIF_MSG_PROBE | \ |
174 NETIF_MSG_PROBE | \ |
672 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
672 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
673 |
673 |
674 MODULE_AUTHOR("Florian Pose <fp@igh-essen.com>"); |
674 MODULE_AUTHOR("Florian Pose <fp@igh-essen.com>"); |
675 MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); |
675 MODULE_DESCRIPTION("RealTek RTL-8139 EtherCAT driver"); |
676 MODULE_LICENSE("GPL"); |
676 MODULE_LICENSE("GPL"); |
677 MODULE_VERSION(COMPILE_INFO); |
677 MODULE_VERSION(EC_MASTER_VERSION); |
678 |
678 |
679 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
679 /* EtherCAT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |
680 |
680 |
681 module_param(multicast_filter_limit, int, 0); |
681 module_param(multicast_filter_limit, int, 0); |
682 module_param_array(media, int, NULL, 0); |
682 module_param_array(media, int, NULL, 0); |
2898 |
2898 |
2899 static int __init rtl8139_init_module (void) |
2899 static int __init rtl8139_init_module (void) |
2900 { |
2900 { |
2901 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
2901 /* EtherCAT >>>>>>>>>>>>>>>>>>>>>>>>>>>>*/ |
2902 |
2902 |
2903 printk(KERN_INFO RTL8139_DRIVER_NAME " " COMPILE_INFO "\n"); |
2903 printk(KERN_INFO RTL8139_DRIVER_NAME "\n"); |
2904 printk(KERN_INFO "ec_device_index is %i\n", ec_device_index); |
2904 printk(KERN_INFO "ec_device_index is %i\n", ec_device_index); |
2905 |
2905 |
2906 if (pci_module_init(&rtl8139_pci_driver) < 0) { |
2906 if (pci_module_init(&rtl8139_pci_driver) < 0) { |
2907 printk(KERN_ERR "Failed to init PCI module.\n"); |
2907 printk(KERN_ERR "Failed to init PCI module.\n"); |
2908 goto out_return; |
2908 goto out_return; |