]>
git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/System/Memory/NonVolatile/mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
4 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
5 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
6 pub fn RtlDrainNonVolatileFlush(nvtoken
: *const ::core
::ffi
::c_void
) -> u32;
7 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
8 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
9 pub fn RtlFillNonVolatileMemory(nvtoken
: *const ::core
::ffi
::c_void
, nvdestination
: *mut ::core
::ffi
::c_void
, size
: usize, value
: u8, flags
: u32) -> u32;
10 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
11 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
12 pub fn RtlFlushNonVolatileMemory(nvtoken
: *const ::core
::ffi
::c_void
, nvbuffer
: *const ::core
::ffi
::c_void
, size
: usize, flags
: u32) -> u32;
13 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
14 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
15 pub fn RtlFlushNonVolatileMemoryRanges(nvtoken
: *const ::core
::ffi
::c_void
, nvranges
: *const NV_MEMORY_RANGE
, numranges
: usize, flags
: u32) -> u32;
16 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
17 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
18 pub fn RtlFreeNonVolatileToken(nvtoken
: *const ::core
::ffi
::c_void
) -> u32;
19 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
20 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
21 pub fn RtlGetNonVolatileToken(nvbuffer
: *const ::core
::ffi
::c_void
, size
: usize, nvtoken
: *mut *mut ::core
::ffi
::c_void
) -> u32;
22 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
23 #[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
24 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;
27 #[doc = "*Required features: `\"Win32_System_Memory_NonVolatile\"`*"]
28 pub struct NV_MEMORY_RANGE
{
29 pub BaseAddress
: *mut ::core
::ffi
::c_void
,
32 impl ::core
::marker
::Copy
for NV_MEMORY_RANGE {}
33 impl ::core
::clone
::Clone
for NV_MEMORY_RANGE
{
34 fn clone(&self) -> Self {