]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / Override / IntelFrameworkModulePkg / Library / GenericBdsLib / DevicePath.c
CommitLineData
3cbfba02
DW
1/** @file\r
2 BDS internal function define the default device path string, it can be\r
3 replaced by platform device path.\r
4\r
5Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#include "InternalBdsLib.h"\r
17\r
18/**\r
19 This function converts an input device structure to a Unicode string.\r
20\r
21 @param DevPath A pointer to the device path structure.\r
22\r
23 @return A new allocated Unicode string that represents the device path.\r
24\r
25**/\r
26CHAR16 *\r
27EFIAPI\r
28DevicePathToStr (\r
29 IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r
30 )\r
31{\r
32 return ConvertDevicePathToText (DevPath, TRUE, TRUE);\r
33}\r