efi: device path for nvme
authorPatrick Wildt <patrick@blueri.se>
Thu, 3 Oct 2019 14:24:17 +0000 (16:24 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Oct 2019 14:02:37 +0000 (16:02 +0200)
commitf2d247df506eaf984f26ec03baf115d70bd75b9c
tree0f7f380419c76254588551874dd5712d403b10a4
parentc50b2883dfc1ce355dc37238741ef97cd2c5d000
efi: device path for nvme

This allows our EFI API to create a device path node for NVMe
devices.  It adds the necessary device path struct, uses the
nvme namespace accessor to retrieve the id and eui64, and also
provides support for the device path text protocol.

Signed-off-by: Patrick Wildt <patrick@blueri.se>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h
lib/efi_loader/efi_device_path.c
lib/efi_loader/efi_device_path_to_text.c