]> bbs.cooldavid.org Git - jme.git/blobdiff - jme.h
AudoSpeedDown
[jme.git] / jme.h
diff --git a/jme.h b/jme.h
index 3a0e657db458b56733431b07b4f1fefe2784edd0..1fabbce4d33f5b816d12aac305a91ec200f74e16 100644 (file)
--- a/jme.h
+++ b/jme.h
@@ -26,7 +26,7 @@
 #define __JME_H_INCLUDED__
 
 #define DRV_NAME       "jme"
-#define DRV_VERSION    "1.0.7-jmmod"
+#define DRV_VERSION    "1.0.8-jmmod"
 #define PFX            DRV_NAME ": "
 
 #define PCI_DEVICE_ID_JMICRON_JMC250   0x0250
@@ -582,6 +582,13 @@ struct jme_adapter {
        int                     (*jme_vlan_rx)(struct sk_buff *skb,
                                          struct vlan_group *grp,
                                          unsigned short vlan_tag);
+
+       u8                                              flag_run_asd;                                           /*      Is Auto Speed Down polling function running*/
+       u32                                             mc_count;                                                       /*      second counter as RJ45 is attached      */
+       u8                                              flag_media_connected;                           /*      Because PHY 0x13 is read and clear, we need to record it */
+       struct timer_list               asd_timer;
+               
+               
        DECLARE_NAPI_STRUCT
        DECLARE_NET_DEVICE_STATS
 };
@@ -1031,6 +1038,13 @@ enum jme_phy_pwr_bit_masks {
                                       * 1: xtl_out = phy_giga.PD_OSC
                                       */
 };
+/*
+ * False carrier Counter
+ */
+ enum jme_phy_an_status {
+       PHY_SPEC_STATUS_AN_COMPLETE             = 0x00000800,
+       PHY_SPEC_STATUS_AN_FAIL                 = 0x00008000,
+};
 
 /*
  * Giga PHY Status Registers
@@ -1398,6 +1412,7 @@ static inline int new_phy_power_ctrl(u8 chip_main_rev)
  */
 static int jme_set_settings(struct net_device *netdev,
                                struct ethtool_cmd *ecmd);
+static void jme_set_unicastaddr(struct net_device *netdev);
 static void jme_set_multi(struct net_device *netdev);
 
 #endif