aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2018-09-26 16:48:56 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2018-10-10 12:28:57 -0500
commit76a503439e38be9d4fe365bdf87a6d0e74ea41c9 (patch)
tree09b4d6d849976b0f79e8de443990d1549c31d7ab /drivers/net
parentc7eb733d606667508b69ee922e9738d55259304e (diff)
downloadu-boot-76a503439e38be9d4fe365bdf87a6d0e74ea41c9.zip
u-boot-76a503439e38be9d4fe365bdf87a6d0e74ea41c9.tar.gz
u-boot-76a503439e38be9d4fe365bdf87a6d0e74ea41c9.tar.bz2
net: sandbox: Share the priv structure with tests
If tests want to implement tx handlers, they will likely need access to the details in the priv structure. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/sandbox.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c
index db461b8..6f0fe0c 100644
--- a/drivers/net/sandbox.c
+++ b/drivers/net/sandbox.c
@@ -15,25 +15,6 @@
DECLARE_GLOBAL_DATA_PTR;
-/**
- * struct eth_sandbox_priv - memory for sandbox mock driver
- *
- * fake_host_hwaddr: MAC address of mocked machine
- * fake_host_ipaddr: IP address of mocked machine
- * disabled: Will not respond
- * recv_packet_buffer: buffer of the packet returned as received
- * recv_packet_length: length of the packet returned as received
- * tx_handler - function to generate responses to sent packets
- */
-struct eth_sandbox_priv {
- uchar fake_host_hwaddr[ARP_HLEN];
- struct in_addr fake_host_ipaddr;
- bool disabled;
- uchar *recv_packet_buffer;
- int recv_packet_length;
- sandbox_eth_tx_hand_f *tx_handler;
-};
-
static bool skip_timeout;
/*