aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAnge Albertini <105304039+corkamig@users.noreply.github.com>2022-08-16 01:37:30 +0200
committerGitHub <noreply@github.com>2022-08-15 16:37:30 -0700
commit7a7cb3044bb1ce0ba83e549d64c152bb5dacb98a (patch)
tree7cc60d98929939e44ac06f69385062e100bc5ace /sys
parent8b7f36991e5a1248a66a9ae8a16f6bef785ca064 (diff)
sys/fuchsia: msi system calls definition (#3298)
* sys/fuchsia: msi system calls definition * sys/fuchsia: msi handle optional in allocation * sys/fuchsia: fixing mistake in previous commit * sys/fuchsia: update msi
Diffstat (limited to 'sys')
-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