td_shim_interface/td_uefi_pi/pi/
boot_mode.rs

1// Copyright © 2019 Intel Corporation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Boot mode defined in [UEFI-PI Spec](https://uefi.org/sites/default/files/resources/PI_Spec_1_6.pdf),
16//! section "4.3 Boot Mode Services".
17pub type BootMode = u32;
18
19pub const BOOT_WITH_FULL_CONFIGURATION: u32 = 0x00;
20pub const BOOT_WITH_MINIMAL_CONFIGURATION: u32 = 0x01;
21pub const BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: u32 = 0x02;
22pub const BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS: u32 = 0x03;
23pub const BOOT_WITH_DEFAULT_SETTINGS: u32 = 0x04;
24pub const BOOT_ON_S4_RESUME: u32 = 0x05;
25pub const BOOT_ON_S5_RESUME: u32 = 0x06;
26pub const BOOT_WITH_MFG_MODE_SETTINGS: u32 = 0x07;
27pub const BOOT_ON_S2_RESUME: u32 = 0x10;
28pub const BOOT_ON_S3_RESUME: u32 = 0x11;
29pub const BOOT_ON_FLASH_UPDATE: u32 = 0x12;
30pub const BOOT_IN_RECOVERY_MODE: u32 = 0x20;