Show SATA device path.

This commit is contained in:
Vladimir Serbinenko 2013-12-24 18:10:28 +01:00
parent faf4a65e1e
commit 4d6c69536e
3 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
Show SATA device path.
2013-12-24 Vladimir Serbinenko <phcoder@gmail.com> 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
Revert grub-file usage in grub-mkconfig. Revert grub-file usage in grub-mkconfig.

View file

@ -677,6 +677,17 @@ grub_efi_print_device_path (grub_efi_device_path_t *dp)
uart.stop_bits); uart.stop_bits);
} }
break; 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: case GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE:
dump_vendor_path ("Messaging", dump_vendor_path ("Messaging",
(grub_efi_vendor_device_path_t *) dp); (grub_efi_vendor_device_path_t *) dp);

View file

@ -819,6 +819,17 @@ struct grub_efi_uart_device_path
} GRUB_PACKED; } GRUB_PACKED;
typedef struct grub_efi_uart_device_path grub_efi_uart_device_path_t; 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 #define GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE 10
/* Media Device Path. */ /* Media Device Path. */