2007-06-19 12:12:02 +02:00
|
|
|
/** @file
|
|
|
|
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL as defined in UEFI 2.0.
|
|
|
|
This protocol provides service to convert device nodes and paths to text.
|
|
|
|
|
2008-07-25 12:37:15 +02:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation
|
2007-06-19 12:12:02 +02:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
|
|
|
|
#define __DEVICE_PATH_TO_TEXT_PROTOCOL_H__
|
|
|
|
|
|
|
|
#include <Protocol/DevicePath.h>
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
|
|
|
/// Device Path To Text protocol
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
#define EFI_DEVICE_PATH_TO_TEXT_PROTOCOL_GUID \
|
|
|
|
{ \
|
|
|
|
0x8b843e20, 0x8132, 0x4852, {0x90, 0xcc, 0x55, 0x1a, 0x4e, 0x4a, 0x7f, 0x1c } \
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Convert a device node to its text representation.
|
|
|
|
|
|
|
|
@param DeviceNode Points to the device node to be converted.
|
|
|
|
@param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
|
|
|
|
of the display node is used, where applicable. If DisplayOnly
|
|
|
|
is FALSE, then the longer text representation of the display node
|
|
|
|
is used.
|
|
|
|
@param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
|
|
|
|
representation for a device node can be used, where applicable.
|
|
|
|
|
|
|
|
@retval a_pointer a pointer to the allocated text representation of the device node data
|
|
|
|
@retval NULL if DeviceNode is NULL or there was insufficient memory.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
CHAR16*
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_NODE)(
|
2007-06-19 12:12:02 +02:00
|
|
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DeviceNode,
|
|
|
|
IN BOOLEAN DisplayOnly,
|
|
|
|
IN BOOLEAN AllowShortcuts
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Convert a device path to its text representation.
|
|
|
|
|
|
|
|
@param DevicePath Points to the device path to be converted.
|
|
|
|
@param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
|
|
|
|
of the display node is used, where applicable. If DisplayOnly
|
|
|
|
is FALSE, then the longer text representation of the display node
|
|
|
|
is used.
|
|
|
|
@param AllowShortcuts The AllowShortcuts is FALSE, then the shortcut forms of
|
|
|
|
text representation for a device node cannot be used.
|
|
|
|
|
|
|
|
@retval a_pointer a pointer to the allocated text representation of the device node.
|
|
|
|
@retval NULL if DevicePath is NULL or there was insufficient memory.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
CHAR16*
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_DEVICE_PATH_TO_TEXT_PATH)(
|
2007-06-19 12:12:02 +02:00
|
|
|
IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
|
|
|
IN BOOLEAN DisplayOnly,
|
|
|
|
IN BOOLEAN AllowShortcuts
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
2008-10-13 04:54:29 +02:00
|
|
|
///
|
|
|
|
/// This protocol converts device paths and device nodes to text.
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_TO_TEXT_NODE ConvertDeviceNodeToText;
|
|
|
|
EFI_DEVICE_PATH_TO_TEXT_PATH ConvertDevicePathToText;
|
|
|
|
} EFI_DEVICE_PATH_TO_TEXT_PROTOCOL;
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiDevicePathToTextProtocolGuid;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|