summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/nvmereg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/nvmereg.h b/sys/dev/ic/nvmereg.h
index a49dd64d5ac..7d50fbd2ff1 100644
--- a/sys/dev/ic/nvmereg.h
+++ b/sys/dev/ic/nvmereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvmereg.h,v 1.6 2016/01/15 03:39:13 dlg Exp $ */
+/* $OpenBSD: nvmereg.h,v 1.7 2016/04/13 12:36:35 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -187,6 +187,13 @@ struct nvme_cqe {
#define NVM_ADMIN_FW_ACTIVATE 0x10 /* Firmware Activate */
#define NVM_ADMIN_FW_DOWNLOAD 0x11 /* Firmware Image Download */
+#define NVM_CMD_FLUSH 0x00 /* Flush */
+#define NVM_CMD_WRITE 0x01 /* Write */
+#define NVM_CMD_READ 0x02 /* Read */
+#define NVM_CMD_WR_UNCOR 0x04 /* Write Uncorrectable */
+#define NVM_CMD_COMPARE 0x05 /* Compare */
+#define NVM_CMD_DSM 0x09 /* Dataset Management */
+
/* Power State Descriptor Data */
struct nvm_identify_psd {
u_int16_t mp; /* Max Power */