atheros: instead of resetting the ethernet core on ifup, only upload the new mac...
[openwrt/svn-archive/archive.git] / target / linux / atheros / files / drivers / net / ar2313 / ar2313.h
index c0b3a4f765a73adc23c2d1725862bec501e369db..9fa49caa79fb605ac1e7d17a98bffede98a87ff9 100644 (file)
@@ -64,7 +64,7 @@ typedef struct {
 } ETHERNET_STRUCT;
 
 /********************************************************************
- * Interrupt controller 
+ * Interrupt controller
  ********************************************************************/
 
 typedef struct {
@@ -118,7 +118,7 @@ struct ar2313_private {
 
        spinlock_t lock;                        /* Serialise access to device */
 
-       /* 
+       /*
         * RX and TX descriptors, must be adjacent
         */
        ar2313_descr_t *rx_ring;
@@ -128,24 +128,23 @@ struct ar2313_private {
        struct sk_buff **rx_skb;
        struct sk_buff **tx_skb;
 
-       /* 
+       /*
         * RX elements
         */
        u32 rx_skbprd;
        u32 cur_rx;
 
-       /* 
+       /*
         * TX elements
         */
        u32 tx_prd;
        u32 tx_csm;
 
-       /* 
+       /*
         * Misc elements
         */
        int board_idx;
        char name[48];
-       struct net_device_stats stats;
        struct {
                u32 address;
                u32 length;
@@ -161,6 +160,10 @@ struct ar2313_private {
 
        struct tasklet_struct rx_tasklet;
        int unloading;
+
+       struct phy_device *phy_dev;
+       struct mii_bus mii_bus;
+       int oldduplex;
 };
 
 
@@ -189,5 +192,4 @@ static void ar2313_init_cleanup(struct net_device *dev);
 static int ar2313_setup_timer(struct net_device *dev);
 static void ar2313_link_timer_fn(unsigned long data);
 static void ar2313_check_link(struct net_device *dev);
-static struct net_device_stats *ar2313_get_stats(struct net_device *dev);
 #endif                                                 /* _AR2313_H_ */