X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/17c7b6c3fdc48301e50d22cc6138ede16bd1be24..697a309ede936843ca8e1510827f0e7544237873:/target/linux/atheros/files/drivers/net/ar2313/ar2313.h diff --git a/target/linux/atheros/files/drivers/net/ar2313/ar2313.h b/target/linux/atheros/files/drivers/net/ar2313/ar2313.h index c0b3a4f76..9fa49caa7 100644 --- a/target/linux/atheros/files/drivers/net/ar2313/ar2313.h +++ b/target/linux/atheros/files/drivers/net/ar2313/ar2313.h @@ -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_ */