2 Null Platform Hook Library instance.
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Protocol/EmuThunk.h>
18 #include <Protocol/EmuGraphicsWindow.h>
19 #include <Protocol/EmuBlockIo.h>
20 #include <Protocol/SimpleFileSystem.h>
21 #include <Protocol/EmuThread.h>
23 #include <Library/DevicePathTextLib.h>
24 #include <Library/BaseMemoryLib.h>
28 Converts a Vendor device path structure to its string representative.
30 @param Str The string representative of input device.
31 @param DevPath The input device path structure.
32 @param DisplayOnly If DisplayOnly is TRUE, then the shorter text representation
33 of the display node is used, where applicable. If DisplayOnly
34 is FALSE, then the longer text representation of the display node
36 @param AllowShortcuts If AllowShortcuts is TRUE, then the shortcut forms of text
37 representation for a device node can be used, where applicable.
39 @return EFI_NOT_FOUND if no string representation exists.
40 @return EFI_SUCCESS a string representation was created.
44 DevPathToTextVendorLib (
45 IN OUT POOL_PRINT
*Str
,
47 IN BOOLEAN DisplayOnly
,
48 IN BOOLEAN AllowShortcuts
51 EMU_VENDOR_DEVICE_PATH_NODE
*Vendor
;
54 Vendor
= (EMU_VENDOR_DEVICE_PATH_NODE
*)DevPath
;
55 if (CompareGuid (&Vendor
->VendorDevicePath
.Guid
, &gEmuThunkProtocolGuid
)) {
56 CatPrint (Str
, L
"EmuThunk()");
59 if (CompareGuid (&Vendor
->VendorDevicePath
.Guid
, &gEmuGraphicsWindowProtocolGuid
)) {
60 CatPrint (Str
, L
"EmuGraphics(%d)", Vendor
->Instance
);
63 if (CompareGuid (&Vendor
->VendorDevicePath
.Guid
, &gEfiSimpleFileSystemProtocolGuid
)) {
64 CatPrint (Str
, L
"EmuFs(%d)", Vendor
->Instance
);
67 if (CompareGuid (&Vendor
->VendorDevicePath
.Guid
, &gEmuBlockIoProtocolGuid
)) {
68 CatPrint (Str
, L
"EmuBlk(%d)", Vendor
->Instance
);
71 if (CompareGuid (&Vendor
->VendorDevicePath
.Guid
, &gEmuThreadThunkProtocolGuid
)) {
72 CatPrint (Str
, L
"EmuThread()");