SecureBootConfigDevicePath.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
1N/A Internal function defines the default device path string for SecureBoot configuration module. 1N/ACopyright (c) 2012, Intel Corporation. All rights reserved.<BR> 1N/AThis program and the accompanying materials 1N/Aare licensed and made available under the terms and conditions of the BSD License 1N/Awhich accompanies this distribution. The full text of the license may be found at 1N/ATHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 1N/AWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 1N/A Concatenates a formatted unicode string to allocated pool. 1N/A The caller must free the resulting buffer. 1N/A @param[in, out] Str Tracks the allocated pool, size in use, and amount of pool allocated. 1N/A @param[in] Fmt The format string 1N/A @param[in] ... The data will be printed. 1N/A @return Allocated buffer with the formatted string printed in it. 1N/A The caller must free the allocated buffer. 1N/A The buffer allocation is not packed. 1N/A Convert Device Path to a Unicode string for printing. 1N/A @param[in, out] Str The buffer holding the output string. 1N/A This buffer contains the length of the string and 1N/A the maixmum length reserved for the string buffer. 1N/A @param[in] DevPath The device path. 1N/A Convert Device Path to a Unicode string for printing. 1N/A @param[in, out] Str The buffer holding the output string. 1N/A This buffer contains the length of the string and 1N/A the maixmum length reserved for the string buffer. 1N/A @param[in] DevPath The device path. 1N/A Convert Device Path to a Unicode string for printing. 1N/A @param[in, out] Str The buffer holding the output string. 1N/A This buffer contains the length of the string and 1N/A the maixmum length reserved for the string buffer. 1N/A @param[in] DevPath The device path. 1N/A L
"MemMap(%d:%lx-%lx)",
1N/A Convert Device Path to a Unicode string for printing. 1N/A @param[in, out] Str The buffer holding the output string. 1N/A This buffer contains the length of the string and 1N/A the maixmum length reserved for the string buffer. 1N/A @param[in] DevPath The device path. 1N/A Convert Vendor device path to device name. 1N/A @param[in, out] Str The buffer store device name 1N/A @param[in] DevPath Pointer to vendor device path if ((
Info &
0x0f) == 0) {
}
else if (((
Info &
0x0f) ==
1) || ((
Info &
0x0f) ==
2)) {
((
Info & (
0x1 <<
4)) != 0) ? L
"SATA" : L
"SAS",
((
Info & (
0x1 <<
5)) != 0) ? L
"External" : L
"Internal",
((
Info & (
0x1 <<
6)) != 0) ? L
"Expanded" : L
"Direct" if ((
Info &
0x0f) ==
1) {
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. // Index for HID, UID and CID strings, 0 for non-exist Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. L
"UsbWwid(%x,%x,%x,\"WWID\")",
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. L
"Usb Class(%x,%x,%x,%x,%x)",
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. L
"IPv6(%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x)",
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. L
"Infiniband(%x,%g,%lx,%lx,%lx)",
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. if (((
Options >>
11) &
0x0001) != 0) {
}
else if (((
Options >>
12) &
0x0001) != 0) {
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. L
"HD(Part%d,MBRType=%02x,SigType=%02x)",
Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. Convert Device Path to a Unicode string for printing. @param[in, out] Str The buffer holding the output string. This buffer contains the length of the string and the maixmum length reserved for the string buffer. @param[in] DevPath The device path. This function converts an input device structure to a Unicode string. @param[in] DevPath A pointer to the device path structure. @return A new allocated Unicode string that represents the device path. // Process each device path node // Find the handler to dump this device path node // If not found, use a generic function // Put a path seperator in if needed // Print this node of the device path