git: ae2a9307b5ea - stable/14 - nvme: Add constants for the extended data for Get Log Page command flag

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Aug 2024 01:06:27 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=ae2a9307b5ea306cb4316f35c9c4d1d9105b56f8

commit ae2a9307b5ea306cb4316f35c9c4d1d9105b56f8
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-03-23 00:23:46 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-08-26 18:27:42 +0000

    nvme: Add constants for the extended data for Get Log Page command flag
    
    nvme(4) doesn't check this flag, but Fabrics implementations may need
    to set this flag in the log page attributes cdata field.
    
    Reviewed by:    imp
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D44444
    
    (cherry picked from commit cbda1886ab1cd3ec2847b7da5136d3bb68d56101)
---
 sys/dev/nvme/nvme.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
index 04eec1ff0917..70d293cf278e 100644
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -358,6 +358,9 @@ enum nvme_psdt {
 /* per namespace smart/health log page */
 #define NVME_CTRLR_DATA_LPA_NS_SMART_SHIFT		(0)
 #define NVME_CTRLR_DATA_LPA_NS_SMART_MASK		(0x1)
+/* extended data for Get Log Page command */
+#define NVME_CTRLR_DATA_LPA_EXT_DATA_SHIFT		(2)
+#define NVME_CTRLR_DATA_LPA_EXT_DATA_MASK		(0x1)
 
 /** AVSCC - admin vendor specific command configuration */
 /* admin vendor specific commands use spec format */