diff options
Diffstat (limited to 'include/blk.h')
-rw-r--r-- | include/blk.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/blk.h b/include/blk.h index 6af219681c..d0c033aece 100644 --- a/include/blk.h +++ b/include/blk.h | |||
@@ -33,6 +33,7 @@ enum if_type { | |||
33 | IF_TYPE_HOST, | 33 | IF_TYPE_HOST, |
34 | IF_TYPE_NVME, | 34 | IF_TYPE_NVME, |
35 | IF_TYPE_EFI, | 35 | IF_TYPE_EFI, |
36 | IF_TYPE_VIRTIO, | ||
36 | 37 | ||
37 | IF_TYPE_COUNT, /* Number of interface types */ | 38 | IF_TYPE_COUNT, /* Number of interface types */ |
38 | }; | 39 | }; |
@@ -357,16 +358,6 @@ int blk_create_devicef(struct udevice *parent, const char *drv_name, | |||
357 | lbaint_t lba, struct udevice **devp); | 358 | lbaint_t lba, struct udevice **devp); |
358 | 359 | ||
359 | /** | 360 | /** |
360 | * blk_prepare_device() - Prepare a block device for use | ||
361 | * | ||
362 | * This reads partition information from the device if supported. | ||
363 | * | ||
364 | * @dev: Device to prepare | ||
365 | * @return 0 if ok, -ve on error | ||
366 | */ | ||
367 | int blk_prepare_device(struct udevice *dev); | ||
368 | |||
369 | /** | ||
370 | * blk_unbind_all() - Unbind all device of the given interface type | 361 | * blk_unbind_all() - Unbind all device of the given interface type |
371 | * | 362 | * |
372 | * The devices are removed and then unbound. | 363 | * The devices are removed and then unbound. |
@@ -389,6 +380,17 @@ int blk_unbind_all(int if_type); | |||
389 | int blk_find_max_devnum(enum if_type if_type); | 380 | int blk_find_max_devnum(enum if_type if_type); |
390 | 381 | ||
391 | /** | 382 | /** |
383 | * blk_next_free_devnum() - get the next device number for an interface type | ||
384 | * | ||
385 | * Finds the next number that is safe to use for a newly allocated device for | ||
386 | * an interface type @if_type. | ||
387 | * | ||
388 | * @if_type: Interface type to scan | ||
389 | * @return next device number safe to use, or -ve on error | ||
390 | */ | ||
391 | int blk_next_free_devnum(enum if_type if_type); | ||
392 | |||
393 | /** | ||
392 | * blk_select_hwpart() - select a hardware partition | 394 | * blk_select_hwpart() - select a hardware partition |
393 | * | 395 | * |
394 | * Select a hardware partition if the device supports it (typically MMC does) | 396 | * Select a hardware partition if the device supports it (typically MMC does) |