]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/stmicro/stmmac/common.h
net: stmmac: add support for hash table size 128/256 in dwmac4
[linux.git] / drivers / net / ethernet / stmicro / stmmac / common.h
index 2403a65167b27ea429656b092cc6ee10874be43b..ed872eed1cab5d12e89cf6e67947dc96ee695e8a 100644 (file)
@@ -252,6 +252,7 @@ struct stmmac_safety_stats {
 #define STMMAC_MAX_COAL_TX_TICK        100000
 #define STMMAC_TX_MAX_FRAMES   256
 #define STMMAC_TX_FRAMES       1
+#define STMMAC_RX_FRAMES       25
 
 /* Packets types */
 enum packets_types {
@@ -325,6 +326,7 @@ struct dma_features {
        /* 802.3az - Energy-Efficient Ethernet (EEE) */
        unsigned int eee;
        unsigned int av;
+       unsigned int hash_tb_sz;
        unsigned int tsoen;
        /* TX and RX csum */
        unsigned int tx_coe;
@@ -423,9 +425,9 @@ struct mac_device_info {
        struct mii_regs mii;    /* MII register Addresses */
        struct mac_link link;
        void __iomem *pcsr;     /* vpointer to device CSRs */
-       int multicast_filter_bins;
-       int unicast_filter_entries;
-       int mcast_bits_log2;
+       unsigned int multicast_filter_bins;
+       unsigned int unicast_filter_entries;
+       unsigned int mcast_bits_log2;
        unsigned int rx_csum;
        unsigned int pcs;
        unsigned int pmt;