aboutsummaryrefslogtreecommitdiff
path: root/vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-01-08 00:21:28 +0300
committerValentin Popov <valentin@popov.link>2024-01-08 00:21:28 +0300
commit1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch)
tree7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile
parent5ecd8cf2cba827454317368b68571df0d13d7842 (diff)
downloadfparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz
fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile')
-rw-r--r--vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile/mod.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile/mod.rs
new file mode 100644
index 0000000..8d407dd
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile/mod.rs
@@ -0,0 +1,25 @@
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlDrainNonVolatileFlush(nvtoken : *const ::core::ffi::c_void) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlFillNonVolatileMemory(nvtoken : *const ::core::ffi::c_void, nvdestination : *mut ::core::ffi::c_void, size : usize, value : u8, flags : u32) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlFlushNonVolatileMemory(nvtoken : *const ::core::ffi::c_void, nvbuffer : *const ::core::ffi::c_void, size : usize, flags : u32) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlFlushNonVolatileMemoryRanges(nvtoken : *const ::core::ffi::c_void, nvranges : *const NV_MEMORY_RANGE, numranges : usize, flags : u32) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlFreeNonVolatileToken(nvtoken : *const ::core::ffi::c_void) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlGetNonVolatileToken(nvbuffer : *const ::core::ffi::c_void, size : usize, nvtoken : *mut *mut ::core::ffi::c_void) -> u32);
+#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
+::windows_targets::link!("ntdll.dll" "system" fn RtlWriteNonVolatileMemory(nvtoken : *const ::core::ffi::c_void, nvdestination : *mut ::core::ffi::c_void, source : *const ::core::ffi::c_void, size : usize, flags : u32) -> u32);
+#[repr(C)]
+pub struct NV_MEMORY_RANGE {
+ pub BaseAddress: *mut ::core::ffi::c_void,
+ pub Length: usize,
+}
+impl ::core::marker::Copy for NV_MEMORY_RANGE {}
+impl ::core::clone::Clone for NV_MEMORY_RANGE {
+ fn clone(&self) -> Self {
+ *self
+ }
+}