VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/TokenGenerator.c

最後變更 在這個檔案是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 521 位元組
 
1/** @file
2 Token Generator
3
4 Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 @par Glossary:
9 - Cm or CM - Configuration Manager
10 - Obj or OBJ - Object
11**/
12
13#include <Protocol/ConfigurationManagerProtocol.h>
14
15/** Generate a token.
16
17 @return A token.
18**/
19CM_OBJECT_TOKEN
20EFIAPI
21GenerateToken (
22 VOID
23 )
24{
25 // Start Tokens at 1 to avoid collisions with CM_NULL_TOKEN.
26 STATIC UINTN CurrentToken = 1;
27
28 return (CM_OBJECT_TOKEN)(CurrentToken++);
29}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette