mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
blk: Introduce IF_TYPE_VIRTIO
This adds a new block interface type for VirtIO block devices. Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
c879eeb7aa
commit
4ad54ec4d5
@@ -150,6 +150,9 @@ void dev_print (struct blk_desc *dev_desc)
|
||||
dev_desc->revision,
|
||||
dev_desc->product);
|
||||
break;
|
||||
case IF_TYPE_VIRTIO:
|
||||
printf("%s VirtIO Block Device\n", dev_desc->vendor);
|
||||
break;
|
||||
case IF_TYPE_DOC:
|
||||
puts("device type DOC\n");
|
||||
return;
|
||||
@@ -281,6 +284,9 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc)
|
||||
case IF_TYPE_NVME:
|
||||
puts ("NVMe");
|
||||
break;
|
||||
case IF_TYPE_VIRTIO:
|
||||
puts("VirtIO");
|
||||
break;
|
||||
default:
|
||||
puts ("UNKNOWN");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user