--- zzzz-none-000/linux-3.10.107/include/linux/stmmac.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/stmmac.h 2021-02-04 17:41:59.000000000 +0000 @@ -73,6 +73,9 @@ | DMA_AXI_BLEN_32 | DMA_AXI_BLEN_64 \ | DMA_AXI_BLEN_128 | DMA_AXI_BLEN_256) +#define DMA_AXI_RD_OSR_LMT_SHIFT 16 +#define DMA_AXI_WR_OSR_LMT_SHIFT 20 + /* Platfrom data for platform device structure's platform_data field */ struct stmmac_mdio_bus_data { @@ -80,10 +83,15 @@ unsigned int phy_mask; int *irqs; int probed_phy_irq; +#ifdef CONFIG_OF + int reset_gpio, active_low; + u32 delays[3]; +#endif }; struct stmmac_dma_cfg { int pbl; + int aal; int fixed_burst; int mixed_burst; int burst_len; @@ -95,6 +103,7 @@ int phy_addr; int interface; struct stmmac_mdio_bus_data *mdio_bus_data; + struct device_node *phy_node; struct stmmac_dma_cfg *dma_cfg; int clk_csr; int has_gmac; @@ -104,13 +113,18 @@ int bugged_jumbo; int pmt; int force_sf_dma_mode; + int force_thresh_dma_mode; int riwt_off; + int max_speed; + int maxmtu; + int multicast_filter_bins; + int unicast_filter_entries; + int tx_fifo_size; + int rx_fifo_size; void (*fix_mac_speed)(void *priv, unsigned int speed); void (*bus_setup)(void __iomem *ioaddr); - int (*init)(struct platform_device *pdev); - void (*exit)(struct platform_device *pdev); - void *custom_cfg; - void *custom_data; + int (*init)(struct platform_device *pdev, void *priv); + void (*exit)(struct platform_device *pdev, void *priv); void *bsp_priv; }; #endif