|
@@ -23,6 +23,7 @@ static const char *if_typename_str[IF_TYPE_COUNT] = {
|
|
[IF_TYPE_HOST] = "host",
|
|
[IF_TYPE_HOST] = "host",
|
|
[IF_TYPE_NVME] = "nvme",
|
|
[IF_TYPE_NVME] = "nvme",
|
|
[IF_TYPE_EFI] = "efi",
|
|
[IF_TYPE_EFI] = "efi",
|
|
|
|
+ [IF_TYPE_VIRTIO] = "virtio",
|
|
};
|
|
};
|
|
|
|
|
|
static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
|
|
static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
|
|
@@ -37,6 +38,7 @@ static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = {
|
|
[IF_TYPE_HOST] = UCLASS_ROOT,
|
|
[IF_TYPE_HOST] = UCLASS_ROOT,
|
|
[IF_TYPE_NVME] = UCLASS_NVME,
|
|
[IF_TYPE_NVME] = UCLASS_NVME,
|
|
[IF_TYPE_EFI] = UCLASS_EFI,
|
|
[IF_TYPE_EFI] = UCLASS_EFI,
|
|
|
|
+ [IF_TYPE_VIRTIO] = UCLASS_VIRTIO,
|
|
};
|
|
};
|
|
|
|
|
|
static enum if_type if_typename_to_iftype(const char *if_typename)
|
|
static enum if_type if_typename_to_iftype(const char *if_typename)
|