diff options
author | Zhikang Zhang <zhikang.zhang@nxp.com> | 2017-08-03 09:30:58 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-13 19:17:31 (GMT) |
commit | f6aa61d599678b74b3c4a6bd5604a0f9ac2af9b2 (patch) | |
tree | f9675ab669a26729eccbea659907923a46c6c1af /include/nvme.h | |
parent | 982388eaa991d251290676f25868eecefa08c0be (diff) | |
download | u-boot-fsl-qoriq-f6aa61d599678b74b3c4a6bd5604a0f9ac2af9b2.tar.xz |
nvme: Add show routine to print detailed information
This adds nvme_print_info() to show detailed NVMe controller and
namespace information.
Signed-off-by: Zhikang Zhang <zhikang.zhang@nxp.com>
Signed-off-by: Wenbin Song <wenbin.song@nxp.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/nvme.h')
-rw-r--r-- | include/nvme.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/nvme.h b/include/nvme.h index 3624408..8375d61 100644 --- a/include/nvme.h +++ b/include/nvme.h @@ -68,4 +68,15 @@ int nvme_set_features(struct nvme_dev *dev, unsigned fid, unsigned dword11, */ int nvme_scan_namespace(void); +/** + * nvme_print_info - print detailed NVMe controller and namespace information + * + * This prints out detailed human readable NVMe controller and namespace + * information which is very useful for debugging. + * + * @udev: NVMe controller device + * @return: 0 on success, -EIO if NVMe identify command fails + */ +int nvme_print_info(struct udevice *udev); + #endif /* __NVME_H__ */ |