aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass2022-10-29 19:47:17 -0600
committerSimon Glass2022-11-07 16:24:30 -0700
commit952018117ab4daff5fb4500d5ce0143678473ca4 (patch)
treea51b49419dc28e52780cb5a49e5de89e42aa7594 /include
parent10aae1145c910857053343a2f3e841b38eb77bd0 (diff)
dm: sandbox: Switch over to using the new host uclass
Update the sandbox implementation to use UCLASS_HOST and adjust all the pieces to continue to work: - Update the 'host' command to use the new API - Replace various uses of UCLASS_ROOT with UCLASS_HOST - Disable test_eficonfig since it doesn't work (this should have a unit test to allow this to be debugged) - Update the blk test to use the new API - Drop the old header file Unfortunately it does not seem to be possible to split this change up further. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/sandboxblockdev.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/sandboxblockdev.h b/include/sandboxblockdev.h
deleted file mode 100644
index 0528f891b12..00000000000
--- a/include/sandboxblockdev.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (c) 2013, Henrik Nordstrom <henrik@henriknordstrom.net>
- */
-
-#ifndef __SANDBOX_BLOCK_DEV__
-#define __SANDBOX_BLOCK_DEV__
-
-/* Maximum number of host devices - see drivers/block/sandbox.c */
-#define SANDBOX_HOST_MAX_DEVICES 4
-
-struct host_block_dev {
- char *filename;
- int fd;
-};
-
-/**
- * host_dev_bind() - Bind or unbind a device
- *
- * @dev: Device number (0=first slot)
- * @filename: Host filename to use, or NULL to unbind
- * @removable: true if the block device should mark itself as removable
- */
-int host_dev_bind(int dev, char *filename, bool removable);
-
-int host_get_dev_err(int dev, struct blk_desc **blk_devp);
-
-#endif