sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces
Ask the OS for each of its interfaces and for each one, bind a U-Boot device and then probe it. This will allocate the priv data structure that is then populated. Signed-off-by:Joe Hershberger <joe.hershberger@ni.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
Showing
- arch/sandbox/cpu/eth-raw-os.c 10 additions, 0 deletionsarch/sandbox/cpu/eth-raw-os.c
- arch/sandbox/dts/sandbox.dts 5 additions, 13 deletionsarch/sandbox/dts/sandbox.dts
- arch/sandbox/dts/sandbox64.dts 5 additions, 13 deletionsarch/sandbox/dts/sandbox64.dts
- arch/sandbox/include/asm/eth-raw-os.h 11 additions, 0 deletionsarch/sandbox/include/asm/eth-raw-os.h
- drivers/net/Makefile 1 addition, 0 deletionsdrivers/net/Makefile
- drivers/net/sandbox-raw-bus.c 66 additions, 0 deletionsdrivers/net/sandbox-raw-bus.c
Loading
Please register or sign in to comment