summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/faraday/ftgmac100.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt2017-04-10 03:15:26 +0200
committerDavid S. Miller2017-04-10 22:03:57 +0200
commit52c0cae8746513e64198c56f0cd74eacaee21be1 (patch)
tree57736d59440fb41028dc877260ae72c6d1a70e85 /drivers/net/ethernet/faraday/ftgmac100.h
parentftgmac100: Add support for fragmented tx (diff)
downloadkernel-qcow2-linux-52c0cae8746513e64198c56f0cd74eacaee21be1.tar.gz
kernel-qcow2-linux-52c0cae8746513e64198c56f0cd74eacaee21be1.tar.xz
kernel-qcow2-linux-52c0cae8746513e64198c56f0cd74eacaee21be1.zip
ftgmac100: Remove tx descriptor accessors
Directly access the fields when needed. The accessors add clutter not clarity and in some cases cause unnecessary read-modify-write type access on the slow (uncached) descriptor memory. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftgmac100.h')
-rw-r--r--drivers/net/ethernet/faraday/ftgmac100.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.h b/drivers/net/ethernet/faraday/ftgmac100.h
index 9124785a4ab9..97912c456e80 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.h
+++ b/drivers/net/ethernet/faraday/ftgmac100.h
@@ -202,10 +202,10 @@
* Transmit descriptor, aligned to 16 bytes
*/
struct ftgmac100_txdes {
- unsigned int txdes0;
- unsigned int txdes1;
- unsigned int txdes2; /* not used by HW */
- unsigned int txdes3; /* TXBUF_BADR */
+ __le32 txdes0; /* Control & status bits */
+ __le32 txdes1; /* Irq, checksum and vlan control */
+ __le32 txdes2; /* Reserved */
+ __le32 txdes3; /* DMA buffer address */
} __attribute__ ((aligned(16)));
#define FTGMAC100_TXDES0_TXBUF_SIZE(x) ((x) & 0x3fff)