Module Name: src Committed By: thorpej Date: Sun Nov 19 19:47:03 UTC 2023
Modified Files: src/sys/dev/pci: virtioreg.h Log Message: Define the VIRTIO_F_ACCESS_PLATFORM, VIRTIO_F_RING_PACKED, VIRTIO_F_ORDER_PLATFORM, and VIRTIO_F_SR_IOV feature bits. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/virtioreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/virtioreg.h diff -u src/sys/dev/pci/virtioreg.h:1.12 src/sys/dev/pci/virtioreg.h:1.13 --- src/sys/dev/pci/virtioreg.h:1.12 Wed Mar 29 09:45:05 2023 +++ src/sys/dev/pci/virtioreg.h Sun Nov 19 19:47:03 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: virtioreg.h,v 1.12 2023/03/29 09:45:05 riastradh Exp $ */ +/* $NetBSD: virtioreg.h,v 1.13 2023/11/19 19:47:03 thorpej Exp $ */ /* * Copyright (c) 2010 Minoura Makoto. @@ -84,6 +84,10 @@ #define VIRTIO_F_RING_EVENT_IDX __BIT(29) #define VIRTIO_F_BAD_FEATURE __BIT(30) #define VIRTIO_F_VERSION_1 __BIT(32) +#define VIRTIO_F_ACCESS_PLATFORM __BIT(33) +#define VIRTIO_F_RING_PACKED __BIT(34) +#define VIRTIO_F_ORDER_PLATFORM __BIT(36) +#define VIRTIO_F_SR_IOV __BIT(37) /* common device status flags */ #define VIRTIO_CONFIG_DEVICE_STATUS_RESET 0 @@ -101,6 +105,10 @@ /* common device/guest features */ #define VIRTIO_COMMON_FLAG_BITS \ "\177\020" \ + "b\x24" "SR_IOV\0" \ + "b\x23" "ORDER_PLATFORM\0" \ + "b\x22" "RING_PACKED\0" \ + "b\x21" "ACCESS_PLATFORM\0" \ "b\x20" "V1\0" \ "b\x1e" "BAD_FEATURE\0" \ "b\x1d" "EVENT_IDX\0" \