NVMe 1.2.1

This commit is contained in:
nonaka 2017-02-13 11:11:32 +00:00
parent 5bfb6e7e1e
commit 99f4fefd7e
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nvme.c,v 1.23 2017/02/13 11:10:45 nonaka Exp $ */
/* $NetBSD: nvme.c,v 1.24 2017/02/13 11:11:32 nonaka Exp $ */
/* $OpenBSD: nvme.c,v 1.49 2016/04/18 05:59:50 dlg Exp $ */
/*
@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.23 2017/02/13 11:10:45 nonaka Exp $");
__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.24 2017/02/13 11:11:32 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -173,6 +173,9 @@ nvme_version(struct nvme_softc *sc, uint32_t ver)
case NVME_VS_1_2:
v = "1.2";
break;
case NVME_VS_1_2_1:
v = "1.2.1";
break;
default:
aprint_error_dev(sc->sc_dev, "unknown version 0x%08x\n", ver);
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: nvmereg.h,v 1.6 2016/10/08 16:05:32 jdolecek Exp $ */
/* $NetBSD: nvmereg.h,v 1.7 2017/02/13 11:11:32 nonaka Exp $ */
/* $OpenBSD: nvmereg.h,v 1.10 2016/04/14 11:18:32 dlg Exp $ */
/*
@ -41,6 +41,7 @@
#define NVME_VS_1_0 0x00010000
#define NVME_VS_1_1 0x00010100
#define NVME_VS_1_2 0x00010200
#define NVME_VS_1_2_1 0x00010201
#define NVME_INTMS 0x000c /* Interrupt Mask Set */
#define NVME_INTMC 0x0010 /* Interrupt Mask Clear */
#define NVME_CC 0x0014 /* Controller Configuration */