uefi_specs/hyperv/
time.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Hyper-V specific UEFI Time definitions
5
6use crate::uefi::common::EfiStatus64;
7use crate::uefi::time::EFI_TIME;
8use zerocopy::FromBytes;
9use zerocopy::Immutable;
10use zerocopy::IntoBytes;
11use zerocopy::KnownLayout;
12
13/// MsvmPkg: `VM_EFI_TIME``
14#[repr(C, packed)]
15#[derive(Debug, Clone, Copy, IntoBytes, FromBytes, Immutable, KnownLayout)]
16pub struct VmEfiTime {
17    pub status: EfiStatus64,
18    pub time: EFI_TIME,
19}