Skip to content

Commit 9a6b490

Browse files
committed
uefi: table::cfg::*_GUID constants now deprecated
1 parent f3b69e8 commit 9a6b490

File tree

3 files changed

+100
-4
lines changed

3 files changed

+100
-4
lines changed

uefi/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
## Changed
77
- **Breaking:** `boot::stall` now take `core::time::Duration` instead of `usize`.
8-
- **Breaking:** `*_GUID` constants has been moved to `ConfigTableEntry::*_GUID`.
8+
- `table::cfg::*_GUID` constants now deprecated. Use `ConfigTableEntry::*_GUID` instead.
99

1010

1111
# uefi - 0.35.0 (2025-05-04)

uefi/src/system.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ pub fn uefi_revision() -> Revision {
6161
/// with_config_table(|slice| {
6262
/// for i in slice {
6363
/// match i.guid {
64-
/// ConfigTableEntry::ACPI_GUID => println!("ACPI"),
65-
/// ConfigTableEntry::ACPI2_GUID => println!("ACPI2"),
66-
/// guid => println!("GUID: {}", guid),
64+
/// ConfigTableEntry::ACPI_GUID => println!("Found ACPI1"),
65+
/// ConfigTableEntry::ACPI2_GUID => println!("Found ACPI2"),
66+
/// guid => println!("Found {}", guid),
6767
/// }
6868
/// }
6969
/// });

uefi/src/table/cfg.rs

+96
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,51 @@ impl ConfigTableEntry {
8686
pub const PROPERTIES_TABLE_GUID: Guid = guid!("880aaca3-4adc-4a04-9079-b747340825e5");
8787
}
8888

89+
/// Entry pointing to the old ACPI 1 RSDP.
90+
#[deprecated(
91+
since = "0.35.1",
92+
note = "please use `ConfigTableEntry::ACPI_GUID` instead"
93+
)]
94+
pub const ACPI_GUID: Guid = ConfigTableEntry::ACPI_GUID;
95+
96+
/// Entry pointing to the ACPI 2 RSDP.
97+
#[deprecated(
98+
since = "0.35.1",
99+
note = "please use `ConfigTableEntry::ACPI2_GUID` instead"
100+
)]
101+
pub const ACPI2_GUID: Guid = ConfigTableEntry::ACPI2_GUID;
102+
103+
/// Entry pointing to the SMBIOS 1.0 table.
104+
#[deprecated(
105+
since = "0.35.1",
106+
note = "please use `ConfigTableEntry::SMBIOS_GUID` instead"
107+
)]
108+
pub const SMBIOS_GUID: Guid = ConfigTableEntry::SMBIOS_GUID;
109+
110+
/// Entry pointing to the SMBIOS 3.0 table.
111+
#[deprecated(
112+
since = "0.35.1",
113+
note = "please use `ConfigTableEntry::SMBIOS3_GUID` instead"
114+
)]
115+
pub const SMBIOS3_GUID: Guid = ConfigTableEntry::SMBIOS3_GUID;
116+
117+
/// Entry pointing to the EFI System Resource table (ESRT).
118+
#[deprecated(
119+
since = "0.35.1",
120+
note = "please use `ConfigTableEntry::ESRT_GUID` instead"
121+
)]
122+
pub const ESRT_GUID: Guid = ConfigTableEntry::ESRT_GUID;
123+
124+
/// GUID of the UEFI properties table.
125+
///
126+
/// The properties table is used to provide additional info
127+
/// about the UEFI implementation.
128+
#[deprecated(
129+
since = "0.35.1",
130+
note = "please use `ConfigTableEntry::PROPERTIES_TABLE_GUID` instead"
131+
)]
132+
pub const PROPERTIES_TABLE_GUID: Guid = ConfigTableEntry::PROPERTIES_TABLE_GUID;
133+
89134
/// This table contains additional information about the UEFI implementation.
90135
#[repr(C)]
91136
#[derive(Debug)]
@@ -112,3 +157,54 @@ bitflags! {
112157
const NON_EXECUTABLE_DATA = 1;
113158
}
114159
}
160+
161+
/// Hand-off Blocks are used to pass data from the early pre-UEFI environment to the UEFI drivers.
162+
///
163+
/// Most OS loaders or applications should not mess with this.
164+
#[deprecated(
165+
since = "0.35.1",
166+
note = "please use `ConfigTableEntry::HAND_OFF_BLOCK_LIST_GUID` instead"
167+
)]
168+
pub const HAND_OFF_BLOCK_LIST_GUID: Guid = ConfigTableEntry::HAND_OFF_BLOCK_LIST_GUID;
169+
170+
/// Table used in the early boot environment to record memory ranges.
171+
#[deprecated(
172+
since = "0.35.1",
173+
note = "please use `ConfigTableEntry::MEMORY_TYPE_INFORMATION_GUID` instead"
174+
)]
175+
pub const MEMORY_TYPE_INFORMATION_GUID: Guid = ConfigTableEntry::MEMORY_TYPE_INFORMATION_GUID;
176+
177+
/// Used to identify Hand-off Blocks which store
178+
/// status codes reported during the pre-UEFI environment.
179+
#[deprecated(
180+
since = "0.35.1",
181+
note = "please use `ConfigTableEntry::MEMORY_STATUS_CODE_RECORD_GUID` instead"
182+
)]
183+
pub const MEMORY_STATUS_CODE_RECORD_GUID: Guid = ConfigTableEntry::MEMORY_STATUS_CODE_RECORD_GUID;
184+
185+
/// Table which provides Driver eXecution Environment services.
186+
#[deprecated(
187+
since = "0.35.1",
188+
note = "please use `ConfigTableEntry::DXE_SERVICES_GUID` instead"
189+
)]
190+
pub const DXE_SERVICES_GUID: Guid = ConfigTableEntry::DXE_SERVICES_GUID;
191+
192+
/// LZMA-compressed filesystem.
193+
#[deprecated(
194+
since = "0.35.1",
195+
note = "please use `ConfigTableEntry::LZMA_COMPRESS_GUID` instead"
196+
)]
197+
pub const LZMA_COMPRESS_GUID: Guid = ConfigTableEntry::LZMA_COMPRESS_GUID;
198+
199+
/// A custom compressed filesystem used by the Tiano UEFI implementation.
200+
#[deprecated(
201+
since = "0.35.1",
202+
note = "please use `ConfigTableEntry::TIANO_COMPRESS_GUID` instead"
203+
)]
204+
pub const TIANO_COMPRESS_GUID: Guid = ConfigTableEntry::TIANO_COMPRESS_GUID;
205+
/// Pointer to the debug image info table.
206+
#[deprecated(
207+
since = "0.35.1",
208+
note = "please use `ConfigTableEntry::DEBUG_IMAGE_INFO_GUID` instead"
209+
)]
210+
pub const DEBUG_IMAGE_INFO_GUID: Guid = ConfigTableEntry::DEBUG_IMAGE_INFO_GUID;

0 commit comments

Comments
 (0)