aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fuchsia/msi.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/fuchsia/msi.txt b/sys/fuchsia/msi.txt
new file mode 100644
index 000000000..c7cb6e7a7
--- /dev/null
+++ b/sys/fuchsia/msi.txt
@@ -0,0 +1,15 @@
+# Copyright 2022 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.
+
+# See https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/vdso/msi.fidl
+
+include <zircon/syscalls.h>
+include <zircon/types.h>
+
+resource zx_msi[zx_handle]
+
+msi_allocate(handle zx_resource[opt], count flags[msi_count], out_allocation ptr[out, zx_msi])
+msi_create(handle zx_msi, options flags[msi_create_options], msi_id int32, vmo zx_vmo, vmo_offset int32, out_interrupt ptr[out, zx_interrupt])
+
+msi_count = 1, 2, 4, 8, 16, 32
+msi_create_options = 0