diff options
author | Zhikang Zhang | 2017-08-03 02:30:58 -0700 |
---|---|---|
committer | Tom Rini | 2017-08-13 15:17:31 -0400 |
commit | f6aa61d599678b74b3c4a6bd5604a0f9ac2af9b2 (patch) | |
tree | f9675ab669a26729eccbea659907923a46c6c1af /include/nvme.h | |
parent | 982388eaa991d251290676f25868eecefa08c0be (diff) |
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 362440871b2..8375d61e022 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__ */ |