From 14c6487648771963e7688c4d6338392e60ee0d87 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 30 Mar 2024 20:25:11 -0400 Subject: kernel: nvme: Keep track of namespaces Signed-off-by: Ian Moffett --- sys/include/dev/ic/nvmevar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') 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 -- cgit v1.2.3