aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/vmw_vmci.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-13 13:11:45 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-13 14:27:16 +0100
commite32b6fa920e7300d16c190c1138dd042a9df7ea2 (patch)
tree31b0ff0e6af6beee3ac0867712bf24b507026dcc /sys/linux/vmw_vmci.txt
parent4a7fa9b416fd0a961793328a785666d6d2c5976d (diff)
sys/linux: regenerate const files
Regenerate consts on upstream 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba. Fix vmw_vmci.txt const extraction.
Diffstat (limited to 'sys/linux/vmw_vmci.txt')
-rw-r--r--sys/linux/vmw_vmci.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/linux/vmw_vmci.txt b/sys/linux/vmw_vmci.txt
index e1afdfabf..44ba2de03 100644
--- a/sys/linux/vmw_vmci.txt
+++ b/sys/linux/vmw_vmci.txt
@@ -1,8 +1,10 @@
# Copyright 2020 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+include <uapi/linux/fcntl.h>
include <linux/ioctl.h>
include <linux/vmw_vmci_defs.h>
+include <drivers/misc/vmw_vmci/vmci_context.h>
resource fd_vmci[fd]
@@ -128,3 +130,16 @@ vmci_version = VMCI_VERSION_NOVMVM, VMCI_VERSION_NOTIFY, VMCI_VERSION_HOSTQP, VM
vmci_cpt_state = VMCI_NOTIFICATION_CPT_STATE, VMCI_WELLKNOWN_CPT_STATE, VMCI_DG_OUT_STATE, VMCI_DG_IN_STATE, VMCI_DG_IN_SIZE_STATE, VMCI_DOORBELL_CPT_STATE
vmci_notify_resource = VMCI_NOTIFY_RESOURCE_QUEUE_PAIR, VMCI_NOTIFY_RESOURCE_DOOR_BELL
vmci_notify_action = VMCI_NOTIFY_RESOURCE_ACTION_NOTIFY, VMCI_NOTIFY_RESOURCE_ACTION_CREATE, VMCI_NOTIFY_RESOURCE_ACTION_DESTROY
+
+# These are defined in kernel source files.
+define VMCI_NOTIFICATION_CPT_STATE 1
+define VMCI_WELLKNOWN_CPT_STATE 2
+define VMCI_DG_OUT_STATE 3
+define VMCI_DG_IN_STATE 4
+define VMCI_DG_IN_SIZE_STATE 5
+define VMCI_DOORBELL_CPT_STATE 6
+define VMCI_NOTIFY_RESOURCE_ACTION_NOTIFY 0
+define VMCI_NOTIFY_RESOURCE_ACTION_CREATE 1
+define VMCI_NOTIFY_RESOURCE_ACTION_DESTROY 2
+define VMCI_NOTIFY_RESOURCE_QUEUE_PAIR 0
+define VMCI_NOTIFY_RESOURCE_DOOR_BELL 1