Show SATA device path.
This commit is contained in:
parent
faf4a65e1e
commit
4d6c69536e
3 changed files with 26 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue