git: e6b8c1d780b4 - main - virtio: Add more device IDs from the specification
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 31 Jan 2024 05:11:53 UTC
The branch main has been updated by bryanv: URL: https://cgit.FreeBSD.org/src/commit/?id=e6b8c1d780b490283dd378aa560591a14583caf1 commit e6b8c1d780b490283dd378aa560591a14583caf1 Author: Bryan Venteicher <bryanv@FreeBSD.org> AuthorDate: 2024-01-31 05:02:59 +0000 Commit: Bryan Venteicher <bryanv@FreeBSD.org> CommitDate: 2024-01-31 05:08:12 +0000 virtio: Add more device IDs from the specification --- sys/dev/virtio/virtio.c | 6 ++++++ sys/dev/virtio/virtio_ids.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/sys/dev/virtio/virtio.c b/sys/dev/virtio/virtio.c index 75e0e150d67f..9e375e98d1e3 100644 --- a/sys/dev/virtio/virtio.c +++ b/sys/dev/virtio/virtio.c @@ -66,6 +66,12 @@ static struct virtio_ident { { VIRTIO_ID_INPUT, "Input" }, { VIRTIO_ID_VSOCK, "VSOCK Transport" }, { VIRTIO_ID_CRYPTO, "Crypto" }, + { VIRTIO_ID_IOMMU, "IOMMU" }, + { VIRTIO_ID_SOUND, "Sound" }, + { VIRTIO_ID_FS, "Filesystem" }, + { VIRTIO_ID_PMEM, "Persistent Memory" }, + { VIRTIO_ID_RPMB, "RPMB" }, + { VIRTIO_ID_GPIO, "GPIO" }, { 0, NULL } }; diff --git a/sys/dev/virtio/virtio_ids.h b/sys/dev/virtio/virtio_ids.h index 2e3df0f38436..c9bd6f52bef6 100644 --- a/sys/dev/virtio/virtio_ids.h +++ b/sys/dev/virtio/virtio_ids.h @@ -45,5 +45,11 @@ #define VIRTIO_ID_INPUT 18 #define VIRTIO_ID_VSOCK 19 #define VIRTIO_ID_CRYPTO 20 +#define VIRTIO_ID_IOMMU 23 +#define VIRTIO_ID_SOUND 25 +#define VIRTIO_ID_FS 26 +#define VIRTIO_ID_PMEM 27 +#define VIRTIO_ID_RPMB 28 +#define VIRTIO_ID_GPIO 41 #endif /* _VIRTIO_IDS_H_ */