summaryrefslogtreecommitdiff
path: root/include/tsec.h
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-11 22:41:19 -0800
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:22:55 -0600
commit362b123f473cbc72d43720f9245c68d174439310 (patch)
tree50dcbdcd88f4006179fd6f7a848975eccbd7f86d /include/tsec.h
parent9872b736f957585c6494e727634fe6ed837bcd86 (diff)
downloadu-boot-imx-362b123f473cbc72d43720f9245c68d174439310.zip
u-boot-imx-362b123f473cbc72d43720f9245c68d174439310.tar.gz
u-boot-imx-362b123f473cbc72d43720f9245c68d174439310.tar.bz2
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/tsec.h')
-rw-r--r--include/tsec.h2
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 {