nvme: add nvme opcodes, structures and helper functions
authorAnkit Kumar <ankit.kumar@samsung.com>
Tue, 31 May 2022 13:31:50 +0000 (19:01 +0530)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Jun 2022 08:19:41 +0000 (02:19 -0600)
commitb3d5e3fd80e3834097578e92d1b788065b8346e1
treed6e2657baf3c76857751bf69820c86ac7d63a4f8
parentf43aab595c1b8832d5f2641606f5bd5a7cdd22ea
nvme: add nvme opcodes, structures and helper functions

Add NVMe specification opcodes, data structures and helper
functions to get identify namespace and form nvme uring command.

This will help the follow up patches to get nvme-ns generic
character device size, lba size.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Co-authored-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20220531133155.17493-5-ankit.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Makefile
engines/nvme.c [new file with mode: 0644]
engines/nvme.h [new file with mode: 0644]