From: Vladimir Serbinenko Date: Tue, 24 Dec 2013 17:10:28 +0000 (+0100) Subject: Show SATA device path. X-Git-Tag: grub-2.02-beta2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d6c69536e672eed90cd7b2520d888e39fe75bbc;p=thirdparty%2Fgrub.git Show SATA device path. --- diff --git a/ChangeLog b/ChangeLog index ebdcaa09f..a87d02d80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-12-24 Vladimir Serbinenko + + Show SATA device path. + 2013-12-24 Vladimir Serbinenko Revert grub-file usage in grub-mkconfig. diff --git a/grub-core/kern/efi/efi.c b/grub-core/kern/efi/efi.c index e1c9356ae..59d645e4c 100644 --- a/grub-core/kern/efi/efi.c +++ b/grub-core/kern/efi/efi.c @@ -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); diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h index ad0f0ec71..e5dd543a8 100644 --- a/include/grub/efi/api.h +++ b/include/grub/efi/api.h @@ -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. */