diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-10-15 02:21:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-14 09:16:27 -0800 |
commit | 4ad54ec4d5c98a297f8df2fe9a630a534557f717 (patch) | |
tree | 757d0192d9190c05e0417d4b3ee66b96cdb44734 /disk | |
parent | c879eeb7aa95d753d4d9e39f43004943ed9d93b7 (diff) | |
download | u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.tar.gz u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.tar.bz2 u-boot-4ad54ec4d5c98a297f8df2fe9a630a534557f717.zip |
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>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c index 9e457a6e72..f30f9e9187 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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; |