From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 27 Sep 2018 14:52:06 +0800 Subject: [U-Boot] [PATCH v2 07/10] net: sandbox: Add a priv ptr for tests to use In-Reply-To: <20180926214902.38803-8-joe.hershberger@ni.com> References: <20180926214902.38803-1-joe.hershberger@ni.com> <20180926214902.38803-8-joe.hershberger@ni.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Sep 27, 2018 at 5:49 AM Joe Hershberger wrote: > > Tests need to be able to pass their "unit test state" to the handlers > where asserts are evaluated. Add a function that allows the tests to set > this private data on the sandbox eth device. > > Signed-off-by: Joe Hershberger > > --- > > Changes in v2: > - add missing commit message > - rename local "uc_priv" variable to "dev_priv" to not be misleading. > > arch/sandbox/include/asm/eth.h | 9 +++++++++ > drivers/net/sandbox.c | 20 ++++++++++++++++++++ > 2 files changed, 29 insertions(+) > Reviewed-by: Bin Meng