diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-08 23:03:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-08 23:03:00 -0400 |
commit | 0afeb373b8404636770904da99d753a7d8d88eed (patch) | |
tree | 60f804379191d7913266744ea4ff57cd09cc4b9c /sys/include | |
parent | 1d32ff6705d2e2770c0e601be39a701993f22fe5 (diff) |
kernel: nvme: Add drive read/write support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-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 50f5ae0..52fa5ad 100644 --- a/sys/include/dev/ic/nvmevar.h +++ b/sys/include/dev/ic/nvmevar.h @@ -38,6 +38,7 @@ #define NVME_OP_IDENTIFY 0x06 /* I/O commands */ +#define NVME_OP_WRITE 0x01 #define NVME_OP_READ 0x02 struct nvme_common_cmd { @@ -119,6 +120,7 @@ struct nvme_cmd { struct nvme_common_cmd common; struct nvme_create_iocq_cmd create_iocq; struct nvme_create_iosq_cmd create_iosq; + struct nvme_rw_cmd rw; }; }; @@ -243,6 +245,7 @@ struct nvme_queue { struct nvme_state { struct nvme_queue adminq; struct nvme_bar *bar; + dev_t major; }; /* NVMe namespace */ @@ -253,6 +256,7 @@ struct nvme_ns { struct nvme_queue ioq; /* I/O queue */ struct nvme_lbaf lba_fmt; /* LBA format */ struct nvme_state *cntl; /* NVMe controller */ + dev_t dev_id; TAILQ_ENTRY(nvme_ns) link; }; |