2N/A * GRUB -- GRand Unified Bootloader 2N/A * Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. 2N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * GRUB is free software: you can redistribute it and/or modify 2N/A * it under the terms of the GNU General Public License as published by 2N/A * the Free Software Foundation, either version 3 of the License, or 2N/A * (at your option) any later version. 2N/A * GRUB is distributed in the hope that it will be useful, 2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A * GNU General Public License for more details. 2N/A * You should have received a copy of the GNU General Public License 2N/A/* The handle of GRUB itself. Filled in by the startup code. */ 2N/A/* The pointer to a system table. Filled in by the startup code. */ 2N/A/* Return the array of handles which meet the requirement. If successful, 2N/A the number of handles is stored in NUM_HANDLES. The array is allocated 2N/A /* No console control protocol instance available, assume it is 2N/A already in text mode. */ 2N/A /* What is possible in this case? */ 2N/A/* Search the mods section from the PE32/PE32+ image. This code uses 2N/A a PE32 header, but should work with PE32+ as well. */ 2N/A /* EFI breaks paths with backslashes. */ 2N/A/* Print the chain of Device Path nodes. This is mainly for debugging. */ 2N/A //grub_putchar ('\n'); 2N/A //grub_putchar ('\n'); 2N/A grub_printf (
"/Vendor(%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)",
2N/A grub_printf (
"/IPv6(%x:%x:%x:%x:%x:%x:%x:%x,%x:%x:%x:%x:%x:%x:%x:%x,%u,%u,%x,%x)",
2N/A grub_printf (
"/Vendor(%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)",
2N/A grub_printf (
"/HD(%u,%llx,%llx,%02x%02x%02x%02x%02x%02x%02x%02x,%x,%x)",
2N/A grub_printf (
"/Vendor(%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)",
2N/A grub_printf (
"/Protocol(%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)",
2N/A/* Compare device paths. */ 2N/A /* Return non-zero. */