aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-30 20:25:11 -0400
committerIan Moffett <ian@osmora.org>2024-03-30 20:25:11 -0400
commit14c6487648771963e7688c4d6338392e60ee0d87 (patch)
tree54f2bb93cd5d30eab2b82e7b7e8ad2d8d4631fb8 /sys/include
parent6f0129f366e723e27f53c514685b454db1a787c4 (diff)
kernel: nvme: Keep track of namespaces
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/dev/ic/nvmevar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/dev/ic/nvmevar.h b/sys/include/dev/ic/nvmevar.h
index a4a5db6..d4b13e0 100644
--- a/sys/include/dev/ic/nvmevar.h
+++ b/sys/include/dev/ic/nvmevar.h
@@ -215,7 +215,10 @@ struct nvme_state {
struct nvme_ns {
size_t nsid; /* Namespace ID */
size_t lba_bsize; /* LBA block size */
+ size_t size; /* Size in logical blocks */
+ struct nvme_lbaf lba_fmt; /* LBA format */
struct nvme_state *cntl; /* NVMe controller */
+ TAILQ_ENTRY(nvme_ns) link;
};
#endif