summaryrefslogtreecommitdiffstats
path: root/third_party/rust/fuchsia-zircon/src/vmar.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/rust/fuchsia-zircon/src/vmar.rs
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/fuchsia-zircon/src/vmar.rs')
-rw-r--r--third_party/rust/fuchsia-zircon/src/vmar.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/rust/fuchsia-zircon/src/vmar.rs b/third_party/rust/fuchsia-zircon/src/vmar.rs
new file mode 100644
index 0000000000..a828195df4
--- /dev/null
+++ b/third_party/rust/fuchsia-zircon/src/vmar.rs
@@ -0,0 +1,18 @@
+use sys;
+
+bitflags! {
+ /// Flags to VMAR routines
+ #[repr(C)]
+ pub struct VmarFlags: u32 {
+ const PERM_READ = sys::ZX_VM_FLAG_PERM_READ;
+ const PERM_WRITE = sys::ZX_VM_FLAG_PERM_WRITE;
+ const PERM_EXECUTE = sys::ZX_VM_FLAG_PERM_EXECUTE;
+ const COMPACT = sys::ZX_VM_FLAG_COMPACT;
+ const SPECIFIC = sys::ZX_VM_FLAG_SPECIFIC;
+ const SPECIFIC_OVERWRITE = sys::ZX_VM_FLAG_SPECIFIC_OVERWRITE;
+ const CAN_MAP_SPECIFIC = sys::ZX_VM_FLAG_CAN_MAP_SPECIFIC;
+ const CAN_MAP_READ = sys::ZX_VM_FLAG_CAN_MAP_READ;
+ const CAN_MAP_WRITE = sys::ZX_VM_FLAG_CAN_MAP_WRITE;
+ const CAN_MAP_EXECUTE = sys::ZX_VM_FLAG_CAN_MAP_EXECUTE;
+ }
+} \ No newline at end of file