mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: sandbox: Add driver-model block-device support for sandbox
Update the host driver to support driver model for block devices. A future commit will remove the old code, but for now it is useful to be able to use it both with and without CONFIG_BLK. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
7ded959e4d
commit
40fd050890
3 changed files with 127 additions and 2 deletions
|
@ -8,7 +8,9 @@
|
|||
#define __SANDBOX_BLOCK_DEV__
|
||||
|
||||
struct host_block_dev {
|
||||
#ifndef CONFIG_BLK
|
||||
struct blk_desc blk_dev;
|
||||
#endif
|
||||
char *filename;
|
||||
int fd;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue