]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c
IntelFrameworkModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / DevicePath.c
CommitLineData
5c08e117 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
863986b3 5Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r
c0a00b14 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
5c08e117 7\r
8**/\r
9\r
10#include "InternalBdsLib.h"\r
11\r
5c08e117 12/**\r
13 This function converts an input device structure to a Unicode string.\r
14\r
15 @param DevPath A pointer to the device path structure.\r
16\r
17 @return A new allocated Unicode string that represents the device path.\r
18\r
19**/\r
20CHAR16 *\r
21EFIAPI\r
22DevicePathToStr (\r
23 IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r
24 )\r
25{\r
863986b3 26 return ConvertDevicePathToText (DevPath, TRUE, TRUE);\r
5c08e117 27}\r