]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c
a0b9da880d772235d06f07d0e2751a2f511066a1
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / DevicePath.c
1 /** @file
2 BDS internal function define the default device path string, it can be
3 replaced by platform device path.
4
5 Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include "InternalBdsLib.h"
11
12 /**
13 This function converts an input device structure to a Unicode string.
14
15 @param DevPath A pointer to the device path structure.
16
17 @return A new allocated Unicode string that represents the device path.
18
19 **/
20 CHAR16 *
21 EFIAPI
22 DevicePathToStr (
23 IN EFI_DEVICE_PATH_PROTOCOL *DevPath
24 )
25 {
26 return ConvertDevicePathToText (DevPath, TRUE, TRUE);
27 }