mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Joe Hershberger
parent
9872b736f9
commit
362b123f47
@@ -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 {
|
||||
|
Reference in New Issue
Block a user