]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
test: add CSTS.ST, CAP.CPS and CAP.NSSS registers
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 28 Apr 2024 13:12:05 +0000 (22:12 +0900)
committerDaniel Wagner <wagi@monom.org>
Tue, 30 Apr 2024 09:08:06 +0000 (11:08 +0200)
Added by NVMe revision 2.0 changes.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
test/register.c

index 8a41628e459d556f4531815e1388dac46ce25284..a7dd07665135e698303562f128f5bf44ff3dd627 100644 (file)
@@ -79,10 +79,13 @@ void nvme_print_registers(void *regs)
        printf("  %-8s : %llx\n", "NSSRC", NVME_CAP_NSSRC(cap));
        printf("  %-8s : %llx\n", "CSS", NVME_CAP_CSS(cap));
        printf("  %-8s : %llx\n", "BPS", NVME_CAP_BPS(cap));
+       printf("  %-8s : %llx\n", "CPS", NVME_CAP_CPS(cap));
        printf("  %-8s : %llx\n", "MPSMIN", NVME_CAP_MPSMIN(cap));
        printf("  %-8s : %llx\n", "MPSMAX", NVME_CAP_MPSMAX(cap));
-       printf("  %-8s : %llx\n", "CMBS", NVME_CAP_CMBS(cap));
        printf("  %-8s : %llx\n", "PMRS", NVME_CAP_PMRS(cap));
+       printf("  %-8s : %llx\n", "CMBS", NVME_CAP_CMBS(cap));
+       printf("  %-8s : %llx\n", "NSSS", NVME_CAP_NSSS(cap));
+       printf("  %-8s : %llx\n", "CRMS", NVME_CAP_CRMS(cap));
 
        printf("%-10s : %x\n", "VS", vs);
        printf("  %-8s : %x\n", "MJR", NVME_VS_TER(vs));
@@ -107,6 +110,7 @@ void nvme_print_registers(void *regs)
        printf("  %-8s : %x\n", "SHST", NVME_CSTS_SHST(csts));
        printf("  %-8s : %x\n", "NSSRO", NVME_CSTS_NSSRO(csts));
        printf("  %-8s : %x\n", "PP", NVME_CSTS_PP(csts));
+       printf("  %-8s : %x\n", "ST", NVME_CSTS_ST(csts));
 
        printf("%-10s : %x\n", "NSSR", nssr);