]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Show SATA device path.
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 24 Dec 2013 17:10:28 +0000 (18:10 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 24 Dec 2013 17:10:28 +0000 (18:10 +0100)
ChangeLog
grub-core/kern/efi/efi.c
include/grub/efi/api.h

index ebdcaa09fbbd354fe6c954900d547482e8b80e13..a87d02d8055d764824ca6c9c6c09a50001f76e29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Show SATA device path.
+
 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Revert grub-file usage in grub-mkconfig.
index e1c9356ae989f9d5993ce76b614c3dd176c888b4..59d645e4c3e6977079f4493cf03b8752dda36609 100644 (file)
@@ -677,6 +677,17 @@ grub_efi_print_device_path (grub_efi_device_path_t *dp)
                             uart.stop_bits);
              }
              break;
+           case GRUB_EFI_SATA_DEVICE_PATH_SUBTYPE:
+             {
+               grub_efi_sata_device_path_t *sata;
+               sata = (grub_efi_sata_device_path_t *) dp;
+               grub_printf ("/Sata(%x,%x,%x)",
+                            sata->hba_port,
+                            sata->multiplier_port,
+                            sata->lun);
+             }
+             break;
+
            case GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE:
              dump_vendor_path ("Messaging",
                                (grub_efi_vendor_device_path_t *) dp);
index ad0f0ec710529a496423ecabc86c458fa5acd30d..e5dd543a801106354f9744303b48b29e8a1c7713 100644 (file)
@@ -819,6 +819,17 @@ struct grub_efi_uart_device_path
 } GRUB_PACKED;
 typedef struct grub_efi_uart_device_path grub_efi_uart_device_path_t;
 
+#define GRUB_EFI_SATA_DEVICE_PATH_SUBTYPE              18
+
+struct grub_efi_sata_device_path
+{
+  grub_efi_device_path_t header;
+  grub_efi_uint16_t hba_port;
+  grub_efi_uint16_t multiplier_port;
+  grub_efi_uint16_t lun;
+} GRUB_PACKED;
+typedef struct grub_efi_sata_device_path grub_efi_sata_device_path_t;
+
 #define GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE  10
 
 /* Media Device Path.  */