diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-11-29 12:44:40 +0100 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-11-29 14:15:20 +0000 |
commit | 274aa4832d16af5a6b10ffe6021b278bffca4eb8 (patch) | |
tree | 5b8bb165d7c593504188ba7ecd85bdeb86fcf1af /virtio_loopback.h | |
parent | 9ad83030ef18c04beae09a6acf9800378a8378bc (diff) |
Add vhost-user support for the virtio-can device
Enables support to probe, handle and connect virtio-can device
with vhost-user-can via the virtio-loopback-adapter
Depends: 29398
Bug-AGL: SPEC-4834
Change-Id: I31e328aee25b101f51911eab6fd15dc3dd78c771
Signed-off-by: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com>
Diffstat (limited to 'virtio_loopback.h')
-rw-r--r-- | virtio_loopback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virtio_loopback.h b/virtio_loopback.h index 34bae2f..cd59a5a 100644 --- a/virtio_loopback.h +++ b/virtio_loopback.h @@ -364,6 +364,7 @@ typedef struct VHostUserBlk VHostUserBlk; typedef struct VhostUserInput VhostUserInput; typedef struct VHostUserGPIO VHostUserGPIO; typedef struct VHostUserSound VHostUserSound; +typedef struct VHostUserCan VHostUserCan; typedef struct VirtioBus VirtioBus; typedef struct VirtIODevice { @@ -405,6 +406,7 @@ typedef struct VirtIODevice { VhostUserInput *vhuinput; VHostUserSound *vhusnd; VHostUserGPIO *vhugpio; + VHostUserCan *vhucan; } VirtIODevice; typedef struct efd_data { @@ -659,7 +661,9 @@ uint32_t get_vqs_max_size(VirtIODevice *vdev); * Legacy name for VIRTIO_F_ACCESS_PLATFORM * (for compatibility with old userspace) */ +#ifndef VIRTIO_F_IOMMU_PLATFORM #define VIRTIO_F_IOMMU_PLATFORM 33 +#endif /* QEMU Aligned functions */ /* |