dm: change virtio-i2c from legacy to modern device

Change virtio-i2c from legacy to modern device according to virtio spec v1.2.

Tracked-On: #8055
Signed-off-by: Liu Long <long.liu@linux.intel.com>
Signed-off-by: Conghui <conghui.chen@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Conghui
2022-08-19 09:49:15 +08:00
committed by acrnsi-robot
parent 7a870e751a
commit b083341bd9
2 changed files with 10 additions and 5 deletions

View File

@@ -223,6 +223,7 @@ enum {
#define VIRTIO_DEV_RANDOM 0x1005
#define VIRTIO_DEV_GPU 0x1050
#define VIRTIO_DEV_VSOCK 0x1053
#define VIRTIO_DEV_I2C 0x1062
/*
* ACRN virtio device IDs
@@ -236,7 +237,6 @@ enum {
#define VIRTIO_DEV_HDCP 0x8607
#define VIRTIO_DEV_COREU 0x8608
#define VIRTIO_DEV_GPIO 0x8609
#define VIRTIO_DEV_I2C 0x860a
/*
* VIRTIO_CONFIG_S_NEEDS_RESET is not defined