xref: /openbmc/u-boot/include/sandboxblockdev.h (revision e8f80a5a)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
2f4d8de48SHenrik Nordström /*
3f4d8de48SHenrik Nordström  * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net>
4f4d8de48SHenrik Nordström  */
5f4d8de48SHenrik Nordström 
6f4d8de48SHenrik Nordström #ifndef __SANDBOX_BLOCK_DEV__
7f4d8de48SHenrik Nordström #define __SANDBOX_BLOCK_DEV__
8f4d8de48SHenrik Nordström 
9f4d8de48SHenrik Nordström struct host_block_dev {
1040fd0508SSimon Glass #ifndef CONFIG_BLK
114101f687SSimon Glass 	struct blk_desc blk_dev;
1240fd0508SSimon Glass #endif
13f4d8de48SHenrik Nordström 	char *filename;
14f4d8de48SHenrik Nordström 	int fd;
15f4d8de48SHenrik Nordström };
16f4d8de48SHenrik Nordström 
17f4d8de48SHenrik Nordström int host_dev_bind(int dev, char *filename);
18f4d8de48SHenrik Nordström 
19f4d8de48SHenrik Nordström #endif
20