diff options
-rw-r--r-- | Documentation/networking/stmmac.txt | 3 | ||||
-rw-r--r-- | include/linux/stmmac.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt index d0aeeadd264b..61f40a3fa7ea 100644 --- a/Documentation/networking/stmmac.txt +++ b/Documentation/networking/stmmac.txt | |||
@@ -116,6 +116,7 @@ and detailed below as well: | |||
116 | int has_gmac; | 116 | int has_gmac; |
117 | int enh_desc; | 117 | int enh_desc; |
118 | int tx_coe; | 118 | int tx_coe; |
119 | int rx_coe; | ||
119 | int bugged_jumbo; | 120 | int bugged_jumbo; |
120 | int pmt; | 121 | int pmt; |
121 | int force_sf_dma_mode; | 122 | int force_sf_dma_mode; |
@@ -140,6 +141,8 @@ Where: | |||
140 | o has_gmac: uses the GMAC core. | 141 | o has_gmac: uses the GMAC core. |
141 | o enh_desc: if sets the MAC will use the enhanced descriptor structure. | 142 | o enh_desc: if sets the MAC will use the enhanced descriptor structure. |
142 | o tx_coe: core is able to perform the tx csum in HW. | 143 | o tx_coe: core is able to perform the tx csum in HW. |
144 | o rx_coe: the supports three check sum offloading engine types: | ||
145 | type_1, type_2 (full csum) and no RX coe. | ||
143 | o bugged_jumbo: some HWs are not able to perform the csum in HW for | 146 | o bugged_jumbo: some HWs are not able to perform the csum in HW for |
144 | over-sized frames due to limited buffer sizes. | 147 | over-sized frames due to limited buffer sizes. |
145 | Setting this flag the csum will be done in SW on | 148 | Setting this flag the csum will be done in SW on |
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 172b5e15df2e..a9b4d6cb96e9 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h | |||
@@ -28,6 +28,10 @@ | |||
28 | 28 | ||
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | 30 | ||
31 | #define STMMAC_RX_COE_NONE 0 | ||
32 | #define STMMAC_RX_COE_TYPE1 1 | ||
33 | #define STMMAC_RX_COE_TYPE2 2 | ||
34 | |||
31 | /* Platfrom data for platform device structure's platform_data field */ | 35 | /* Platfrom data for platform device structure's platform_data field */ |
32 | 36 | ||
33 | struct stmmac_mdio_bus_data { | 37 | struct stmmac_mdio_bus_data { |
@@ -49,6 +53,7 @@ struct plat_stmmacenet_data { | |||
49 | int has_gmac; | 53 | int has_gmac; |
50 | int enh_desc; | 54 | int enh_desc; |
51 | int tx_coe; | 55 | int tx_coe; |
56 | int rx_coe; | ||
52 | int bugged_jumbo; | 57 | int bugged_jumbo; |
53 | int pmt; | 58 | int pmt; |
54 | int force_sf_dma_mode; | 59 | int force_sf_dma_mode; |