diff options
author | Patrick Wildt <patrick@blueri.se> | 2019-10-03 13:48:47 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-10-06 16:02:37 +0200 |
commit | c50b2883dfc1ce355dc37238741ef97cd2c5d000 (patch) | |
tree | aa8f9e9ca55add15791a5cb3d16e3768a0479be6 /drivers/nvme/nvme.h | |
parent | 6810caf856ba68e124e4f8f9a522996a45f5232d (diff) | |
download | u-boot-c50b2883dfc1ce355dc37238741ef97cd2c5d000.tar.gz |
nvme: add accessor to namespace id and eui64
This adds a function which can be used by e.g. EFI to retrieve
the namespace identifier and EUI64. For that it adds the EUI64
to its driver internal namespace structure and copies the EUI64
during namespace identification.
Signed-off-by: Patrick Wildt <patrick@blueri.se>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/nvme/nvme.h')
-rw-r--r-- | drivers/nvme/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h index 922f7abfe8..0e8cb221a7 100644 --- a/drivers/nvme/nvme.h +++ b/drivers/nvme/nvme.h @@ -637,6 +637,7 @@ struct nvme_ns { struct list_head list; struct nvme_dev *dev; unsigned ns_id; + u8 eui64[8]; int devnum; int lba_shift; u8 flbas; |