VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Protocol/DevicePathToText.h@ 62180

最後變更 在這個檔案從62180是 58466,由 vboxsync 提交於 9 年 前

EFI/Firmware: Merged in the svn:eol-style, svn:mime-type and trailing whitespace cleanup that was done after the initial UDK2014.SP1 import: svn merge /vendor/edk2/UDK2014.SP1 /vendor/edk2/current .

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.1 KB
 
1/** @file
2 EFI_DEVICE_PATH_TO_TEXT_PROTOCOL as defined in UEFI 2.0.
3 This protocol provides service to convert device nodes and paths to text.
4
5 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16#ifndef __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
17#define __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
18
19///
20/// Device Path To Text protocol
21///
22#define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \
23 { \
24 0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } \
25 }
26
27/**
28 Convert a device node to its text representation.
29
30 @param DeviceNode Points to the device node to be converted.
31 @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
32 of the display node is used, where applicable. If DisplayOnly
33 is FALSE, then the longer text representation of the display node
34 is used.
35 @param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
36 representation for a device node can be used, where applicable.
37
38 @retval a_pointer a pointer to the allocated text representation of the device node data
39 @retval NULL if DeviceNode is NULL or there was insufficient memory.
40
41**/
42typedef
43CHAR16*
44(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_NODE)(
45 IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
46 IN BOOLEAN DisplayOnly,
47 IN BOOLEAN AllowShortcuts
48 );
49
50/**
51 Convert a device path to its text representation.
52
53 @param DevicePath Points to the device path to be converted.
54 @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
55 of the display node is used, where applicable. If DisplayOnly
56 is FALSE, then the longer text representation of the display node
57 is used.
58 @param AllowShortcuts The AllowShortcuts is FALSE, then the shortcut forms of
59 text representation for a device node cannot be used.
60
61 @retval a_pointer a pointer to the allocated text representation of the device node.
62 @retval NULL if DevicePath is NULL or there was insufficient memory.
63
64**/
65typedef
66CHAR16*
67(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_PATH)(
68 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
69 IN BOOLEAN DisplayOnly,
70 IN BOOLEAN AllowShortcuts
71 );
72
73///
74/// This protocol converts device paths and device nodes to text.
75///
76typedef struct {
77 EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText;
78 EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText;
79} EFI_DEVICE_PATH_TO_TEXT_PROTOCOL;
80
81extern EFI_GUID gEfiDevicePathToTextProtocolGuid;
82
83#endif
84
85
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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