From 7a7cb3044bb1ce0ba83e549d64c152bb5dacb98a Mon Sep 17 00:00:00 2001 From: Ange Albertini <105304039+corkamig@users.noreply.github.com> Date: Tue, 16 Aug 2022 01:37:30 +0200 Subject: 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 --- sys/fuchsia/msi.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sys/fuchsia/msi.txt (limited to 'sys') 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 +include + +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 -- cgit mrf-deployment