]>
Commit | Line | Data |
---|---|---|
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 | 5 | Copyright (c) 2004 - 2013, Intel Corporation. All rights reserved.<BR>\r |
c0a00b14 | 6 | SPDX-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 | |
20 | CHAR16 *\r | |
21 | EFIAPI\r | |
22 | DevicePathToStr (\r | |
23 | IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r | |
24 | )\r | |
25 | {\r | |
863986b3 | 26 | return ConvertDevicePathToText (DevPath, TRUE, TRUE);\r |
5c08e117 | 27 | }\r |