mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
efi_loader: support device path for IDE and SCSI disks
Correctly create the device path for IDE and SCSI disks. Support for SATA remains to be done in a future patch. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:

committed by
Alexander Graf

parent
2bc61b8352
commit
af3106a12d
@ -329,12 +329,27 @@ struct efi_device_path_acpi_path {
|
||||
} __packed;
|
||||
|
||||
#define DEVICE_PATH_TYPE_MESSAGING_DEVICE 0x03
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_ATAPI 0x01
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_SCSI 0x02
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_USB 0x05
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR 0x0b
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_USB_CLASS 0x0f
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_SD 0x1a
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_MMC 0x1d
|
||||
|
||||
struct efi_device_path_atapi {
|
||||
struct efi_device_path dp;
|
||||
u8 primary_secondary;
|
||||
u8 slave_master;
|
||||
u16 logical_unit_number;
|
||||
} __packed;
|
||||
|
||||
struct efi_device_path_scsi {
|
||||
struct efi_device_path dp;
|
||||
u16 target_id;
|
||||
u16 logical_unit_number;
|
||||
} __packed;
|
||||
|
||||
struct efi_device_path_usb {
|
||||
struct efi_device_path dp;
|
||||
u8 parent_port_number;
|
||||
|
Reference in New Issue
Block a user