diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-01-12 06:41:19 (GMT) |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2016-01-28 18:22:55 (GMT) |
commit | 362b123f473cbc72d43720f9245c68d174439310 (patch) | |
tree | 50dcbdcd88f4006179fd6f7a848975eccbd7f86d /include | |
parent | 9872b736f957585c6494e727634fe6ed837bcd86 (diff) | |
download | u-boot-fsl-qoriq-362b123f473cbc72d43720f9245c68d174439310.tar.xz |
net: tsec: Move rx_idx and tx_idx to struct tsec_private
At present rx_idx and tx_idx are declared as static variables
in the driver codes. To support multiple interfaces, move it to
struct tsec_private.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tsec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tsec.h b/include/tsec.h index f2aa11a..023f095 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -396,6 +396,8 @@ struct tsec_private { uint phyaddr; char mii_devname[16]; u32 flags; + uint rx_idx; /* index of the current RX buffer */ + uint tx_idx; /* index of the current TX buffer */ }; struct tsec_info_struct { |