]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDevicePath.c
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / SecureBootConfigDxe / SecureBootConfigDevicePath.c
1 /** @file
2 Internal function defines the default device path string for SecureBoot configuration module.
3
4 Copyright (c) 2012 - 2013, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "SecureBootConfigImpl.h"
10
11
12 /**
13 This function converts an input device structure to a Unicode string.
14
15 @param[in] 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 (
27 DevPath,
28 FALSE,
29 TRUE
30 );
31 }
32