firmware_uefi/service/generation_id.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4use crate::UefiDevice;
5use generation_id::GenerationId;
6
7pub type GenerationIdServices = GenerationId;
8
9impl UefiDevice {
10 /// Update the low bits of the generation id pointer
11 pub(crate) fn write_generation_id_low(&mut self, data: u32) {
12 self.service.generation_id.write_generation_id_low(data)
13 }
14
15 /// Update the high bits of the generation id pointer
16 pub(crate) fn write_generation_id_high(&mut self, data: u32) {
17 self.service.generation_id.write_generation_id_high(data)
18 }
19}