diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-19 02:49:54 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-25 20:09:17 +0100 |
commit | f027222ad8c7488bab6f4e5b6ab77104081842c6 (patch) | |
tree | 079b301dd5fc98b835b73f0d52c4ae708215d630 /include/efi_api.h | |
parent | 134d3387e1b794bbe1ba1747232f15d9376632c9 (diff) | |
download | u-boot-f027222ad8c7488bab6f4e5b6ab77104081842c6.tar.gz u-boot-f027222ad8c7488bab6f4e5b6ab77104081842c6.tar.bz2 u-boot-f027222ad8c7488bab6f4e5b6ab77104081842c6.zip |
efi_loader: Uart device path
When uploading an EFI binary via the UART we need to assign a device path.
* Provide devicepath node to text conversion for Uart() node.
* Provide function to create Uart() device path.
* Add UART support to efi_dp_from_name().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r-- | include/efi_api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h index 48e48a6263..4ccde1d24d 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -523,6 +523,7 @@ struct efi_device_path_acpi_path { # 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_UART 0x0e # define DEVICE_PATH_SUB_TYPE_MSG_USB_CLASS 0x0f # define DEVICE_PATH_SUB_TYPE_MSG_SATA 0x12 # define DEVICE_PATH_SUB_TYPE_MSG_NVME 0x17 @@ -542,6 +543,15 @@ struct efi_device_path_scsi { u16 logical_unit_number; } __packed; +struct efi_device_path_uart { + struct efi_device_path dp; + u32 reserved; + u64 baud_rate; + u8 data_bits; + u8 parity; + u8 stop_bits; +} __packed; + struct efi_device_path_usb { struct efi_device_path dp; u8 parent_port_number; |