diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-10 22:00:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-10 22:04:21 -0400 |
commit | 26e17c070f845e4d93bff080eead9f5d22253319 (patch) | |
tree | 69a64015f8fc00d16c73c109d4304bea6af2617b /sys/include/dev | |
parent | 67f9d3c5e58f1a958a2b1b7a102a71e3ce252fc4 (diff) |
kernel: nvme: Improve nvme_identify()
Require an NSID and CNS value to be passed to the nvme_identify()
function. This enables the caller to control what type of data is returned by
the NVMe controller.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r-- | sys/include/dev/ic/nvmevar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/dev/ic/nvmevar.h b/sys/include/dev/ic/nvmevar.h index aa68331..355abd8 100644 --- a/sys/include/dev/ic/nvmevar.h +++ b/sys/include/dev/ic/nvmevar.h @@ -37,6 +37,10 @@ #define NVME_OP_CREATE_IOCQ 0x05 #define NVME_OP_IDENTIFY 0x06 +/* Identify CNS values */ +#define ID_CNS_CTRL 0x01 /* Identify controller */ +#define ID_CNS_NSID_LIST 0x07 /* Active NSID list */ + struct nvme_identify_cmd { uint8_t opcode; uint8_t flags; |