Add support for NVMe passthrough commands IDENTIFY, GET_LOG_PG and SELFTEST.
authorkrw <krw@openbsd.org>
Fri, 24 May 2024 12:04:07 +0000 (12:04 +0000)
committerkrw <krw@openbsd.org>
Fri, 24 May 2024 12:04:07 +0000 (12:04 +0000)
commit4e9514d60fb4d69f691e54fb93f4cf466d5cb97c
treeba95acfd3ca63ecd8369a0f269e017f4aaaea229
parenta5d4cb3dc988b1bb7bb140ca2644fe597a77458b
Add support for NVMe passthrough commands IDENTIFY, GET_LOG_PG and SELFTEST.

Enables suitably inquisitive software (e.g. smartmontools) to get information on
nvme(4) disks.

Based on work with dlg@ at h2k23, various at p2k24 and subsequent improvements
and tests by jmatthew@.

ok dlg@ for more permissive h2k23 version, jmatthew@
sys/dev/ic/nvme.c
sys/dev/ic/nvmeio.h [new file with mode: 0644]
sys/dev/ic/nvmereg.h