Schema¶
senfd writes three documents. Each is JSON, validated against a JSON
schema. The FigureDocument holds the figures of a document as their
tables are. The NormalizedFigureDocument holds each figure by the
shape of its table and the subject of its caption. The SpecDocument is
the data model of the specification. The schemas are in the repository,
under src/senfd/schemas, and are shown in full below.
The data model¶
The SpecDocument is the data model. merged.spec.document.json merges
the data models of all the documents given. senfd makes a key of the data
model from a name or a column header: its words in lower case, joined by
underscores, with "I/O" as one word. The key of Create I/O Completion Queue
is create_io_completion_queue. The SpecDocument has these parts:
meta: the format of the data model; the version of senfd that made the data model and the SHA-256 of that senfd's source; the name of the document, ormergedfor the merged data model; and the file the data model was made from, with that file's SHA-256, which identifies a published document. The merged data model has two more SHA-256 hashes: one of the documents it is made from, and one of those documents together with senfd's source. Format and instance describes them.documents: the documents the data model is made from, by name, each with its file and SHA-256, so the merged data model lists every document in it. Each also has thenameof its specification, such as "NVM Command Set", thekeyof the specification without the revision, such asnvm, and therevision, such as1.3.command_sets: each command set by itskey, with itskind, itstitleas the specifications write it, such as "NVM Command Set" or "I/O Commands", the key of thedocumentwhose opcode table lists it, and its commands. A command has the fields ituses, as its section states them, such asDPTRandCDW10of "The Set Features command uses the Data Pointer and Command Dword 10", and the fields itdelegated, each with thefieldswhose use theselectorsselect, such asCDW11toCDW15, which are "Feature specific", byFID. Where the section states no such sentence,uses_statedis false, andusesare the fields that the figures of the command lay out, other than reserved fields and fields that are not used:CDW3,MPTR,DPTRandCDW10toCDW15of Read. The commands of the Management Interface and the Fabrics command have no suchuses. A command has the opcode table's other columns of it, andtypedholds those of a known kind as on an entry of a table of values: the bits of the opcode, as "0000 01b" of07_02, and whether the command uses the namespace identifier. A command has itsopcode, its submission queue entry dwordssqe, its completion queue entry dwordscqe, itsoperations, itsstatus_values, the tables of the status values specific to it, and itsstatus_codes, each status value whose "Commands Affected" names it, by thesourceof its table, thefieldand thevalue. A name matches a command of the table's own document first, and otherwise the one command of that name in another document, as Read of the Zoned Namespace table, a command of the NVM Command Set.featuresandlog_pages: features and log pages by identifier. A feature has the dwords of the commands that set and get it, and itsoperations. A log page has thestructurethat lays it out, andaliases, the other names that tables give it.structures: every layout that is not the dwords of a command: data structures, the layouts of log pages, and registers. Thetitleof a structure is the name its caption gives, such as "CC - Controller Configuration". The title is split into thename, "Controller Configuration", and theacronym, "CC". Where the part before " - " is no acronym, it is theowner, such as "Identify" of "Identify - Identify Controller". Text in parentheses is the acronym, as "CH" of "PDU Common Header (CH)", the flagoptional, or else thequalifier, as "Set Features" of "Timestamp (Set Features)". Thekeyof a structure is unique among the structures of its document. It is the key of the name without "Data Structure", the name of the document's command set, and words such as "I/O Command Set Specific". Where two keys would be the same, each takes those words back, then its owner, its qualifier, its kind and its figure number, as far as needed to tell them apart. A register has itsoffsetin bytes, counted fromoffset_basefor a register of a PCI capability, or anoffset_formulafor the doorbell registers.sizeis the size of the structure in bytes, where no range of its fields is a formula.values: the tables of values, such as status codes or identifiers, by thekindof their caption, with thescopethat the caption limits them to. Each entry has aname, and can have anacronym. Where the value of an entry is a code, a range or a list of codes, a number, or "All others",typedholds it as such under the key of its column. Theroleof an entry isfield, or the place the entry holds, such asreserved. A table of status values has thestatus_code_typeits caption names, as 1 of "Command Specific Status Values", and astatus_scopeofio_command_setorfabricswhere the caption confines the codes to the I/O command sets or to Fabrics commands.dwords: the dwords of every figure, by the name its caption gives, as read.unassignedholds the dwords that no command, feature or operation claims.diagnosticsanderrata: what senfd normalised or could not read, and the candidate errata, each with its location.
Format and instance¶
The format of the data model is its shape, as the schemas define it. senfd
owns the format, and increments meta.format whenever the shape
changes. A test fails when the schemas change and the format does not.
A data model made from particular documents is an instance of the format.
The merged data model identifies its instance by three SHA-256 hashes.
input_sha256 is the hash of the documents the data model is made from,
in whatever order they were given. senfd_sha256 is the hash of the
source of the senfd that read them. It leaves out sate, because sate only
answers from the data model. combined_sha256 is the hash of the two
together. The same documents read by the same senfd give the same data
model, so two data models with the same combined hash are the same. When
two answers differ, the input hash shows whether the documents differ, and
the senfd hash shows whether the reading differs.
Commands, structures and values¶
The kind of a command set is io, common_io, admin,
fabrics or management_interface. An I/O Command Set specification defines an I/O
command set, which has the Command Set Identifier that Base 2.4 Figure 337
gives it in identifier, for example 00h for NVM. Base 2.4 defines some
I/O commands, such as Flush, for use in all I/O command sets. These commands
belong to no command set and have no Command Set Identifier. senfd lists
them as the command set "Common I/O", of the kind common_io. The kind
management_interface is for the command sets of the Management Interface
specification.
The Fabrics commands of Base 2.4 share the opcode 7Fh and differ in their
Fabrics Command Type, as Figure 29 lists them. senfd gives them as the
command set "Fabrics", of the kind fabrics, with one command "Fabrics"
of the opcode 7Fh, whose sqe is Command Dword 0 of Figure 96. Each
Fabrics command is an operation of that command, selected by FCTYPE.
The figure of its submission queue entry, as Figure 635 of Connect, is its
sqe, dwords 0 to 15 with the fields in bits. The figure of its response
is its cqe, and the figure of the data it transfers, as Figure 636, is
in its structures. These figures are structures of their own too.
An operation is what a command or a feature does for one value of a
selecting field, for example each directive operation. Dwords are an
operation of a command when they are in a section below the section of the
command, and the title of their section gives a code of a field of the
command, for example "SMBus/I2C Frequency (Configuration Identifier 01h)"
below Configuration Get. Dwords whose caption names a field of a command are
an operation of that command too, for example "Command Dword 11 - CNS
Specific Identifier" in "NVM Set List (CNS 04h)". The code is in
selectors. The Lockdown Persistence Personality is an operation of the
feature Configurable Device Personality, selected by PERID 02h.
Where every field of the dwords of an operation lies within one field of the
dwords of the command, the operation has refines, the acronym of that
field: LSP of Get Log Page for the FDP Events log page, and CNSSID of
Identify for the CNS values that use it. An operation selected by a Command
Set Identifier has the command set in its name where the name does not
already say it, for example "I/O Command Set specific Identify Namespace
Data Structure (Key Value)". Dwords laid out under a condition of the form
"CETYPE is non-zero" have selected_when: the acronym of the field, the
comparison and the value. The text of the condition stays in condition.
A log page is one entry for each identifier. The first table of log page
identifiers that lists the identifier gives the name, and the names in other
tables go to aliases. The structure of a log page is the figure in
the section that its row cites, for example Base 2.4 Figure 270 for 12h.
In every part of the data model, a Dwords is the dwords from lower
to upper with their fields, possibly under a condition. A field,
Bits, is a range of bits or bytes, as given by unit. A field
has a name, an acronym and nested fields. A row that has a
range and a nested table but no name is a field named after its range,
for example "Byte 00". Where fields share
bits, a field also names the union and alternative it belongs to.
A field lists the values it takes. Where the description of a field
refers to a table of values in another figure instead of listing the
values, for example "Refer to Figure 336" for CNS of the Identify command,
the field has values_in. values_in is the source of that table,
and the table is the entry of values with the same source.
A footnote marker is a number printed raised after a name, a value or a
cell, and is not part of the text. The readers of the PDF and of the
.docx return a marker as superscript digits, and senfd moves the markers
out of the text. A field lists the numbers marked on its name, its
description and its other columns in footnotes. An entry of a table of
values lists them in footnotes too, and by the key of the column in
marked. A command, a feature and a log page have footnotes, the
numbers marked on the name and the other columns of its row, by the key of
the column. A raised number after another digit is an exponent and stays in
the text, for example the 16 of 2 to the power of 16, except after a lone 0
or 1, where it is a marker.
A figure lists the entries of an array as fields numbered by their index,
with a "..." row in place of the entries between them, for example LBAF0,
LBAF1, "..." and LBAF63 of the Identify Namespace data structure. Each
listed entry has array, which holds the name and the acronym of
the entries without the index, the index of the entry, the index of the
first entry, the count of entries, the stride, which is the size
of one entry in bits or bytes, and lower, the offset where the first
entry starts. A generator writes the array at the entry whose index is
first, and skips the other entries. Where the figure gives the range of
the last entry as a formula, count is null, and so is the index of
that entry.
senfd also makes an array of a run of two or more fields that the figure lists in full, such as TSEN1 to TSEN8, or TMT1TC and TMT2TC. A run of two is an array only where the figure leaves out no row that senfd cannot read. A run numbered in hexadecimal, such as Performance Attribute C1h to FFh Identifier, is an array too. An entry of another width at its place in a run, such as Host Fabric Interface Descriptor 2 of Boot 1.4, is an entry of the array and a candidate erratum.
Some figures give the ranges of the entries by the data, for example the ANA
Group Descriptors at "n:16" and "m:n+1", or by a text, for example the Media
Unit Status Descriptors at "NOTE 1". Such a run is an array without a count.
Its stride and lower are null where the widths or the offsets of the
entries depend on the data. One entry followed by a last entry numbered by a
name, such as Entry 0 and Entry N of the Discovery log page, is such an
array too. Where the entries of two runs alternate, such as Zone Descriptor
and Zone Descriptor Extension of ZNS 1.5 Figure 37, each pair is one entry
of an array without a stride, named "Zone Descriptor and Zone Descriptor
Extension 0", whose fields are the two at offsets from the start of the
entry. A range "n/a" is not a range that the data gives.
Where the formula of the last entry of a run gives a width, the array has
that stride, and the entries of another width are candidate errata. For
example, the formula of Exported NVM Subsystem Descriptor N of Base 2.4
Figure 384 gives 260 bytes, and Descriptors 1 and 2 are 520 and 22 bytes. An
array without a count takes its maximum from the field that counts its
entries, for example "up to 127 entries" of NUMENT. Where the last entry
names a field of the structure in place of its index, as "Zone Identifier
NZID-1", the array has counted_by, the acronym of that field. The rows of a group
that a column names by an index, such as "Source Range 0" to "Source Range
127" of NVM 1.3 Figure 40, are one field, an entry of the array of those
groups, whose fields are the rows at offsets from the start of the
entry.
A field has structure where another figure lays out the field. Where
that figure lays out bits and the field is no entry of an array, the field
also has the fields of that figure as its own fields, counted from bit
0 of the field: DW3 of the Completion Queue Entry of Base 2.4 Figure 97
holds STATUS, P and CID, and STATUS holds DNR to SC, which Figure 101
gives at bits 31:17. A data structure that a figure gives in bits, whose
fields all start and end at byte boundaries, is given in bytes, as the LBA
Format Extension of ZNS 1.5, unless a field other than an entry of an
array lays it out.
structure is the source of that figure, and the structure is the
entry of structures with the same source. senfd links a field that
has no subfields to a structure when the description of the field refers
to the figure of the structure, for example "defined in Figure 125", and
the structure is as wide as the field. senfd links an entry of an array
that refers to no figure to the structure whose name appears in its
description, for example "an I/O Command Set Vector". A field that refers
to no figure is linked to the one structure as wide as it in a section its
description cites, or, of several, to the one whose fields the others
divide further, as SGL1 to the Generic SGL Descriptor Format. A field
named with a number, as "PRP Entry 1", is linked to the structure captioned
with that name, as "PRP Entry - Page Base Address and Offset". The kind
of a structure that lays out the entries of an array is
data_structure, whatever its caption says.
A field whose description cites a section is also linked to the structure in that section whose fields cover exactly the bits of the field, for example STATUS of Base 2.4 Figure 99 to the Status Field of Figure 101. senfd does not link a field to a structure whose only field has the acronym and the range of the field.
Two structures of a document have two names. Where a log page and a data structure have the same name, as Base 2.4 Figures 216 and 217 do, the name of the data structure ends in "Data Structure". An entry of a list, such as "AVE Discovery Log Page Entry", is a data structure whose name ends in "Entry". A figure whose caption repeats the caption of another figure takes the name of the field it lays out, and the caption is a candidate erratum. Two structures with the same name and different qualifiers have their qualifiers in their names, for example "Timestamp (Set Features)". Base 2.4 Figure 97, the layout of a completion queue entry that all command sets share, is named "Completion Queue Entry", with the qualifier "Admin and All I/O Command Sets".
A table whose rows name the structure of each field, such as NVM 1.3 Figure
188, has the kind cited_fields. A table that maps the bytes of one
message to another, such as MI 2.2 Figure 49, has the kind mapping.
Neither kind lays out a structure of its own. A structure that lays out some
bytes of another structure has extends, the source of the other
structure. For example, NVM 1.3 Figure 126 lays out AWUN, AWUPF and ACWU of
Identify Controller. Where the text names the field that the figure lays
out, extends_field is the acronym of that field.
A field has encoding, which is "ascii", "utf-8" or "uuid", and
byte_order, where a document states them. The description of the field
can state them, for example "as an ASCII string" or "This field is big
endian". A paragraph that refers to the figure can state an encoding for a
term at the start of the name of the field, for example "The firmware
revision is indicated as an ASCII string" for the Firmware Slot Information
log page.
senfd also takes an encoding or a byte order from another field. A field
that has the value of another field, or holds bytes of it, takes the
encoding of that field, as NQNID of Base 2.4 Figure 698 takes the encoding
of SUBNQN. An NQN field takes the encoding of the NQN fields that state one.
A field takes the byte order or the encoding of the fields of the same name,
acronym and width in other documents, as NGUID of KV 1.4 takes the byte
order of NGUID in NVM 1.3. encoding_from and byte_order_from give
the source of the figure that a taken encoding or byte order comes from.
A field of one byte has no byte order.
The two fields of a value split over two fields, such as NUMDL and NUMDU,
"Number of Dwords Lower" and "Upper", have part: the name and the
acronym of the value, and the bit of the value where each field starts.
An entry of a table of CNS values has selects, the source of each
structure the value selects. For CNS 01h of the Base specification, these
are the Identify Controller data structure and the structures nested in it,
in the section that the entry's reference cites. An entry whose reference
cites another document selects what the same value selects there. An entry
that the Command Set Identifier selects, with "Y" in its CSI column, and
that selects nothing in its own document, selects what the same value
selects in the document of each command set: CNS 05h selects the I/O
Command Set specific Identify Namespace data structure of the NVM, Key
Value, Zoned Namespace, Subsystem Local Memory and Computational Programs
command sets. The command sets are those whose documents the entries of
the Command Set Identifiers name, and such an entry has document, the
name of the document whose subject it names.
A value of a field also has selects where its name is the title of a
section one level below a section that the field's description cites. The
value selects the structures of that section, other than examples. PIF of
NVM 1.3 cites section 5.3.1, and its value 00b, "16b Guard Protection
Information", selects Figures 155 and 156 of section 5.3.1.1. Where a
caption lays a structure out under a condition, the structure has the
condition, and selected_when where the condition compares a field
with a value: Figure 155 holds where the STS field is cleared to 0h. A
condition can name the field by its name, as Base 2.4 Figure 201 names
Select; selected_when then has the acronym of the field of that name in
the section of the structure or the nearest section above it, SEL of Get
Features.
An entry of a table of values has the name that its row gives. Otherwise
senfd takes the name from a short definition, from a column that names the
value, such as the Management Operation column of SEL, from a first sentence
of at most three words, such as "Low" of AL in NVM 1.3, or from the title of
the section that the entry refers to. In a list where another value or a
range of reserved values has a name, a definition of one sentence of at most
six words is a name, for example "No action" of MO 00h. A name followed by
its initials is a name too, for example "Add or Replace Active ZoneGroup
(AAZ) operation" of ORI 2. The values of a case are named the same way.
senfd moves an aside in a name to the description, for example "(refer
to RFC 6234)", or "(no shutdown has been requested)" of SHST 00b. senfd
moves the text after a colon there too. A qualifier, such as "(Controller
scope)", stays in the name. The acronym of an entry comes from an
acronym before a colon, such as CAP of "CAP: Controller Capabilities", from
the initials after the name, such as GAZ of "Get Active ZoneGroup (GAZ)
operation", or from the Acronym column, such as PUID of PIT 001b in CP 1.2.
A table of the minimum and maximum values of a field, such as STS of NVM
1.3, gives none of the values of the field.
The meaning of a field can depend on the value of another field of its
figure. Bits 15:08 of Command Dword 13 of Zone Management Receive, ZRAS, are
the Reporting Options when ZRA is Report Zones or Extended Report Zones,
and are reserved for all other values of ZRA. The figure gives this in a
table in the cell of ZRAS, whose first column is headed "Zone Receive
Action". Such a field has cases. The selector of a case is the
acronym of the controlling field, and when lists the values of the
controlling field that the case applies to, each with its name as the
figure writes it and its value as a number. otherwise is true for
the case of all other values. A case also has the name, acronym,
role and description of the field in that case, and the values
and fields of the field in that case, with their ranges relative to the
field, as bytes 15:08 of DPTR for PRP2, which Base 2.4 Figure 93 gives as
bytes 39:32. The values of the field
itself apply whatever the value of the controlling field. Where the
controlling field is a field of another figure, the case has
selector_in, the source of that figure: DPTR of the Common Command
Format has cases by "CDW0.PSDT", and CDW0 of that figure is laid out by
Command Dword 0, which has PSDT. The DPTR of each command has the cases of
the DPTR of the Common Command Format, in the unit of its own figure, so
that DPTR of Read at bits 127:00 has PRP1 at bits 63:00, PRP2 at bits
127:64 and SGL1 at bits 127:00. A DPTR that its figure says is not used,
as of Memory Fill, has no cases.
A figure can draw a structure as a diagram instead of a table of ranges,
with the bits 7 to 0 as columns, one row for each byte, and each field
spanning the rows from the one marked "MSB" to the one marked "LSB". The
NVM Command Set specification draws the 16b, 32b and 64b Guard protection
information formats this way. senfd reads such a diagram as a structure of
bytes. The columns of each field hold msb_byte, the byte with the
most significant bits of the field, and lsb_byte, the byte with the
least significant bits. The Guard of the 16b format is bytes 1:0 with
msb_byte 0, so the field is stored with its most significant byte
first.
A value in a table of a known kind
is typed as what it is: a requirement level, a flag, an identifier, a
range, a note, a reference, reserved or vendor specific. Every part has a
source: the document, the section and its title, the figure and the
page. Where the document was read from a PDF, the source also has the
page of the file, pdf_page, at which a link to the PDF opens.
A field also states what it is. Its role is field, or a role that
holds a place. The kind of its range is span, with integer bounds
and a width; formula, written plainly as upper:lower; or
open. The kinds of a caption, of a typed value and of an erratum are
also enumerated in the schema.
The format of a data model can be verified against the schema alone, with
a JSON Schema validator and no part of senfd. An example with the Python
package jsonschema:
import json
import jsonschema
with open("schema/spec.document.schema.json") as schema:
with open("merged.spec.document.json") as document:
jsonschema.validate(json.load(document), json.load(schema))
senfd --dump-schema --output schema writes the schema. The schema
states what each kind must hold. The schema cannot state rules that depend
on the values, such as that an upper bound is not below its lower bound.
senfd checks those rules when it reads the data model into its types, and
refuses a data model that breaks them.
The schema is versioned with senfd, and the changelog states the changes of each release. The schema is a starting point for a data model of the specifications, not a standard. These parts are likely to stay: the commands with their dwords and fields, the features, the log pages, the structures and their sources. These parts are likely to change: how values are typed and how diagnostics are coded.
FigureDocument¶
{
"$defs": {
"Cell": {
"properties": {
"text": {
"title": "Text",
"type": "string"
},
"tables": {
"items": {
"$ref": "#/$defs/Table"
},
"title": "Tables",
"type": "array"
},
"merged": {
"anyOf": [
{
"enum": [
"left",
"up"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Merged"
}
},
"title": "Cell",
"type": "object"
},
"DocumentMeta": {
"description": "Who made the document and of what",
"properties": {
"format": {
"default": 8,
"description": "The format of the data model, the shape its schema gives",
"title": "Format",
"type": "integer"
},
"version": {
"default": "0.26.0",
"description": "The version of senfd that made it",
"title": "Version",
"type": "string"
},
"senfd_sha256": {
"description": "The SHA-256 of the source of the senfd that made it",
"title": "Senfd Sha256",
"type": "string"
},
"stem": {
"description": "The name of the document it is of, \"merged\" for the merged one",
"title": "Stem",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the specification the document is, without \"NVM Express\",\n\"Specification\" and the revision, for example \"NVM Command Set\" or \"Base\"",
"title": "Name"
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The key of the specification the document is, without its revision, for example\n\"base\", \"nvm\" or \"zns\". None for the merged data model and for a document that is\nno NVM Express specification.",
"title": "Key"
},
"revision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The revision of the specification, for example '2.4'",
"title": "Revision"
},
"file": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the file the document was made from, as given",
"title": "File"
},
"sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The SHA-256 of that file, by which a published document is known",
"title": "Sha256"
},
"input_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of the documents it is made from",
"title": "Input Sha256"
},
"combined_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of input_sha256 and senfd_sha256\ntogether, which the same documents read by the same senfd give again",
"title": "Combined Sha256"
}
},
"title": "DocumentMeta",
"type": "object"
},
"Figure": {
"description": "A figure as captioned in a table-of-figures in the Specification Documents.\n\nThis is a minimally enriched figure representation. The intent is that via regular\nexpressions, it should be possible to construct instances when feeding it with\nthe text from a table of figures or a table that conventionally contains a figure\ncaption in the first row.\n\nThe page number is only retrievable from table of figure captions and thus optional.\nThe table data is similarly represented in a form with minimal enrichment.",
"properties": {
"figure_nr": {
"title": "Figure Nr",
"type": "integer"
},
"caption": {
"title": "Caption",
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
},
"page_nr": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Page Nr"
},
"pdf_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Pdf Page"
},
"section": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section"
},
"section_title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section Title"
},
"mentions": {
"items": {
"type": "string"
},
"title": "Mentions",
"type": "array"
},
"table": {
"anyOf": [
{
"$ref": "#/$defs/Table"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"figure_nr",
"caption",
"description"
],
"title": "Figure",
"type": "object"
},
"Row": {
"properties": {
"cells": {
"items": {
"$ref": "#/$defs/Cell"
},
"title": "Cells",
"type": "array"
}
},
"title": "Row",
"type": "object"
},
"Table": {
"description": "Tabular data in the most raw form, can be irregular, that is, varying amount of\ncells in each row.",
"properties": {
"table_nr": {
"title": "Table Nr",
"type": "integer"
},
"rows": {
"items": {
"$ref": "#/$defs/Row"
},
"title": "Rows",
"type": "array"
}
},
"title": "Table",
"type": "object"
}
},
"properties": {
"meta": {
"$ref": "#/$defs/DocumentMeta",
"description": "The version of senfd that made the document, and what it is of"
},
"figures": {
"items": {
"$ref": "#/$defs/Figure"
},
"title": "Figures",
"type": "array"
},
"sections": {
"additionalProperties": {
"type": "string"
},
"description": "The title of each numbered section, by its number as printed",
"title": "Sections",
"type": "object"
}
},
"title": "FigureDocument",
"type": "object"
}
NormalizedFigureDocument¶
{
"$defs": {
"Diagnostic": {
"description": "Something about a figure that senfd normalised, or could not make sense of\n\nA 'note' is a variant senfd normalised; nothing is lost. A 'warning' is\nsomething left out of the output, as a row whose range is not a range.",
"properties": {
"figure_nr": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of the figure, where it is known",
"title": "Figure Nr"
},
"severity": {
"description": "'note' or 'warning'",
"enum": [
"note",
"warning"
],
"title": "Severity",
"type": "string"
},
"code": {
"description": "What kind it is, as \"figure-not-modelled\" or 'dwords-unassigned'",
"title": "Code",
"type": "string"
},
"message": {
"description": "What was found, with the document and the figure, said for a person",
"title": "Message",
"type": "string"
}
},
"required": [
"severity",
"code",
"message"
],
"title": "Diagnostic",
"type": "object"
},
"DocumentMeta": {
"description": "Who made the document and of what",
"properties": {
"format": {
"default": 8,
"description": "The format of the data model, the shape its schema gives",
"title": "Format",
"type": "integer"
},
"version": {
"default": "0.26.0",
"description": "The version of senfd that made it",
"title": "Version",
"type": "string"
},
"senfd_sha256": {
"description": "The SHA-256 of the source of the senfd that made it",
"title": "Senfd Sha256",
"type": "string"
},
"stem": {
"description": "The name of the document it is of, \"merged\" for the merged one",
"title": "Stem",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the specification the document is, without \"NVM Express\",\n\"Specification\" and the revision, for example \"NVM Command Set\" or \"Base\"",
"title": "Name"
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The key of the specification the document is, without its revision, for example\n\"base\", \"nvm\" or \"zns\". None for the merged data model and for a document that is\nno NVM Express specification.",
"title": "Key"
},
"revision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The revision of the specification, for example '2.4'",
"title": "Revision"
},
"file": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the file the document was made from, as given",
"title": "File"
},
"sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The SHA-256 of that file, by which a published document is known",
"title": "Sha256"
},
"input_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of the documents it is made from",
"title": "Input Sha256"
},
"combined_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of input_sha256 and senfd_sha256\ntogether, which the same documents read by the same senfd give again",
"title": "Combined Sha256"
}
},
"title": "DocumentMeta",
"type": "object"
},
"Layout": {
"properties": {
"unit": {
"enum": [
"bits",
"bytes"
],
"title": "Unit",
"type": "string"
},
"fields": {
"items": {
"$ref": "#/$defs/LayoutField"
},
"title": "Fields",
"type": "array"
},
"notes": {
"items": {
"type": "string"
},
"title": "Notes",
"type": "array"
}
},
"required": [
"unit"
],
"title": "Layout",
"type": "object"
},
"LayoutCase": {
"description": "The meaning of a field while another field of its layout has one of the\nlisted values. For example, bits 15:08 of Zone Management Receive are the\nReporting Options when the Zone Receive Action is Report Zones or\nExtended Report Zones. A case holds the name, acronym and description of\nthe field in that case, and the layouts and values of its tables.",
"properties": {
"selector": {
"title": "Selector",
"type": "string"
},
"when": {
"items": {
"type": "string"
},
"title": "When",
"type": "array"
},
"otherwise": {
"default": false,
"title": "Otherwise",
"type": "boolean"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Acronym"
},
"description": {
"default": "",
"title": "Description",
"type": "string"
},
"layouts": {
"items": {
"$ref": "#/$defs/Layout"
},
"title": "Layouts",
"type": "array"
},
"values": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"title": "Values",
"type": "array"
}
},
"required": [
"selector"
],
"title": "LayoutCase",
"type": "object"
},
"LayoutField": {
"description": "A field of a layout table: its range, name, acronym and description, the\nother columns of its row by their name, the heading it is under, and the\nlayouts of the tables in its description",
"properties": {
"range": {
"$ref": "#/$defs/Range"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Acronym"
},
"description": {
"default": "",
"title": "Description",
"type": "string"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"title": "Columns",
"type": "object"
},
"section": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section"
},
"elided": {
"default": false,
"title": "Elided",
"type": "boolean"
},
"layouts": {
"items": {
"$ref": "#/$defs/Layout"
},
"title": "Layouts",
"type": "array"
},
"values": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"title": "Values",
"type": "array"
},
"cases": {
"items": {
"$ref": "#/$defs/LayoutCase"
},
"title": "Cases",
"type": "array"
},
"placements": {
"items": {
"$ref": "#/$defs/Placement"
},
"title": "Placements",
"type": "array"
}
},
"required": [
"range"
],
"title": "LayoutField",
"type": "object"
},
"NormalizedFigure": {
"properties": {
"figure_nr": {
"title": "Figure Nr",
"type": "integer"
},
"caption": {
"title": "Caption",
"type": "string"
},
"page_nr": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Page Nr"
},
"pdf_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Pdf Page"
},
"section": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section"
},
"section_title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Section Title"
},
"mentions": {
"items": {
"type": "string"
},
"title": "Mentions",
"type": "array"
},
"subject": {
"$ref": "#/$defs/Subject"
},
"shape": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Shape"
},
"headers": {
"items": {
"type": "string"
},
"title": "Headers",
"type": "array"
},
"columns": {
"items": {
"type": "string"
},
"title": "Columns",
"type": "array"
},
"layout": {
"anyOf": [
{
"$ref": "#/$defs/Layout"
},
{
"type": "null"
}
],
"default": null
},
"entries": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"title": "Entries",
"type": "array"
},
"notes": {
"items": {
"type": "string"
},
"title": "Notes",
"type": "array"
},
"rows": {
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"title": "Rows",
"type": "array"
}
},
"required": [
"figure_nr",
"caption",
"subject"
],
"title": "NormalizedFigure",
"type": "object"
},
"Placement": {
"description": "The range of a field under a condition heading the ranges, as \"HDGSTF=1\";\nNone where the column says the field is not present",
"properties": {
"condition": {
"title": "Condition",
"type": "string"
},
"range": {
"anyOf": [
{
"$ref": "#/$defs/Range"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"condition"
],
"title": "Placement",
"type": "object"
},
"Range": {
"description": "The bits or bytes of a field, as 'upper' and 'lower'; a range the document\ngives by a formula, such as \"(N*16)+15:N*16\", has the formula as its text\nand neither bound",
"properties": {
"unit": {
"title": "Unit",
"type": "string"
},
"text": {
"title": "Text",
"type": "string"
},
"upper": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Upper"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Lower"
}
},
"required": [
"unit",
"text"
],
"title": "Range",
"type": "object"
},
"Subject": {
"description": "What a figure describes, from its caption\n\n'kind' is one of the kinds of CAPTIONS, or \"other\" for a caption of none of\nthem; 'name' is the command, data structure, log page or other thing named.",
"properties": {
"kind": {
"enum": [
"example",
"opcodes",
"command_dword",
"completion_dword",
"data_pointer",
"metadata_pointer",
"data_buffer",
"management_dword",
"pcie_request_dword",
"register",
"cns_values",
"feature_identifiers",
"log_page_identifiers",
"status_values",
"requirements",
"log_page",
"data_structure",
"mapping",
"cited_fields",
"other"
],
"title": "Kind",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Lower"
},
"upper": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Upper"
},
"condition": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Condition"
},
"offset": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Offset"
},
"qualifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Qualifier"
},
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Scope"
}
},
"required": [
"kind"
],
"title": "Subject",
"type": "object"
}
},
"properties": {
"meta": {
"$ref": "#/$defs/DocumentMeta",
"description": "The version of senfd that made the document, and what it is of"
},
"figures": {
"items": {
"$ref": "#/$defs/NormalizedFigure"
},
"title": "Figures",
"type": "array"
},
"skipped": {
"additionalProperties": {
"type": "string"
},
"title": "Skipped",
"type": "object"
},
"nontabular": {
"items": {
"type": "integer"
},
"title": "Nontabular",
"type": "array"
},
"diagnostics": {
"items": {
"$ref": "#/$defs/Diagnostic"
},
"title": "Diagnostics",
"type": "array"
},
"sections": {
"additionalProperties": {
"type": "string"
},
"description": "The title of each numbered section, by its number as printed",
"title": "Sections",
"type": "object"
}
},
"title": "NormalizedFigureDocument",
"type": "object"
}
SpecDocument¶
{
"$defs": {
"Array": {
"description": "The array that a field belongs to. A figure lists the entries of an array\nas fields numbered by their index and replaces the rows between them with\n\"...\", for example LBAF0, LBAF1, \"...\" and LBAF63 of Identify Namespace.\nEach listed entry has the array, with its own index.",
"properties": {
"name": {
"description": "The name of the entries without the index, for example 'LBA Format\nSupport'",
"title": "Name",
"type": "string"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the entries without the index, for example 'LBAF'",
"title": "Acronym"
},
"index": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The index of this entry, for example 63 for LBAF63, or 255 for \"Performance\nAttribute FFh Identifier\". None for a last entry whose range the figure gives as a\nformula.",
"title": "Index"
},
"first": {
"description": "The index of the first entry, 0 or 1 depending on the figure",
"title": "First",
"type": "integer"
},
"count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of entries, for example 64; None where the figure gives the\nrange of the last entry as a formula, because the number is then a value\nin the data",
"title": "Count"
},
"stride": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The size of one entry, in the unit of the field. None where the data gives the size\nof each entry, for example the ANA Group Descriptors of Base 2.4 Figure 230 at\n\"n:16\" and \"m:n+1\".",
"title": "Stride"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The offset of the first entry, where the array starts. None where the data gives it.",
"title": "Lower"
},
"maximum": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The most entries the array holds, where it has no count and a\nparagraph referring to its figure states it, as \"up to 511 Zone\nIdentifier entries\" of the Changed Zone List of ZNS 1.5",
"title": "Maximum"
},
"counted_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the field of the structure that holds the number of entries, where\nthe array has no count and the last entry names that field, as NZID of \"Zone\nIdentifier NZID-1\" of the Changed Zone List of ZNS 1.5, or NUMENT of \"SC Entry\nNUMENT-1\" of the Secondary Controller List of Base 2.4",
"title": "Counted By"
}
},
"required": [
"name",
"first"
],
"title": "Array",
"type": "object"
},
"Bits": {
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "span"
}
}
},
"then": {
"properties": {
"upper": {
"minimum": 0,
"type": "integer"
},
"lower": {
"minimum": 0,
"type": "integer"
},
"formula": {
"type": "null"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"upper",
"lower",
"width"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "formula"
}
}
},
"then": {
"properties": {
"upper": {
"type": "null"
},
"lower": {
"type": "null"
},
"formula": {
"pattern": "^[-A-Za-z0-9_ .*+\\u2026]+:[-A-Za-z0-9_ .*+\\u2026]+$",
"type": "string"
}
},
"required": [
"formula"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "open"
}
}
},
"then": {
"properties": {
"upper": {
"type": "null"
},
"lower": {
"type": "null"
},
"formula": {
"type": "null"
},
"width": {
"type": "null"
}
}
}
}
],
"description": "A field of bits or bytes, made with what it needs; 'upper' and 'lower'\nare None where the document gives the range by a formula, or leaves it\nopen, as 'kind' says",
"properties": {
"name": {
"description": "The name of the field, as 'Force Unit Access', or of the place it\nholds, as 'Reserved'",
"title": "Name",
"type": "string"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Its acronym, as \"FUA\"; None where it has none or the document's is not\none, which is then an erratum",
"title": "Acronym"
},
"upper": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The upper bound of the range, inclusive",
"title": "Upper"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The lower bound of the range",
"title": "Lower"
},
"range": {
"description": "The range as the document writes it, as \"29:26\" or '03:00'",
"title": "Range",
"type": "string"
},
"description": {
"default": "",
"description": "The text of the field's description",
"title": "Description",
"type": "string"
},
"section": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The heading of a row of the figure that groups fields, as the fields\nunder it are of",
"title": "Section"
},
"elided": {
"default": false,
"description": "Whether the figure leaves rows out before it, as \"...\" between the\nfirst and the last of entries counted by a value",
"title": "Elided",
"type": "boolean"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"description": "The figure's other columns of the field, by their keys, as \"reset\" or\n'type'",
"title": "Columns",
"type": "object"
},
"union": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of fields sharing bits, the union of the layout they are of",
"title": "Union"
},
"alternative": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of fields sharing bits, which fields go together, as an IPv4 address\nand the reserved bits after it, against an IPv6 address of the same\nbytes",
"title": "Alternative"
},
"placements": {
"description": "The range of the field under each condition heading the figure's\ncolumns of ranges, where those differ; 'range' is the first that is\npresent",
"items": {
"$ref": "#/$defs/Placement"
},
"title": "Placements",
"type": "array"
},
"byte_order": {
"anyOf": [
{
"enum": [
"big-endian",
"little-endian"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The order of the bytes of the field where the figure marks the byte of its most\nsignificant bit (MSB) and the byte of its least significant bit (LSB), as the\nprotection information formats of the NVM Command Set do: \"big-endian\" where the MSB\nis in the lowest byte. Otherwise the byte order that the description states, for\nexample \"This field is big endian\" of FGUID of Identify Controller. None where\nneither gives one, and for a field of one byte.",
"title": "Byte Order"
},
"encoding": {
"anyOf": [
{
"enum": [
"ascii",
"utf-8",
"uuid"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the bytes of the field encode, where the description says: \"ascii\" for \"as an\nASCII string\", \"utf-8\" for \"a UTF-8 null-terminated string\", and \"uuid\" for \"a\n128-bit Universally Unique Identifier (UUID)\". Otherwise the encoding taken from\nanother field, for example from the field that FR of NVM 1.3 Figure 189 has the\nvalue of, \"the value of the FR field in the Identify Controller data structure\".",
"title": "Encoding"
},
"encoding_from": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The figure of the field that 'encoding' is taken from, where the description of this\nfield does not state the encoding. For example, AVENQN of Base 2.4 Figure 328, an\nNQN, takes \"utf-8\" from SUBNQN of Figure 338. None where the encoding is stated."
},
"byte_order_from": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The figure of the field that 'byte_order' is taken from, a field of the same name,\nacronym and width in another document, where this field does not state the byte\norder. For example, NGUID of KV 1.4 Figure 42 takes it from NVM 1.3 Figure 123. None\nwhere the byte order is stated."
},
"footnotes": {
"description": "The numbers of the footnotes marked on the name, at the end of the\ndescription, and on the other columns",
"items": {
"type": "integer"
},
"title": "Footnotes",
"type": "array"
},
"values": {
"description": "The values the field takes, as the table in its description gives\nthem",
"items": {
"$ref": "#/$defs/Entry"
},
"title": "Values",
"type": "array"
},
"unit": {
"description": "What the range counts: \"bits\" or 'bytes'",
"enum": [
"bits",
"bytes"
],
"title": "Unit",
"type": "string"
},
"role": {
"description": "What the field is: a \"field\" of its name, or what holds a place,\n\"reserved\", \"obsolete\", \"vendor_specific\" or 'ignored'",
"enum": [
"field",
"reserved",
"obsolete",
"vendor_specific",
"ignored"
],
"title": "Role",
"type": "string"
},
"kind": {
"description": "What the range is: a \"span\" of numbers, a \"formula\" of values the\nfigure names, as \"(N*16)+15:N*16\", or \"open\", as 'n/a' or 'Impl Spec'",
"enum": [
"span",
"formula",
"open"
],
"title": "Kind",
"type": "string"
},
"formula": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a formula, its bounds written plainly, \"upper:lower\", as\n'16*N + 15:16*N'",
"title": "Formula"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "How many bits or bytes the range is, where its bounds give it, as 16\nof '16*N + 15:16*N'",
"title": "Width"
},
"fields": {
"description": "The fields within this one, as its description lays them out",
"items": {
"$ref": "#/$defs/Bits"
},
"title": "Fields",
"type": "array"
},
"values_in": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The source of the table of values of the field, where the description\nof the field refers to that figure instead of listing the values, for\nexample \"Refer to Figure 336\". The table is the entry of the data model's\n'values' with this source."
},
"cases": {
"description": "The cases of the field, where a table in its description gives the\nmeaning of the field for each value of another field of its figure",
"items": {
"$ref": "#/$defs/Case"
},
"title": "Cases",
"type": "array"
},
"array": {
"anyOf": [
{
"$ref": "#/$defs/Array"
},
{
"type": "null"
}
],
"default": null,
"description": "The array that the field belongs to, where the figure lists numbered\nentries and leaves out the rows between them"
},
"part": {
"anyOf": [
{
"$ref": "#/$defs/Part"
},
{
"type": "null"
}
],
"default": null,
"description": "The value that the field holds a part of, where a figure splits a value over two\nfields"
},
"structure": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The source of the structure that lays out the field. The description of\nthe field refers to the figure, for example \"defined in Figure 125\", or,\nfor an entry of an array, names the structure, for example \"an I/O\nCommand Set Vector\". The structure is the entry of the data model's\n'structures' with this source."
}
},
"required": [
"name",
"range",
"unit",
"role",
"kind"
],
"title": "Bits",
"type": "object"
},
"Case": {
"description": "The meaning of a field while another field of its figure has certain\nvalues. For example, bits 15:08 of Zone Management Receive, ZRAS, are the\nReporting Options when ZRA is Report Zones or Extended Report Zones, and\nare reserved for all other values of ZRA.",
"properties": {
"selector": {
"description": "The controlling field: its acronym where the figure has a field of\nthe name that heads the table of cases, for example \"ZRA\" for 'Zone\nReceive Action', and otherwise that name",
"title": "Selector",
"type": "string"
},
"when": {
"description": "The values of the controlling field that the case applies to; empty\nfor the case of all other values",
"items": {
"$ref": "#/$defs/Selected"
},
"title": "When",
"type": "array"
},
"otherwise": {
"default": false,
"description": "Whether the case applies to every value of the controlling field that\nno other case lists, as the row 'All other values' says",
"title": "Otherwise",
"type": "boolean"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the field in this case, for example \"Reporting Options\" or\n\"Reserved\"; None where the figure gives no name",
"title": "Name"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the field in this case, for example 'ZRWAA'",
"title": "Acronym"
},
"description": {
"default": "",
"description": "The description of the field in this case",
"title": "Description",
"type": "string"
},
"values": {
"description": "The values of the field in this case",
"items": {
"$ref": "#/$defs/Entry"
},
"title": "Values",
"type": "array"
},
"role": {
"default": "field",
"description": "The role of the field in this case: a \"field\", or a placeholder such\nas 'reserved'",
"enum": [
"field",
"reserved",
"obsolete",
"vendor_specific",
"ignored"
],
"title": "Role",
"type": "string"
},
"fields": {
"description": "The subfields of the field in this case",
"items": {
"$ref": "#/$defs/Bits"
},
"title": "Fields",
"type": "array"
},
"selector_in": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The figure of the controlling field where it is a field of another\nfigure, as Base 2.4 Figure 92, Command Dword 0, for PSDT of DPTR, whose\ndescription names it \"CDW0.PSDT\": the structure that the field of the\ncase's figure named before the dot links to"
}
},
"required": [
"selector"
],
"title": "Case",
"type": "object"
},
"Command": {
"description": "A command, by its opcode, with its dwords and its operations",
"properties": {
"name": {
"description": "The name of the command, as 'Write'",
"title": "Name",
"type": "string"
},
"opcode": {
"description": "The opcode",
"title": "Opcode",
"type": "integer"
},
"sqe": {
"description": "The dwords of its submission queue entry that its figures lay out",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Sqe",
"type": "array"
},
"cqe": {
"description": "The dwords of its completion queue entry that its figures lay out",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Cqe",
"type": "array"
},
"operations": {
"description": "What it does for the values of its selecting fields, if it has any",
"items": {
"$ref": "#/$defs/Operation"
},
"title": "Operations",
"type": "array"
},
"status_values": {
"description": "The tables of the status values specific to the command, as Base 2.4\nFigure 331 of Get Log Page",
"items": {
"$ref": "#/$defs/Source"
},
"title": "Status Values",
"type": "array"
},
"status_codes": {
"description": "The status values whose \"Commands Affected\" names the command, as\n00h, Completion Queue Invalid, of Base 2.4 Figure 104 for Create I/O\nSubmission Queue",
"items": {
"$ref": "#/$defs/ValueLink"
},
"title": "Status Codes",
"type": "array"
},
"uses": {
"description": "The acronyms of the command specific fields the command uses, as its section states\nthem: 'DPTR', 'CDW10' to 'CDW14' of \"The Get Log Page command uses the Data Pointer,\nCommand Dword 10, ... fields\". Where the section states none, the fields that its\nfigures lay out, as uses_stated says: 'MPTR', 'DPTR', 'CDW10' and others of Read.",
"items": {
"type": "string"
},
"title": "Uses",
"type": "array"
},
"uses_stated": {
"default": false,
"description": "Whether the section of the command states 'uses' and 'delegated', rather than\n'uses' being the fields that its figures lay out",
"title": "Uses Stated",
"type": "boolean"
},
"delegated": {
"description": "The fields whose use other fields select, as its section states them: DPTR, CDW11\nto CDW13 and CDW15 of Migration Send, \"specific to the management operation\nspecified by the Select field\", SEL",
"items": {
"$ref": "#/$defs/Delegation"
},
"title": "Delegated",
"type": "array"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"description": "The opcode table's other columns of the command, by their keys",
"title": "Columns",
"type": "object"
},
"typed": {
"additionalProperties": {
"$ref": "#/$defs/Typed"
},
"description": "The columns of a known kind as what they are, by their keys: the bits of the opcode,\nas \"0000 01b\" of \"07_02\", a number; \"namespace_identifier_used\" a flag, or the\nnote it is given by",
"title": "Typed",
"type": "object"
},
"footnotes": {
"additionalProperties": {
"items": {
"type": "integer"
},
"type": "array"
},
"description": "The numbers of the footnotes marked on the name and the other columns of the row of\nthe command, by the key of the column, where a footnote is marked",
"title": "Footnotes",
"type": "object"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The opcode table listing the command"
}
},
"required": [
"name",
"opcode",
"source"
],
"title": "Command",
"type": "object"
},
"CommandSet": {
"description": "The commands of an opcode table, as Admin or NVM",
"properties": {
"name": {
"description": "The name of the command set, as \"NVM\" ",
"title": "Name",
"type": "string"
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The key of the command set among the command sets, as 'nvm'",
"title": "Key"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the command set as the specifications write it in text, as \"NVM\nCommand Set\", \"Admin Command Set\" or \"I/O Commands\" of the common I/O commands",
"title": "Title"
},
"document": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The key of the document whose opcode table lists the command set, as 'nvm'",
"title": "Document"
},
"kind": {
"default": "other",
"description": "The kind of the command set. \"io\" is an I/O command set, which an I/O Command Set\nspecification defines. \"common_io\" is the I/O commands that the Base specification\ndefines for use in all I/O command sets; these commands are not a command set and\nhave no Command Set Identifier. \"admin\" is the Admin command set, \"fabrics\" the\nFabrics command set of the Base specification, and \"management_interface\" a command\nset of the Management Interface specification.",
"enum": [
"admin",
"io",
"common_io",
"fabrics",
"management_interface",
"other"
],
"title": "Kind",
"type": "string"
},
"identifier": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The Command Set Identifier (CSI) of an I/O command set, as Base 2.4 Figure 337 gives\nit, for example 00h for NVM. None for the other kinds, and where the table of\nidentifiers is not among the documents.",
"title": "Identifier"
},
"commands": {
"additionalProperties": {
"$ref": "#/$defs/Command"
},
"description": "Its commands, by their names as keys, as 'zone_append'",
"title": "Commands",
"type": "object"
}
},
"required": [
"name"
],
"title": "CommandSet",
"type": "object"
},
"Comparison": {
"description": "A condition on the value of a field, for example \"CETYPE is non-zero\"",
"properties": {
"field": {
"description": "The acronym of the field, for example 'CETYPE'",
"title": "Field",
"type": "string"
},
"comparison": {
"description": "How the value of the field compares with 'value'",
"enum": [
"==",
"!="
],
"title": "Comparison",
"type": "string"
},
"value": {
"description": "The value that the field is compared with",
"title": "Value",
"type": "integer"
}
},
"required": [
"field",
"comparison",
"value"
],
"title": "Comparison",
"type": "object"
},
"Delegation": {
"description": "Fields of a command whose use other fields of it select, as CDW11 to CDW15 of Set\nFeatures, which are \"Feature specific\", selected by FID",
"properties": {
"fields": {
"description": "The acronyms of the fields, as 'CDW11'",
"items": {
"type": "string"
},
"title": "Fields",
"type": "array"
},
"selectors": {
"description": "The acronyms of the fields that select their use, as 'FID'; the name the text gives\nwhere no field of the command has that name",
"items": {
"type": "string"
},
"title": "Selectors",
"type": "array"
}
},
"title": "Delegation",
"type": "object"
},
"Diagnostic": {
"description": "Something about a figure that senfd normalised, or could not make sense of\n\nA 'note' is a variant senfd normalised; nothing is lost. A 'warning' is\nsomething left out of the output, as a row whose range is not a range.",
"properties": {
"figure_nr": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of the figure, where it is known",
"title": "Figure Nr"
},
"severity": {
"description": "'note' or 'warning'",
"enum": [
"note",
"warning"
],
"title": "Severity",
"type": "string"
},
"code": {
"description": "What kind it is, as \"figure-not-modelled\" or 'dwords-unassigned'",
"title": "Code",
"type": "string"
},
"message": {
"description": "What was found, with the document and the figure, said for a person",
"title": "Message",
"type": "string"
}
},
"required": [
"severity",
"code",
"message"
],
"title": "Diagnostic",
"type": "object"
},
"DocumentMeta": {
"description": "Who made the document and of what",
"properties": {
"format": {
"default": 8,
"description": "The format of the data model, the shape its schema gives",
"title": "Format",
"type": "integer"
},
"version": {
"default": "0.26.0",
"description": "The version of senfd that made it",
"title": "Version",
"type": "string"
},
"senfd_sha256": {
"description": "The SHA-256 of the source of the senfd that made it",
"title": "Senfd Sha256",
"type": "string"
},
"stem": {
"description": "The name of the document it is of, \"merged\" for the merged one",
"title": "Stem",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the specification the document is, without \"NVM Express\",\n\"Specification\" and the revision, for example \"NVM Command Set\" or \"Base\"",
"title": "Name"
},
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The key of the specification the document is, without its revision, for example\n\"base\", \"nvm\" or \"zns\". None for the merged data model and for a document that is\nno NVM Express specification.",
"title": "Key"
},
"revision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The revision of the specification, for example '2.4'",
"title": "Revision"
},
"file": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the file the document was made from, as given",
"title": "File"
},
"sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The SHA-256 of that file, by which a published document is known",
"title": "Sha256"
},
"input_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of the documents it is made from",
"title": "Input Sha256"
},
"combined_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a merged data model, the SHA-256 of input_sha256 and senfd_sha256\ntogether, which the same documents read by the same senfd give again",
"title": "Combined Sha256"
}
},
"title": "DocumentMeta",
"type": "object"
},
"Dwords": {
"description": "The dwords 'lower' to 'upper' of a command, and their fields",
"properties": {
"lower": {
"description": "The first dword, as 10 of CDW10",
"title": "Lower",
"type": "integer"
},
"upper": {
"description": "The last dword, the same as 'lower' for one dword",
"title": "Upper",
"type": "integer"
},
"condition": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Where the figure lays the dwords out only under a condition, the\ncondition, as 'CETYPE is cleared to 0h'",
"title": "Condition"
},
"selected_when": {
"anyOf": [
{
"$ref": "#/$defs/Comparison"
},
{
"type": "null"
}
],
"default": null,
"description": "The condition as a comparison of a field with a value, where the condition has the\nform \"X is cleared to 0h\", \"X is set to 1h\" or \"X is non-zero\""
},
"qualifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the caption says the dwords are of, as 'NVM Command Set Specific\nFields'",
"title": "Qualifier"
},
"refines": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the field of the dwords of the command whose bits these dwords lay\nout, where all the fields of these dwords lie within that one field. Examples are\nLSP of Get Log Page Command Dword 10, for the FDP Events of Base 2.4 Figure 301, and\nCNSSID of Identify Command Dword 11.",
"title": "Refines"
},
"fields": {
"description": "The fields of the dwords, the bits counted across them",
"items": {
"$ref": "#/$defs/Bits"
},
"title": "Fields",
"type": "array"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The figure laying them out"
}
},
"required": [
"lower",
"upper",
"source"
],
"title": "Dwords",
"type": "object"
},
"Entry": {
"description": "A row of a table of values, as a status value or a log page identifier;\n'typed' has the values of its columns of a known kind as what they are",
"properties": {
"value": {
"description": "The value, as the document writes it, as '1Fh'",
"title": "Value",
"type": "string"
},
"value_column": {
"default": "",
"description": "The key of the column holding the value",
"title": "Value Column",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name the row gives the value",
"title": "Name"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the value. The row can write it before the name, for example \"CAP\" of\n\"CAP: Controller Capabilities\" in Base 2.4 Figure 33, or as the initials after the\nname, for example \"GAZ\" of \"Get Active ZoneGroup (GAZ) operation\". The table can\nalso give it in an Acronym column.",
"title": "Acronym"
},
"description": {
"default": "",
"description": "The text of the row's description",
"title": "Description",
"type": "string"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"description": "The row's other columns, by their keys",
"title": "Columns",
"type": "object"
},
"typed": {
"additionalProperties": {
"$ref": "#/$defs/Typed"
},
"description": "The values of the row's columns of a known kind, by their keys. The value of every\nrow whose value is a code, a range of codes or a number is typed, under the key\n'value_column'.",
"title": "Typed",
"type": "object"
},
"role": {
"default": "field",
"description": "What the row is: \"field\" for a value of its own meaning, or the place a value holds,\n\"reserved\", \"obsolete\", \"vendor_specific\" or \"ignored\", as the row of \"4h to 6h\"\nnamed \"Reserved\" in Base 2.4 Figure 102",
"enum": [
"field",
"reserved",
"obsolete",
"vendor_specific",
"ignored"
],
"title": "Role",
"type": "string"
},
"footnotes": {
"description": "The numbers of the footnotes marked on the row: on the value, the\nname, the description and the other columns, in that order",
"items": {
"type": "integer"
},
"title": "Footnotes",
"type": "array"
},
"marked": {
"additionalProperties": {
"items": {
"type": "integer"
},
"type": "array"
},
"description": "The numbers of the footnotes marked on each column, by the key of the column, with\nthe key \"name\" for the name, where a footnote is marked",
"title": "Marked",
"type": "object"
},
"refers_to": {
"anyOf": [
{
"$ref": "#/$defs/ValueLink"
},
{
"type": "null"
}
],
"default": null,
"description": "The value of another field that the description names, where the entry\nhas no name of its own"
},
"selects": {
"description": "The structures the value selects, as the Identify Controller data\nstructure and its Power State Descriptor for CNS 01h: those of the\nsection its reference cites, those of the same value in a document it\ncites, or, where the Command Set Identifier selects them, those of the\nsame value in each command set's document",
"items": {
"$ref": "#/$defs/Source"
},
"title": "Selects",
"type": "array"
},
"document": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The document whose subject the entry names, as the NVM Command Set\nSpecification for \"NVM Command Set\" of the Command Set Identifiers",
"title": "Document"
}
},
"required": [
"value"
],
"title": "Entry",
"type": "object"
},
"Erratum": {
"description": "Something of a figure that is not what its kind of value must be, as a\nrange beyond the dword it is of, left out of the model; or fields that do\nnot fit together, as two of the same bits, which the model keeps. Each is\na candidate erratum of the specification, saying where it is.",
"properties": {
"code": {
"description": "The kind of erratum: \"value\", \"acronym\", \"range\" (text that is not a range),\n\"range-outside\", \"range-reversed\", \"opcode\", \"gap\" (in the dwords of a command),\n\"layout-gap\" (in a structure), \"reference\" (to the section of another value or\ncommand), \"caption\" (of another figure) or \"unit\" (of the ranges of a layout)",
"enum": [
"value",
"acronym",
"range",
"range-outside",
"range-reversed",
"opcode",
"gap",
"layout-gap",
"reference",
"caption",
"unit"
],
"title": "Code",
"type": "string"
},
"message": {
"description": "What is wrong, said for a person",
"title": "Message",
"type": "string"
},
"found": {
"default": "",
"description": "The text found in the figure",
"title": "Found",
"type": "string"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The figure it is in"
}
},
"required": [
"code",
"message",
"source"
],
"title": "Erratum",
"type": "object"
},
"Feature": {
"description": "A feature, by its identifier, and the dwords of the commands setting and\ngetting it that are described for it",
"properties": {
"identifier": {
"description": "The feature identifier, as 7 of 07h",
"title": "Identifier",
"type": "integer"
},
"name": {
"description": "The name of the feature, as 'Number of Queues'",
"title": "Name",
"type": "string"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"description": "The feature identifier table's other columns of it, by their keys, as\nits requirements",
"title": "Columns",
"type": "object"
},
"footnotes": {
"additionalProperties": {
"items": {
"type": "integer"
},
"type": "array"
},
"description": "The numbers of the footnotes marked on the name and the other columns of the row of\nthe feature, by the key of the column, where a footnote is marked",
"title": "Footnotes",
"type": "object"
},
"sqe": {
"description": "The submission queue entry dwords described for it",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Sqe",
"type": "array"
},
"cqe": {
"description": "The completion queue entry dwords described for it",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Cqe",
"type": "array"
},
"operations": {
"description": "What the feature does for each value of a field of its dwords, for example the\nLockdown Persistence Personality of Configurable Device Personality, selected by\nPERID 02h",
"items": {
"$ref": "#/$defs/Operation"
},
"title": "Operations",
"type": "array"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The feature identifier table listing it"
}
},
"required": [
"identifier",
"name",
"source"
],
"title": "Feature",
"type": "object"
},
"LogPage": {
"description": "A log page, by its identifier, and the structure laying it out",
"properties": {
"identifier": {
"description": "The log page identifier, as 2 of 02h",
"title": "Identifier",
"type": "integer"
},
"name": {
"description": "The name of the log page, as 'SMART / Health Information'",
"title": "Name",
"type": "string"
},
"aliases": {
"description": "The other names that the tables give the log page, for example \"Manufacturer Default\nConfiguration Status\" of Base 2.4 Figure 31 for 24h, which Figure 209 names\n\"Manufacturer Default Configuration\"",
"items": {
"type": "string"
},
"title": "Aliases",
"type": "array"
},
"columns": {
"additionalProperties": {
"type": "string"
},
"description": "The log page identifier table's other columns of it, by their keys",
"title": "Columns",
"type": "object"
},
"footnotes": {
"additionalProperties": {
"items": {
"type": "integer"
},
"type": "array"
},
"description": "The numbers of the footnotes marked on the name and the other columns of the row of\nthe log page, by the key of the column, where a footnote is marked",
"title": "Footnotes",
"type": "object"
},
"structure": {
"anyOf": [
{
"$ref": "#/$defs/Structure"
},
{
"type": "null"
}
],
"default": null,
"description": "The structure laying it out, where a figure is known for it"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The log page identifier table listing it"
}
},
"required": [
"identifier",
"name",
"source"
],
"title": "LogPage",
"type": "object"
},
"Operation": {
"description": "What a command does for the values of its selecting fields, as a directive\noperation of Directive Receive by its directive type (DTYPE) and operation\n(DOPER), with the dwords and the structures of that operation",
"properties": {
"name": {
"description": "The name of the operation",
"title": "Name",
"type": "string"
},
"selectors": {
"additionalProperties": {
"type": "integer"
},
"description": "The values of the command's fields selecting it, by acronym, as\n{\"DTYPE\": 0, \"DOPER\": 1}",
"title": "Selectors",
"type": "object"
},
"sqe": {
"description": "The submission queue entry dwords of the operation",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Sqe",
"type": "array"
},
"cqe": {
"description": "The completion queue entry dwords of the operation",
"items": {
"$ref": "#/$defs/Dwords"
},
"title": "Cqe",
"type": "array"
},
"structures": {
"description": "The keys of the structures the operation transfers, structures of the\ndocument of 'source'",
"items": {
"type": "string"
},
"title": "Structures",
"type": "array"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The figure listing the operation"
}
},
"required": [
"name",
"source"
],
"title": "Operation",
"type": "object"
},
"Part": {
"description": "The value of which a field holds a part, where a figure splits the value over two\nfields. Examples are NUMDL and NUMDU of Get Log Page, \"Number of Dwords Lower\" and\n\"Upper\", and \"KV Key[63:00]\" and \"KV Key[127:64]\" of KV 1.4.",
"properties": {
"name": {
"description": "The name of the value, for example 'Number of Dwords'",
"title": "Name",
"type": "string"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the value, for example 'NUMD', where the acronym of each part is this\nacronym and a letter for the part",
"title": "Acronym"
},
"shift": {
"description": "The bit of the value where the field starts, in the unit of the range of the field:\n0 for the lower part, and the width of the lower part for the upper part, for\nexample 64 for \"KV Key[127:64]\"",
"title": "Shift",
"type": "integer"
}
},
"required": [
"name",
"shift"
],
"title": "Part",
"type": "object"
},
"Placement": {
"description": "Where a field is while a condition heading the figure's columns of\nranges holds. For example, the PDU Header Digest of the TCP transport's\nCommand Capsule PDU is bytes 75:72 when HDGSTF=1 and not present when\nHDGSTF=0.",
"properties": {
"condition": {
"description": "The condition as the figure writes it, for example 'HDGSTF=1'",
"title": "Condition",
"type": "string"
},
"range": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The range under the condition as the figure writes it; None where the\nfigure says the field is not present",
"title": "Range"
},
"upper": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The upper bound of the range, inclusive; None where it is symbolic",
"title": "Upper"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The lower bound of the range",
"title": "Lower"
}
},
"required": [
"condition"
],
"title": "Placement",
"type": "object"
},
"Selected": {
"description": "A value of the controlling field that a case applies to",
"properties": {
"name": {
"description": "The name of the value as the figure writes it, for example 'Report\nZones'",
"title": "Name",
"type": "string"
},
"value": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The value as a number, for example 0 for 00h; None where the\ncontrolling field has no value of that name",
"title": "Value"
}
},
"required": [
"name"
],
"title": "Selected",
"type": "object"
},
"Source": {
"description": "Where something came from: the document, the figure, the page the\nfigure is on, and the section it is in, by number and title",
"properties": {
"document": {
"description": "The document, by the name of its file, as 'NVM Express Base\nSpecification, Revision 2-4 Ratified 2026-08-21'",
"title": "Document",
"type": "string"
},
"figure_nr": {
"description": "The number of the figure",
"title": "Figure Nr",
"type": "integer"
},
"page_nr": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The page the figure is on, by the document's table of figures",
"title": "Page Nr"
},
"pdf_page": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The page the figure is on in the PDF, counted from the file's first\npage, where the document was read from a PDF; a link opens it there",
"title": "Pdf Page"
},
"section": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of the section the figure is in, as '3.1.4.1'",
"title": "Section"
},
"section_title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The title of that section",
"title": "Section Title"
}
},
"required": [
"document",
"figure_nr"
],
"title": "Source",
"type": "object"
},
"Structure": {
"description": "A layout of fields that is no command's dwords: a data structure, a log\npage, a register or anything else a figure lays out",
"properties": {
"title": {
"description": "The name its caption gives, as 'CC - Controller Configuration'",
"title": "Title",
"type": "string"
},
"name": {
"description": "The name of the structure without the parts of its title that 'owner', 'acronym',\n'optional', 'qualifier' and the offset hold, as \"Controller Configuration\" of \"CC -\nController Configuration\" and \"Identify Controller\" of \"Identify - Identify\nController\"",
"title": "Name",
"type": "string"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the title names before \" - \" where that is no acronym: the command, feature,\nlog page or structure the structure is of, as \"Identify\" of \"Identify - Identify\nController\"",
"title": "Owner"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the structure, as \"CC\" of \"CC - Controller Configuration\",\n\"PXDCAP2\" of \"Offset PXCAP + 24h: PXDCAP2 - PCI Express Device Capabilities 2\" and\n\"CH\" of 'PDU Common Header (CH)'",
"title": "Acronym"
},
"optional": {
"default": false,
"description": "Whether the title marks the structure \"(Optional)\", as BIST of PCIe 1.4",
"title": "Optional",
"type": "boolean"
},
"key": {
"default": "",
"description": "The key of the structure, unique among the structures of its document. It is the\nkey of the name without words that the document and the context give: \"Data\nStructure\", the name of the document's command set, and \"I/O Command Set\nSpecific\" and the like, as \"identify_namespace\" of NVM 1.3 Figure 123. Where two\nstructures of a document would have the same key, the key of each includes those\nwords, then its owner, its qualifier, its kind and, last, its figure number, as far\nas it takes to tell them apart, as \"timestamp_set_features\" and\n'timestamp_get_features'.",
"title": "Key",
"type": "string"
},
"kind": {
"description": "What its caption says it is, as \"data_structure\", \"log_page\" or\n\"register\", or 'other'",
"enum": [
"example",
"opcodes",
"command_dword",
"completion_dword",
"data_pointer",
"metadata_pointer",
"data_buffer",
"management_dword",
"pcie_request_dword",
"register",
"cns_values",
"feature_identifiers",
"log_page_identifiers",
"status_values",
"requirements",
"log_page",
"data_structure",
"mapping",
"cited_fields",
"other"
],
"title": "Kind",
"type": "string"
},
"unit": {
"description": "What its fields' ranges count: \"bits\" or 'bytes'",
"enum": [
"bits",
"bytes"
],
"title": "Unit",
"type": "string"
},
"qualifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the caption says it is of, as \"Log Specific Field\", or what its title gives\nin parentheses that is no acronym, as \"Set Features\" of \"Timestamp (Set Features)\"\nor \"Event Type 02h\"",
"title": "Qualifier"
},
"condition": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Where the caption lays the structure out only under a condition, the condition, as\n\"STS field is cleared to 0h\" of NVM 1.3 Figure 155",
"title": "Condition"
},
"selected_when": {
"anyOf": [
{
"$ref": "#/$defs/Comparison"
},
{
"type": "null"
}
],
"default": null,
"description": "The condition as a comparison of a field with a value, as STS == 0"
},
"offset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a register, its offset in bytes, as 20 of CC at 14h; of a register of a\ncapability, its offset from 'offset_base', as 2 of 'Offset PMCAP + 2h'",
"title": "Offset"
},
"offset_base": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The register of the capability that 'offset' counts from, as \"PMCAP\" of 'Offset\nPMCAP + 2h'",
"title": "Offset Base"
},
"offset_formula": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The offset where the title gives it by a formula, as the doorbell registers of\nPCIe 1.4 at '(1000h + ((2y) * (4 << CAP.DSTRD)))'",
"title": "Offset Formula"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The size of the structure in bytes, by the highest bound of its fields. None where\na field's range is a formula or open, so that the data gives the size.",
"title": "Size"
},
"fields": {
"description": "Its fields",
"items": {
"$ref": "#/$defs/Bits"
},
"title": "Fields",
"type": "array"
},
"notes": {
"description": "The notes of the figure",
"items": {
"type": "string"
},
"title": "Notes",
"type": "array"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The figure laying it out"
},
"extends": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
],
"default": null,
"description": "The figure of the structure of which this structure lays out some of the bytes. For\nexample, NVM 1.3 Figure 126, with AWUN, AWUPF and ACWU, extends Identify Controller,\nBase 2.4 Figure 338."
},
"extends_field": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym of the field of the extended structure that this structure lays out,\nwhere the text names it, for example CPSR of MI 2.2 Figure 40 for Figure 41",
"title": "Extends Field"
}
},
"required": [
"title",
"name",
"kind",
"unit",
"source"
],
"title": "Structure",
"type": "object"
},
"Typed": {
"allOf": [
{
"if": {
"properties": {
"kind": {
"enum": [
"level"
]
}
}
},
"then": {
"properties": {
"level": {
"type": "string"
}
},
"required": [
"level"
]
}
},
{
"if": {
"properties": {
"kind": {
"enum": [
"flag"
]
}
}
},
"then": {
"properties": {
"flag": {
"type": "boolean"
}
},
"required": [
"flag"
]
}
},
{
"if": {
"properties": {
"kind": {
"enum": [
"identifier",
"number"
]
}
}
},
"then": {
"properties": {
"lower": {
"type": "integer"
}
},
"required": [
"lower"
]
}
},
{
"if": {
"properties": {
"kind": {
"enum": [
"identifiers"
]
}
}
},
"then": {
"properties": {
"listed": {
"type": "array"
}
},
"required": [
"listed"
]
}
},
{
"if": {
"properties": {
"kind": {
"enum": [
"note"
]
}
}
},
"then": {
"properties": {
"note": {
"type": "integer"
}
},
"required": [
"note"
]
}
},
{
"if": {
"properties": {
"kind": {
"enum": [
"reference"
]
}
}
},
"then": {
"properties": {
"reference": {
"type": "string"
}
},
"required": [
"reference"
]
}
}
],
"description": "A value of a table as what it is: a requirement \"level\" (M, O, P, NR, R),\na yes or no \"flag\", an \"identifier\" or a range of them, \"identifiers\" listed, a\n\"number\" or a range of them, \"others\" for the row of all other values, a \"note\"\nit is given by, a \"reference\" to another specification, or \"reserved\",\n\"vendor_specific\" or \"not_applicable\"; with the footnotes marked on it",
"properties": {
"kind": {
"description": "Which of those it is",
"enum": [
"level",
"flag",
"identifier",
"identifiers",
"number",
"others",
"note",
"reference",
"reserved",
"vendor_specific",
"not_applicable"
],
"title": "Kind",
"type": "string"
},
"level": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a level, the level",
"title": "Level"
},
"flag": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a flag, whether yes",
"title": "Flag"
},
"lower": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of an identifier, it, or the first of a range",
"title": "Lower"
},
"upper": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a range of identifiers or numbers, the last",
"title": "Upper"
},
"listed": {
"description": "Of identifiers listed, as '00h, 01h, 08h, and 09h', each of them",
"items": {
"type": "integer"
},
"title": "Listed",
"type": "array"
},
"note": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a note, its number",
"title": "Note"
},
"reference": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Of a reference, the specification referred to",
"title": "Reference"
},
"footnotes": {
"description": "The numbers of the footnotes marked on the value",
"items": {
"type": "integer"
},
"title": "Footnotes",
"type": "array"
}
},
"required": [
"kind"
],
"title": "Typed",
"type": "object"
},
"ValueLink": {
"description": "A value of a field of another figure that an entry's description names.\nFor example, Reporting Options 1h of Zone Management Receive, \"List the\nzones in the ZSE:Empty state.\", names the zone state ZSE:Empty, which is\nvalue 1h of the field ZS of the Zone Descriptor, ZNS 1.5 Figure 38.",
"properties": {
"source": {
"$ref": "#/$defs/Source",
"description": "The figure of the field"
},
"field": {
"description": "The field by its acronym, or by its name where it has none, as 'ZS'",
"title": "Field",
"type": "string"
},
"value": {
"description": "The value as the figure writes it, as '1h'",
"title": "Value",
"type": "string"
},
"acronym": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The acronym the description gives the value, as 'ZSE'",
"title": "Acronym"
}
},
"required": [
"source",
"field",
"value"
],
"title": "ValueLink",
"type": "object"
},
"Values": {
"description": "A table of values, by the kind of its caption and what it names; the\nscope is what the caption confines it to, as \"I/O Commands\" ",
"properties": {
"kind": {
"description": "What its caption says it is, as \"status_values\", \"requirements\" or\n\"log_page_identifiers\", or 'other'",
"enum": [
"example",
"opcodes",
"command_dword",
"completion_dword",
"data_pointer",
"metadata_pointer",
"data_buffer",
"management_dword",
"pcie_request_dword",
"register",
"cns_values",
"feature_identifiers",
"log_page_identifiers",
"status_values",
"requirements",
"log_page",
"data_structure",
"mapping",
"cited_fields",
"other"
],
"title": "Kind",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the caption names, as the command or field the values are of",
"title": "Name"
},
"qualifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What else the caption says they are of",
"title": "Qualifier"
},
"scope": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the caption confines them to, as 'I/O Commands'",
"title": "Scope"
},
"columns": {
"description": "The keys of its columns",
"items": {
"type": "string"
},
"title": "Columns",
"type": "array"
},
"entries": {
"description": "Its rows",
"items": {
"$ref": "#/$defs/Entry"
},
"title": "Entries",
"type": "array"
},
"status_code_type": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "The Status Code Type of the status codes of a table of status values, by its\ncaption, as 1 of \"Command Specific Status Values\" and 2 of \"Media and Data\nIntegrity Error Values\"",
"title": "Status Code Type"
},
"status_scope": {
"anyOf": [
{
"enum": [
"io_command_set",
"fabrics"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "What the caption of a table of status values confines its codes to, beyond the\ndocument: \"io_command_set\" of \"Status Code - Command Specific Status Values, I/O\nCommand Set Specific\", or \"fabrics\" of the Fabrics Command Specific ones",
"title": "Status Scope"
},
"source": {
"$ref": "#/$defs/Source",
"description": "The figure holding the table"
}
},
"required": [
"kind",
"source"
],
"title": "Values",
"type": "object"
}
},
"description": "The data model of the specification, of one document or, merged, of\nseveral",
"properties": {
"meta": {
"$ref": "#/$defs/DocumentMeta",
"description": "The version of senfd that made the document, and what it is of"
},
"command_sets": {
"additionalProperties": {
"$ref": "#/$defs/CommandSet"
},
"description": "The command sets of the opcode tables, by their names as keys",
"title": "Command Sets",
"type": "object"
},
"dwords": {
"additionalProperties": {
"items": {
"$ref": "#/$defs/Dwords"
},
"type": "array"
},
"description": "The dwords of every figure, by the name its caption gives, as read",
"title": "Dwords",
"type": "object"
},
"structures": {
"description": "Every layout that is no command's dwords",
"items": {
"$ref": "#/$defs/Structure"
},
"title": "Structures",
"type": "array"
},
"values": {
"description": "The tables of values",
"items": {
"$ref": "#/$defs/Values"
},
"title": "Values",
"type": "array"
},
"features": {
"additionalProperties": {
"$ref": "#/$defs/Feature"
},
"description": "The features, by their names as keys",
"title": "Features",
"type": "object"
},
"log_pages": {
"additionalProperties": {
"$ref": "#/$defs/LogPage"
},
"description": "The log pages, by their names as keys",
"title": "Log Pages",
"type": "object"
},
"unassigned": {
"additionalProperties": {
"items": {
"$ref": "#/$defs/Dwords"
},
"type": "array"
},
"description": "The dwords no command, feature or operation claims, by the name their\ncaption gives",
"title": "Unassigned",
"type": "object"
},
"diagnostics": {
"description": "What senfd normalised, or could not read as data",
"items": {
"$ref": "#/$defs/Diagnostic"
},
"title": "Diagnostics",
"type": "array"
},
"errata": {
"description": "The candidate errata of the documents",
"items": {
"$ref": "#/$defs/Erratum"
},
"title": "Errata",
"type": "array"
},
"sections": {
"additionalProperties": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"description": "The title of each numbered section, by its number as printed, of each\ndocument by its name",
"title": "Sections",
"type": "object"
},
"documents": {
"additionalProperties": {
"$ref": "#/$defs/DocumentMeta"
},
"description": "The documents the data model is of, by name, each with the file it\nwas made from and the file's SHA-256, by which a published one is known",
"title": "Documents",
"type": "object"
}
},
"title": "SpecDocument",
"type": "object"
}