diff options
Diffstat (limited to 'drivers/net/e1000/e1000.h')
-rw-r--r-- | drivers/net/e1000/e1000.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/drivers/net/e1000/e1000.h b/drivers/net/e1000/e1000.h index 2f29c2131851..40b62b406b08 100644 --- a/drivers/net/e1000/e1000.h +++ b/drivers/net/e1000/e1000.h | |||
@@ -81,23 +81,6 @@ struct e1000_adapter; | |||
81 | 81 | ||
82 | #include "e1000_hw.h" | 82 | #include "e1000_hw.h" |
83 | 83 | ||
84 | #ifdef DBG | ||
85 | #define E1000_DBG(args...) printk(KERN_DEBUG "e1000: " args) | ||
86 | #else | ||
87 | #define E1000_DBG(args...) | ||
88 | #endif | ||
89 | |||
90 | #define E1000_ERR(args...) printk(KERN_ERR "e1000: " args) | ||
91 | |||
92 | #define PFX "e1000: " | ||
93 | |||
94 | #define DPRINTK(nlevel, klevel, fmt, args...) \ | ||
95 | do { \ | ||
96 | if (NETIF_MSG_##nlevel & adapter->msg_enable) \ | ||
97 | printk(KERN_##klevel PFX "%s: %s: " fmt, \ | ||
98 | adapter->netdev->name, __func__, ##args); \ | ||
99 | } while (0) | ||
100 | |||
101 | #define E1000_MAX_INTR 10 | 84 | #define E1000_MAX_INTR 10 |
102 | 85 | ||
103 | /* TX/RX descriptor defines */ | 86 | /* TX/RX descriptor defines */ |
@@ -335,6 +318,25 @@ enum e1000_state_t { | |||
335 | __E1000_DOWN | 318 | __E1000_DOWN |
336 | }; | 319 | }; |
337 | 320 | ||
321 | #undef pr_fmt | ||
322 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
323 | |||
324 | extern struct net_device *e1000_get_hw_dev(struct e1000_hw *hw); | ||
325 | #define e_dbg(format, arg...) \ | ||
326 | netdev_dbg(e1000_get_hw_dev(hw), format, ## arg) | ||
327 | #define e_err(format, arg...) \ | ||
328 | netdev_err(adapter->netdev, format, ## arg) | ||
329 | #define e_info(format, arg...) \ | ||
330 | netdev_info(adapter->netdev, format, ## arg) | ||
331 | #define e_warn(format, arg...) \ | ||
332 | netdev_warn(adapter->netdev, format, ## arg) | ||
333 | #define e_notice(format, arg...) \ | ||
334 | netdev_notice(adapter->netdev, format, ## arg) | ||
335 | #define e_dev_info(format, arg...) \ | ||
336 | dev_info(&adapter->pdev->dev, format, ## arg) | ||
337 | #define e_dev_warn(format, arg...) \ | ||
338 | dev_warn(&adapter->pdev->dev, format, ## arg) | ||
339 | |||
338 | extern char e1000_driver_name[]; | 340 | extern char e1000_driver_name[]; |
339 | extern const char e1000_driver_version[]; | 341 | extern const char e1000_driver_version[]; |
340 | 342 | ||
@@ -352,5 +354,6 @@ extern bool e1000_has_link(struct e1000_adapter *adapter); | |||
352 | extern void e1000_power_up_phy(struct e1000_adapter *); | 354 | extern void e1000_power_up_phy(struct e1000_adapter *); |
353 | extern void e1000_set_ethtool_ops(struct net_device *netdev); | 355 | extern void e1000_set_ethtool_ops(struct net_device *netdev); |
354 | extern void e1000_check_options(struct e1000_adapter *adapter); | 356 | extern void e1000_check_options(struct e1000_adapter *adapter); |
357 | extern char *e1000_get_hw_dev_name(struct e1000_hw *hw); | ||
355 | 358 | ||
356 | #endif /* _E1000_H_ */ | 359 | #endif /* _E1000_H_ */ |