3 Copyright (c) 1998 Intel Corporation
11 Misc EFI support functions
23 // Additional Known guids
26 #define SHELL_INTERFACE_PROTOCOL \
27 { 0x47c7b223, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} }
29 #define ENVIRONMENT_VARIABLE_ID \
30 { 0x47c7b224, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} }
32 #define DEVICE_PATH_MAPPING_ID \
33 { 0x47c7b225, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} }
35 #define PROTOCOL_ID_ID \
36 { 0x47c7b226, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} }
39 { 0x47c7b227, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} }
41 static EFI_GUID ShellInterfaceProtocol = SHELL_INTERFACE_PROTOCOL;
42 static EFI_GUID SEnvId = ENVIRONMENT_VARIABLE_ID;
43 static EFI_GUID SMapId = DEVICE_PATH_MAPPING_ID;
44 static EFI_GUID SProtId = PROTOCOL_ID_ID;
45 static EFI_GUID SAliasId = ALIAS_ID;
52 { &EfiGlobalVariable, L"Efi"},
54 { &VariableStoreProtocol, L"varstore"},
55 { &DevicePathProtocol, L"dpath"},
56 { &LoadedImageProtocol, L"image"},
57 { &TextInProtocol, L"txtin"},
58 { &TextOutProtocol, L"txtout"},
59 { &BlockIoProtocol, L"blkio"},
60 { &DiskIoProtocol, L"diskio"},
61 { &FileSystemProtocol, L"fs"},
62 { &LoadFileProtocol, L"load"},
63 { &DeviceIoProtocol, L"DevIo"},
65 { &GenericFileInfo, L"GenFileInfo"},
66 { &FileSystemInfo, L"FileSysInfo"},
68 { &UnicodeCollationProtocol, L"unicode"},
69 { &LegacyBootProtocol, L"LegacyBoot"},
70 { &SerialIoProtocol, L"serialio"},
71 { &VgaClassProtocol, L"vgaclass"},
72 { &SimpleNetworkProtocol, L"net"},
73 { &NetworkInterfaceIdentifierProtocol, L"nii"},
74 { &PxeBaseCodeProtocol, L"pxebc"},
75 { &PxeCallbackProtocol, L"pxecb"},
77 { &VariableStoreProtocol, L"varstore"},
78 { &LegacyBootProtocol, L"LegacyBoot"},
79 { &VgaClassProtocol, L"VgaClass"},
80 { &TextOutSpliterProtocol, L"TxtOutSplit"},
81 { &ErrorOutSpliterProtocol, L"ErrOutSplit"},
82 { &TextInSpliterProtocol, L"TxtInSplit"},
83 { &PcAnsiProtocol, L"PcAnsi"},
84 { &Vt100Protocol, L"Vt100"},
85 { &UnknownDevice, L"Unknown Device"},
87 { &EfiPartTypeSystemPartitionGuid, L"ESP"},
88 { &EfiPartTypeLegacyMbrGuid, L"GPT MBR"},
90 { &ShellInterfaceProtocol, L"ShellInt"},
92 { &SProtId, L"ShellProtId"},
93 { &SMapId, L"ShellDevPathMap"},
94 { &SAliasId, L"ShellAlias"},
126 Guid1 - guid to compare
127 Guid2 - guid to compare
130 = 0 if Guid1 == Guid2
134 return RtCompareGuid (Guid1, Guid2);
148 // Else, (for now) use additional internal function for mapping guids
151 for (Index=0; KnownGuids[Index].Guid; Index++) {
152 if (CompareGuid(Guid, KnownGuids[Index].Guid) == 0) {
153 SPrint (Buffer, 0, KnownGuids[Index].GuidName);
162 SPrint (Buffer, 0, L"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",