diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/stmmac.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index e5292828b684..4aef9baff12b 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h | |||
@@ -60,6 +60,18 @@ | |||
60 | * 1110 clk_csr_i/16 | 60 | * 1110 clk_csr_i/16 |
61 | * 1111 clk_csr_i/18 */ | 61 | * 1111 clk_csr_i/18 */ |
62 | 62 | ||
63 | /* AXI DMA Burst length suported */ | ||
64 | #define DMA_AXI_BLEN_4 (1 << 1) | ||
65 | #define DMA_AXI_BLEN_8 (1 << 2) | ||
66 | #define DMA_AXI_BLEN_16 (1 << 3) | ||
67 | #define DMA_AXI_BLEN_32 (1 << 4) | ||
68 | #define DMA_AXI_BLEN_64 (1 << 5) | ||
69 | #define DMA_AXI_BLEN_128 (1 << 6) | ||
70 | #define DMA_AXI_BLEN_256 (1 << 7) | ||
71 | #define DMA_AXI_BLEN_ALL (DMA_AXI_BLEN_4 | DMA_AXI_BLEN_8 | DMA_AXI_BLEN_16 \ | ||
72 | | DMA_AXI_BLEN_32 | DMA_AXI_BLEN_64 \ | ||
73 | | DMA_AXI_BLEN_128 | DMA_AXI_BLEN_256) | ||
74 | |||
63 | /* Platfrom data for platform device structure's platform_data field */ | 75 | /* Platfrom data for platform device structure's platform_data field */ |
64 | 76 | ||
65 | struct stmmac_mdio_bus_data { | 77 | struct stmmac_mdio_bus_data { |
@@ -70,13 +82,19 @@ struct stmmac_mdio_bus_data { | |||
70 | int probed_phy_irq; | 82 | int probed_phy_irq; |
71 | }; | 83 | }; |
72 | 84 | ||
85 | struct stmmac_dma_cfg { | ||
86 | int pbl; | ||
87 | int fixed_burst; | ||
88 | int burst_len; | ||
89 | }; | ||
90 | |||
73 | struct plat_stmmacenet_data { | 91 | struct plat_stmmacenet_data { |
74 | char *phy_bus_name; | 92 | char *phy_bus_name; |
75 | int bus_id; | 93 | int bus_id; |
76 | int phy_addr; | 94 | int phy_addr; |
77 | int interface; | 95 | int interface; |
78 | struct stmmac_mdio_bus_data *mdio_bus_data; | 96 | struct stmmac_mdio_bus_data *mdio_bus_data; |
79 | int pbl; | 97 | struct stmmac_dma_cfg *dma_cfg; |
80 | int clk_csr; | 98 | int clk_csr; |
81 | int has_gmac; | 99 | int has_gmac; |
82 | int enh_desc; | 100 | int enh_desc; |