blob: 5174f45f5e282ed02a0899ceeda0d7d02fdf1dd4 [file] [log] [blame]
Henrik Nordströmf4d8de42013-11-10 10:26:56 -07001/*
2 * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __SANDBOX_BLOCK_DEV__
8#define __SANDBOX_BLOCK_DEV__
9
10struct host_block_dev {
Simon Glass40fd0502016-02-29 15:25:57 -070011#ifndef CONFIG_BLK
Simon Glass4101f682016-02-29 15:25:34 -070012 struct blk_desc blk_dev;
Simon Glass40fd0502016-02-29 15:25:57 -070013#endif
Henrik Nordströmf4d8de42013-11-10 10:26:56 -070014 char *filename;
15 int fd;
16};
17
18int host_dev_bind(int dev, char *filename);
19
20#endif