diff options
-rw-r--r-- | drivers/net/gianfar.c | 14 | ||||
-rw-r--r-- | drivers/net/gianfar.h | 10 |
2 files changed, 13 insertions, 11 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 086d40dd526d..197b358e6361 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -327,7 +327,7 @@ cleanup: | |||
327 | static void gfar_init_tx_rx_base(struct gfar_private *priv) | 327 | static void gfar_init_tx_rx_base(struct gfar_private *priv) |
328 | { | 328 | { |
329 | struct gfar __iomem *regs = priv->gfargrp[0].regs; | 329 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
330 | u32 *baddr; | 330 | u32 __iomem *baddr; |
331 | int i; | 331 | int i; |
332 | 332 | ||
333 | baddr = ®s->tbase0; | 333 | baddr = ®s->tbase0; |
@@ -770,7 +770,8 @@ static unsigned int reverse_bitmap(unsigned int bit_map, unsigned int max_qs) | |||
770 | return new_bit_map; | 770 | return new_bit_map; |
771 | } | 771 | } |
772 | 772 | ||
773 | u32 cluster_entry_per_class(struct gfar_private *priv, u32 rqfar, u32 class) | 773 | static u32 cluster_entry_per_class(struct gfar_private *priv, u32 rqfar, |
774 | u32 class) | ||
774 | { | 775 | { |
775 | u32 rqfpr = FPR_FILER_MASK; | 776 | u32 rqfpr = FPR_FILER_MASK; |
776 | u32 rqfcr = 0x0; | 777 | u32 rqfcr = 0x0; |
@@ -849,7 +850,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
849 | int len_devname; | 850 | int len_devname; |
850 | u32 rstat = 0, tstat = 0, rqueue = 0, tqueue = 0; | 851 | u32 rstat = 0, tstat = 0, rqueue = 0, tqueue = 0; |
851 | u32 isrg = 0; | 852 | u32 isrg = 0; |
852 | u32 *baddr; | 853 | u32 __iomem *baddr; |
853 | 854 | ||
854 | err = gfar_of_init(ofdev, &dev); | 855 | err = gfar_of_init(ofdev, &dev); |
855 | 856 | ||
@@ -1658,10 +1659,10 @@ void gfar_start(struct net_device *dev) | |||
1658 | } | 1659 | } |
1659 | 1660 | ||
1660 | void gfar_configure_coalescing(struct gfar_private *priv, | 1661 | void gfar_configure_coalescing(struct gfar_private *priv, |
1661 | unsigned int tx_mask, unsigned int rx_mask) | 1662 | unsigned long tx_mask, unsigned long rx_mask) |
1662 | { | 1663 | { |
1663 | struct gfar __iomem *regs = priv->gfargrp[0].regs; | 1664 | struct gfar __iomem *regs = priv->gfargrp[0].regs; |
1664 | u32 *baddr; | 1665 | u32 __iomem *baddr; |
1665 | int i = 0; | 1666 | int i = 0; |
1666 | 1667 | ||
1667 | /* Backward compatible case ---- even if we enable | 1668 | /* Backward compatible case ---- even if we enable |
@@ -2546,7 +2547,8 @@ static int gfar_poll(struct napi_struct *napi, int budget) | |||
2546 | struct gfar_priv_tx_q *tx_queue = NULL; | 2547 | struct gfar_priv_tx_q *tx_queue = NULL; |
2547 | struct gfar_priv_rx_q *rx_queue = NULL; | 2548 | struct gfar_priv_rx_q *rx_queue = NULL; |
2548 | int rx_cleaned = 0, budget_per_queue = 0, rx_cleaned_per_queue = 0; | 2549 | int rx_cleaned = 0, budget_per_queue = 0, rx_cleaned_per_queue = 0; |
2549 | int tx_cleaned = 0, i, left_over_budget = budget, serviced_queues = 0; | 2550 | int tx_cleaned = 0, i, left_over_budget = budget; |
2551 | unsigned long serviced_queues = 0; | ||
2550 | int num_queues = 0; | 2552 | int num_queues = 0; |
2551 | unsigned long flags; | 2553 | unsigned long flags; |
2552 | 2554 | ||
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 44b63daa7ff3..cbb451011cb5 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -986,10 +986,10 @@ struct gfar_priv_grp { | |||
986 | struct gfar_private *priv; | 986 | struct gfar_private *priv; |
987 | struct gfar __iomem *regs; | 987 | struct gfar __iomem *regs; |
988 | unsigned int grp_id; | 988 | unsigned int grp_id; |
989 | unsigned int rx_bit_map; | 989 | unsigned long rx_bit_map; |
990 | unsigned int tx_bit_map; | 990 | unsigned long tx_bit_map; |
991 | unsigned int num_tx_queues; | 991 | unsigned long num_tx_queues; |
992 | unsigned int num_rx_queues; | 992 | unsigned long num_rx_queues; |
993 | unsigned int rstat; | 993 | unsigned int rstat; |
994 | unsigned int tstat; | 994 | unsigned int tstat; |
995 | unsigned int imask; | 995 | unsigned int imask; |
@@ -1118,7 +1118,7 @@ extern void gfar_halt(struct net_device *dev); | |||
1118 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, | 1118 | extern void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, |
1119 | int enable, u32 regnum, u32 read); | 1119 | int enable, u32 regnum, u32 read); |
1120 | extern void gfar_configure_coalescing(struct gfar_private *priv, | 1120 | extern void gfar_configure_coalescing(struct gfar_private *priv, |
1121 | unsigned int tx_mask, unsigned int rx_mask); | 1121 | unsigned long tx_mask, unsigned long rx_mask); |
1122 | void gfar_init_sysfs(struct net_device *dev); | 1122 | void gfar_init_sysfs(struct net_device *dev); |
1123 | 1123 | ||
1124 | extern const struct ethtool_ops gfar_ethtool_ops; | 1124 | extern const struct ethtool_ops gfar_ethtool_ops; |