aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/skge.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/skge.h')
-rw-r--r--drivers/net/skge.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/skge.h b/drivers/net/skge.h
index 2669b80b2de8..e57a535c5c47 100644
--- a/drivers/net/skge.h
+++ b/drivers/net/skge.h
@@ -2793,11 +2793,12 @@ struct skge_hw {
2793 u32 intr_mask; 2793 u32 intr_mask;
2794 struct net_device *dev[2]; 2794 struct net_device *dev[2];
2795 2795
2796 u8 mac_cfg;
2797 u8 chip_id; 2796 u8 chip_id;
2797 u8 chip_rev;
2798 u8 phy_type; 2798 u8 phy_type;
2799 u8 pmd_type; 2799 u8 pmd_type;
2800 u16 phy_addr; 2800 u16 phy_addr;
2801 u8 ports;
2801 2802
2802 u32 ram_size; 2803 u32 ram_size;
2803 u32 ram_offset; 2804 u32 ram_offset;
@@ -2806,15 +2807,6 @@ struct skge_hw {
2806 spinlock_t phy_lock; 2807 spinlock_t phy_lock;
2807}; 2808};
2808 2809
2809static inline int isdualport(const struct skge_hw *hw)
2810{
2811 return !(hw->mac_cfg & CFG_SNG_MAC);
2812}
2813
2814static inline u8 chip_rev(const struct skge_hw *hw)
2815{
2816 return (hw->mac_cfg & CFG_CHIP_R_MSK) >> 4;
2817}
2818 2810
2819static inline int iscopper(const struct skge_hw *hw) 2811static inline int iscopper(const struct skge_hw *hw)
2820{ 2812{