From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../Windows/Win32/System/Memory/NonVolatile/mod.rs | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 vendor/windows-sys-0.42.0/src/Windows/Win32/System/Memory/NonVolatile/mod.rs (limited to 'vendor/windows-sys-0.42.0/src/Windows/Win32/System/Memory/NonVolatile/mod.rs') diff --git a/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Memory/NonVolatile/mod.rs b/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Memory/NonVolatile/mod.rs new file mode 100644 index 000000000..e38957708 --- /dev/null +++ b/vendor/windows-sys-0.42.0/src/Windows/Win32/System/Memory/NonVolatile/mod.rs @@ -0,0 +1,36 @@ +#[cfg_attr(windows, link(name = "windows"))] +extern "system" { + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlDrainNonVolatileFlush(nvtoken: *const ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlFillNonVolatileMemory(nvtoken: *const ::core::ffi::c_void, nvdestination: *mut ::core::ffi::c_void, size: usize, value: u8, flags: u32) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlFlushNonVolatileMemory(nvtoken: *const ::core::ffi::c_void, nvbuffer: *const ::core::ffi::c_void, size: usize, flags: u32) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlFlushNonVolatileMemoryRanges(nvtoken: *const ::core::ffi::c_void, nvranges: *const NV_MEMORY_RANGE, numranges: usize, flags: u32) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlFreeNonVolatileToken(nvtoken: *const ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub fn RtlGetNonVolatileToken(nvbuffer: *const ::core::ffi::c_void, size: usize, nvtoken: *mut *mut ::core::ffi::c_void) -> u32; + #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] + #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))] + pub 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)] +#[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"] +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 + } +} -- cgit v1.2.3