]> Git Repo - J-u-boot.git/blame - include/sandboxblockdev.h
stm32mp: cmd_stm32key: lock of PKH OTP after fuse
[J-u-boot.git] / include / sandboxblockdev.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f4d8de48
HN
2/*
3 * Copyright (c) 2013, Henrik Nordstrom <[email protected]>
f4d8de48
HN
4 */
5
6#ifndef __SANDBOX_BLOCK_DEV__
7#define __SANDBOX_BLOCK_DEV__
8
9struct host_block_dev {
40fd0508 10#ifndef CONFIG_BLK
4101f687 11 struct blk_desc blk_dev;
40fd0508 12#endif
f4d8de48
HN
13 char *filename;
14 int fd;
15};
16
1758551e
SG
17/**
18 * host_dev_bind() - Bind or unbind a device
19 *
20 * @dev: Device number (0=first slot)
21 * @filename: Host filename to use, or NULL to unbind
22 * @removable: true if the block device should mark itself as removable
23 */
24int host_dev_bind(int dev, char *filename, bool removable);
f4d8de48
HN
25
26#endif
This page took 0.560663 seconds and 4 git commands to generate.