ar71xx: ag71xx: store descriptor packet length mask in ag71xx struct
[openwrt/openwrt.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx.h
index b0df017571f23df4d3c75db47b8976b7ce13d24d..f6d85b908425f9591281b4e48961f307c6791b3f 100644 (file)
@@ -166,6 +166,7 @@ struct ag71xx {
        int                     duplex;
 
        unsigned int            max_frame_len;
        int                     duplex;
 
        unsigned int            max_frame_len;
+       unsigned int            desc_pktlen_mask;
        unsigned int            rx_buf_size;
 
        struct work_struct      restart_work;
        unsigned int            rx_buf_size;
 
        struct work_struct      restart_work;
@@ -198,11 +199,6 @@ static inline int ag71xx_desc_empty(struct ag71xx_desc *desc)
        return (desc->ctrl & DESC_EMPTY) != 0;
 }
 
        return (desc->ctrl & DESC_EMPTY) != 0;
 }
 
-static inline int ag71xx_desc_pktlen(struct ag71xx_desc *desc)
-{
-       return desc->ctrl & DESC_PKTLEN_M;
-}
-
 /* Register offsets */
 #define AG71XX_REG_MAC_CFG1    0x0000
 #define AG71XX_REG_MAC_CFG2    0x0004
 /* Register offsets */
 #define AG71XX_REG_MAC_CFG1    0x0000
 #define AG71XX_REG_MAC_CFG2    0x0004