aboutsummaryrefslogtreecommitdiff
path: root/include/scsi_emul.h
diff options
context:
space:
mode:
authorSimon Glass2022-10-20 18:22:54 -0600
committerTom Rini2022-10-31 11:02:44 -0400
commit606b926f9d76eaab11be2d95cfd7734644e1627c (patch)
tree513867ec3914aeeee981ac980eec71edb51c47d8 /include/scsi_emul.h
parentb55afa0c0e6dcb185ee527a6c37941bfde04ffd1 (diff)
dm: blk: Add udevice functions
At present we have functions called blk_dread(), etc., which take a struct blk_desc * to refer to the block device. Add some functions which use udevice instead, since this is more in keeping with how driver model is supposed to work. Update one of the tests to use this. Note that it would be nice to update the functions in disk-uclass.c to use these new functions. However they are not quite the same. For example, disk_blk_read() adds the partition offset to 'start' when calling the cache read/fill functions, but does not with part_blk_read(), which does the addition itself. So as designed the code is duplicated. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/scsi_emul.h')
0 files changed, 0 insertions, 0 deletions