diff options
| author | Varadarajan Narayanan <[email protected]> | 2025-05-13 14:47:07 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-05-29 18:35:49 -0600 |
| commit | 9a2010941f56929cb28432cc3f4b37a944f55b8e (patch) | |
| tree | e3a4657ce0ac193329eebd2185181e4c01a44e8e /include | |
| parent | 43fd4bcefd4ea5e586e201a0908018d1e8395c82 (diff) | |
scsi: Implement get_blk() function
Add a function to obtain the block device for SCSI.
Signed-off-by: Varadarajan Narayanan <[email protected]>
Acked-by: Casey Connolly <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/scsi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/scsi.h b/include/scsi.h index ab53b47b58f..8d6c5116419 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -351,6 +351,16 @@ int scsi_scan(bool verbose); */ int scsi_scan_dev(struct udevice *dev, bool verbose); +/** + * scsi_get_blk_by_uuid() - Provides SCSI partition information. + * + * @uuid: UUID of the partition for fetching its info + * @blk_desc_ptr: Provides the blk descriptor + * @part_info_ptr: Provides partition info + */ +int scsi_get_blk_by_uuid(const char *uuid, struct blk_desc **blk_desc_ptr, + struct disk_partition *part_info_ptr); + #define SCSI_IDENTIFY 0xC0 /* not used */ /* Hardware errors */ |
