]>
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 |
180a5a35 | 6 | This program and the accompanying materials\r |
5c08e117 | 7 | are licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #include "InternalBdsLib.h"\r | |
17 | \r | |
5c08e117 | 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 | |
26 | CHAR16 *\r | |
27 | EFIAPI\r | |
28 | DevicePathToStr (\r | |
29 | IN EFI_DEVICE_PATH_PROTOCOL *DevPath\r | |
30 | )\r | |
31 | {\r | |
863986b3 | 32 | return ConvertDevicePathToText (DevPath, TRUE, TRUE);\r |
5c08e117 | 33 | }\r |