From f6aa61d599678b74b3c4a6bd5604a0f9ac2af9b2 Mon Sep 17 00:00:00 2001 From: Zhikang Zhang Date: Thu, 3 Aug 2017 02:30:58 -0700 Subject: 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 Signed-off-by: Wenbin Song Signed-off-by: Bin Meng Reviewed-by: Tom Rini --- include/nvme.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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__ */ -- cgit v1.3.1