]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mvpp2: introduce an intermediate union for the TX/RX descriptors
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 15 Feb 2017 15:25:53 +0000 (16:25 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:40:44 +0000 (07:40 +0200)
commit9a6db0bb064cf513a8f523fd0a51265e8bd907bf
tree9ff546dd0b12d592d9086ea04eadc00fa3049b3c
parent16a9898d80d3a3975034126aef8b38611a8ddf3b
net: mvpp2: introduce an intermediate union for the TX/RX descriptors

Since the format of the HW descriptors is different between PPv2.1 and
PPv2.2, this commit introduces an intermediate union, with for now
only the PPv2.1 descriptors. The bulk of the driver code only
manipulates opaque mvpp2_tx_desc and mvpp2_rx_desc pointers, and the
descriptors can only be accessed and modified through the accessor
functions. A follow-up commit will add the descriptor definitions for
PPv2.2.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c