From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751785AbdFGJsE (ORCPT ); Wed, 7 Jun 2017 05:48:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:53343 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751559AbdFGJpw (ORCPT ); Wed, 7 Jun 2017 05:45:52 -0400 From: Johannes Thumshirn To: Christoph Hellwig , Sagi Grimberg , Keith Busch Cc: Hannes Reinecke , Max Gurtovoy , Linux NVMe Mailinglist , Linux Kernel Mailinglist , Johannes Thumshirn Subject: [PATCH v6 03/10] nvme: introduce NVMe Namespace Identification Descriptor structures Date: Wed, 7 Jun 2017 11:45:30 +0200 Message-Id: <20170607094536.32419-4-jthumshirn@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170607094536.32419-1-jthumshirn@suse.de> References: <20170607094536.32419-1-jthumshirn@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Johannes Thumshirn Reviewed-by: Max Gurtovoy Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke --- include/linux/nvme.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/linux/nvme.h b/include/linux/nvme.h index c004af5faa48..01d75c2b32a6 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -289,6 +289,7 @@ enum { NVME_ID_CNS_NS = 0x00, NVME_ID_CNS_CTRL = 0x01, NVME_ID_CNS_NS_ACTIVE_LIST = 0x02, + NVME_ID_CNS_NS_DESC_LIST = 0x03, NVME_ID_CNS_NS_PRESENT_LIST = 0x10, NVME_ID_CNS_NS_PRESENT = 0x11, NVME_ID_CNS_CTRL_NS_LIST = 0x12, @@ -315,6 +316,22 @@ enum { NVME_NS_DPS_PI_TYPE3 = 3, }; +struct nvme_ns_id_desc { + __u8 nidt; + __u8 nidl; + __le16 reserved; +}; + +#define NVME_NIDT_EUI64_LEN 8 +#define NVME_NIDT_NGUID_LEN 16 +#define NVME_NIDT_UUID_LEN 16 + +enum { + NVME_NIDT_EUI64 = 0x01, + NVME_NIDT_NGUID = 0x02, + NVME_NIDT_UUID = 0x03, +}; + struct nvme_smart_log { __u8 critical_warning; __u8 temperature[2]; -- 2.12.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: jthumshirn@suse.de (Johannes Thumshirn) Date: Wed, 7 Jun 2017 11:45:30 +0200 Subject: [PATCH v6 03/10] nvme: introduce NVMe Namespace Identification Descriptor structures In-Reply-To: <20170607094536.32419-1-jthumshirn@suse.de> References: <20170607094536.32419-1-jthumshirn@suse.de> Message-ID: <20170607094536.32419-4-jthumshirn@suse.de> Signed-off-by: Johannes Thumshirn Reviewed-by: Max Gurtovoy Reviewed-by: Sagi Grimberg Reviewed-by: Hannes Reinecke --- include/linux/nvme.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/linux/nvme.h b/include/linux/nvme.h index c004af5faa48..01d75c2b32a6 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -289,6 +289,7 @@ enum { NVME_ID_CNS_NS = 0x00, NVME_ID_CNS_CTRL = 0x01, NVME_ID_CNS_NS_ACTIVE_LIST = 0x02, + NVME_ID_CNS_NS_DESC_LIST = 0x03, NVME_ID_CNS_NS_PRESENT_LIST = 0x10, NVME_ID_CNS_NS_PRESENT = 0x11, NVME_ID_CNS_CTRL_NS_LIST = 0x12, @@ -315,6 +316,22 @@ enum { NVME_NS_DPS_PI_TYPE3 = 3, }; +struct nvme_ns_id_desc { + __u8 nidt; + __u8 nidl; + __le16 reserved; +}; + +#define NVME_NIDT_EUI64_LEN 8 +#define NVME_NIDT_NGUID_LEN 16 +#define NVME_NIDT_UUID_LEN 16 + +enum { + NVME_NIDT_EUI64 = 0x01, + NVME_NIDT_NGUID = 0x02, + NVME_NIDT_UUID = 0x03, +}; + struct nvme_smart_log { __u8 critical_warning; __u8 temperature[2]; -- 2.12.3