Skip to content

Commit 9b3ddf5

Browse files
authored
Merge pull request #133 from sc108-lee/update-id-ctrl
recover monolithic commit 782086cc4fd590f1df171c927ebf9a2debc0a052
2 parents 8654fc7 + 95708cb commit 9b3ddf5

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

doc/libnvme.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6425,7 +6425,7 @@ Returns true if given offset is 64bit register, otherwise it returns false.
64256425
__u8 nvscc;
64266426
__u8 nwpc;
64276427
__le16 acwu;
6428-
__u8 rsvd534[2];
6428+
__le16 ocfs;
64296429
__le32 sgls;
64306430
__le32 mnan;
64316431
__u8 rsvd544[224];
@@ -6750,6 +6750,10 @@ Returns true if given offset is 64bit register, otherwise it returns false.
67506750
and Write fused operation. This field is specified in logical
67516751
blocks and is a 0’s based value.
67526752
6753+
``ocfs``
6754+
Optional Copy Formats Supported, each bit n means controller supports
6755+
Copy Format n.
6756+
67536757
``sgls``
67546758
SGL Support, see :c:type:`enum nvme_id_ctrl_sgls <nvme_id_ctrl_sgls>`
67556759

doc/man/struct nvme_id_ctrl.2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct nvme_id_ctrl {
152152
.br
153153
.BI " __le16 acwu;"
154154
.br
155-
.BI " __u8 rsvd534[2];"
155+
.BI " __le16 ocfs;"
156156
.br
157157
.BI " __le32 sgls;"
158158
.br
@@ -424,6 +424,9 @@ operation guaranteed to be written atomically to the NVM across
424424
all namespaces with any supported namespace format for a Compare
425425
and Write fused operation. This field is specified in logical
426426
blocks and is a 0’s based value.
427+
.IP "ocfs" 12
428+
Optional Copy Formats Supported, each bit n means controller
429+
supports Copy Format n.
427430
.IP "sgls" 12
428431
SGL Support, see \fIenum nvme_id_ctrl_sgls\fP
429432
.IP "mnan" 12

src/nvme/types.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ struct nvme_id_psd {
862862
* all namespaces with any supported namespace format for a Compare
863863
* and Write fused operation. This field is specified in logical
864864
* blocks and is a 0’s based value.
865+
* @ocfs: Optional Copy Formats Supported, each bit n means controller
866+
* supports Copy Format n.
865867
* @sgls: SGL Support, see &enum nvme_id_ctrl_sgls
866868
* @mnan: Maximum Number of Allowed Namespaces indicates the maximum
867869
* number of namespaces supported by the NVM subsystem.
@@ -965,7 +967,7 @@ struct nvme_id_ctrl {
965967
__u8 icsvscc;
966968
__u8 nwpc;
967969
__le16 acwu;
968-
__u8 rsvd534[2];
970+
__le16 ocfs;
969971
__le32 sgls;
970972
__le32 mnan;
971973
__u8 maxdna[16];

0 commit comments

Comments
 (0)