From nobody Sat Mar 23 00:25:39 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V1g2q4nl9z5Fl8w; Sat, 23 Mar 2024 00:25:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V1g2q2DL1z4Ylr; Sat, 23 Mar 2024 00:25:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711153539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LkqUUCfK2KKz72okTM/pwp0lojnYMYlJAjoBLZDORug=; b=RsZHz4NabFgLVYgatvbK0XkP/lKRERZyyPTL4K5CzdeSgEcqoLhwlOb4W/f03TA27EVASj 7tHXxDc7FnLsGbylX5u6T5XQVAaqjaaEgjerCHOqjHcg7qTGZwEgrBOSHiqfXfp48oXanD SPCD36+h9gJgd/0y5zM4+MgrsgHY0WnbrouyWLC4BmriR9QDMP00w7+1majb+p69nQDR5W OSzNMpFQWExuCKyn4MeFGC7mLYDpFOve952yNjomOcqXpNyR8svRcaCxD4a1dcyUp1r5aW UmVa1/5bpUOVDHtY0lEqG/3yEzREguAbxDu5TaeiATvcqxeKLRkcaXzbfg/x/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711153539; a=rsa-sha256; cv=none; b=Ws6oguVGyFq2aJFD8n3PwZ27GDj/ZSndajP16r7sRr7udPEE9zqy+oVVtfyX+OuIViklyf 53XoFINDsj0ytGLjC2ec6V+yM0OD0Nod/gD77WJcgj/PrfaQ17AM3OuL39siZheIfy7HZv 8N7gt0LDtFRKhaKaM4x5c/8znWKpWo00nkf7tKtc7XOGxfQpLtIvakSPx/DBLkumr+iekl Vojix3c1vX5/UN3/5g21goJNHJOJ6fk8S1zO7iD6Gij+tcfqRn8a/tIUyH5rZNPnsnor3r uQzUnAHnbGDWDaSYcGbgVSwopmZLRnOsTPPkDYwOohHNpVpHXGy9jLd6pLERbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711153539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LkqUUCfK2KKz72okTM/pwp0lojnYMYlJAjoBLZDORug=; b=XshMgNfYqc9EwSJbJXkGetPdobUfllwMFDzOCiuy6W5RMSrUMrGOLlee/y61nnXVgTMGRB YD2RTV/DETJMPqcPGJPelBVJ73/+LfUJJivS+mYgQEABkGhNPYzxfkzUlFe9pdSCGuxoWp LULxKu2715pXKaqbk8uEcsiYtte7AAJJklBZ+9dQ8S0dgbF32x7ZV+xMkRLV7Ww2XttsFe UlPCO+d+9FmwxgHdCXBcBEx72g4I3f0fpPoUbBA6/a/skB+SiIL/W8zWDiezDnXFxQd6zd oRY+crE+wOKg+qBJmvhzBSiuL15/+w84jWImNttXAuxotOrQM8IBqV+AeHtaHQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V1g2q1r34zQgd; Sat, 23 Mar 2024 00:25:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42N0Pddf005996; Sat, 23 Mar 2024 00:25:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42N0Pdsc005993; Sat, 23 Mar 2024 00:25:39 GMT (envelope-from git) Date: Sat, 23 Mar 2024 00:25:39 GMT Message-Id: <202403230025.42N0Pdsc005993@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 7fa8adb8c5cd - main - nvme: Add constants for the Controller Attributes field in cdata List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7fa8adb8c5cd46979b76770794ac1b6584e8baa7 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7fa8adb8c5cd46979b76770794ac1b6584e8baa7 commit 7fa8adb8c5cd46979b76770794ac1b6584e8baa7 Author: John Baldwin AuthorDate: 2024-03-23 00:24:31 +0000 Commit: John Baldwin CommitDate: 2024-03-23 00:24:31 +0000 nvme: Add constants for the Controller Attributes field in cdata Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44447 --- sys/dev/nvme/nvme.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index fcc96a26eeb1..8e99cb7b5356 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -311,6 +311,38 @@ enum nvme_psdt { #define NVME_CTRLR_DATA_OAES_LOG_PAGE_CHANGE_SHIFT (31) #define NVME_CTRLR_DATA_OAES_LOG_PAGE_CHANGE_MASK (0x1) +/** CTRATT - Controller Attributes */ +/* supports 128-bit Host Identifier */ +#define NVME_CTRLR_DATA_CTRATT_128BIT_HOSTID_SHIFT (0) +#define NVME_CTRLR_DATA_CTRATT_128BIT_HOSTID_MASK (0x1) +/* supports Non-Operational Power State Permissive Mode */ +#define NVME_CTRLR_DATA_CTRATT_NONOP_POWER_STATE_SHIFT (1) +#define NVME_CTRLR_DATA_CTRATT_NONOP_POWER_STATE_MASK (0x1) +/* supports NVM Sets */ +#define NVME_CTRLR_DATA_CTRATT_NVM_SETS_SHIFT (2) +#define NVME_CTRLR_DATA_CTRATT_NVM_SETS_MASK (0x1) +/* supports Read Recovery Levels */ +#define NVME_CTRLR_DATA_CTRATT_READ_RECOVERY_LVLS_SHIFT (3) +#define NVME_CTRLR_DATA_CTRATT_READ_RECOVERY_LVLS_MASK (0x1) +/* supports Endurance Groups */ +#define NVME_CTRLR_DATA_CTRATT_ENDURANCE_GROUPS_SHIFT (4) +#define NVME_CTRLR_DATA_CTRATT_ENDURANCE_GROUPS_MASK (0x1) +/* supports Predictable Latency Mode */ +#define NVME_CTRLR_DATA_CTRATT_PREDICTABLE_LATENCY_SHIFT (5) +#define NVME_CTRLR_DATA_CTRATT_PREDICTABLE_LATENCY_MASK (0x1) +/* supports Traffic Based Keep Alive Support */ +#define NVME_CTRLR_DATA_CTRATT_TBKAS_SHIFT (6) +#define NVME_CTRLR_DATA_CTRATT_TBKAS_MASK (0x1) +/* supports Namespace Granularity */ +#define NVME_CTRLR_DATA_CTRATT_NAMESPACE_GRANULARITY_SHIFT (7) +#define NVME_CTRLR_DATA_CTRATT_NAMESPACE_GRANULARITY_MASK (0x1) +/* supports SQ Associations */ +#define NVME_CTRLR_DATA_CTRATT_SQ_ASSOCIATIONS_SHIFT (8) +#define NVME_CTRLR_DATA_CTRATT_SQ_ASSOCIATIONS_MASK (0x1) +/* supports UUID List */ +#define NVME_CTRLR_DATA_CTRATT_UUID_LIST_SHIFT (9) +#define NVME_CTRLR_DATA_CTRATT_UUID_LIST_MASK (0x1) + /** OACS - optional admin command support */ /* supports security send/receive commands */ #define NVME_CTRLR_DATA_OACS_SECURITY_SHIFT (0)