-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extractor: fix alignment of nested tables
This commit fixes issues caused when camelot parses a table with nested tables that aren't perfectly aligned. This creates a table like this: x x - - - - - - x - x - x x - - - - - - - x - x The code transforms the above table to look like this instead: x x - - - - x x x x - - - - x x This makes sure that no data is lost when parsing. An example of a table in the spec that previously caused these issues is Figure 259 from Base Specification 2.0b Signed-off-by: Karl Bonde Torp <[email protected]>
- Loading branch information
Showing
21 changed files
with
469 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
0,1,2,3 | ||
"Bits","Description","","" | ||
"14","Reserved","","" | ||
"13:12","Contents (CNTTS): This field in combination with the Scope field specifies the contents of the Command and Feature Identifier List field in the log page.","","" | ||
"","","Value","Command and Feature Identifier List Definition" | ||
"","","00b","List of command opcodes or Feature Identifiers based on the Scope field that are supported to be prohibited." | ||
"","","01b","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received on an NVM Express controller Admin submission queue." | ||
"","","10b","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received out-of-band on a Management Endpoint." | ||
"","","11b","Reserved" | ||
"11:08","Scope (SCP): This field in combination with the Contents field specifies the contents of the Command and Feature Identifier List field in the log page.","","" | ||
"","","Value","Command and Feature Identifier List Contents" | ||
"","","0h","List of Admin Command Set opcodes" | ||
"","","1h","Reserved" | ||
"","","2h","List of Feature Identifiers" | ||
"","","3h","List of a Management Interface Command Set opcodes (refer to the NVM Express Management Interface Specification)" | ||
"","","4h","List of a PCIe Command Set opcodes (refer to the NVM Express Management Interface Specification)" | ||
"","","5h to Fh","Reserved" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4 | ||
"A","1","","","" | ||
"B","2","","","" | ||
"","","C","3","D" | ||
"","","E","4","F" | ||
"","","G","5","H" | ||
"I","6","","","" | ||
"","","J","7","K" | ||
"","","L","8","M" | ||
"","","N","9","O" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4 | ||
"A","1","","","" | ||
"B","2","","","" | ||
"","","C","3","D" | ||
"","","E","","F" | ||
"","","G","","H" | ||
"I","6","","","" | ||
"","","J","7","K" | ||
"","","L","8","" | ||
"","","M","9","" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4 | ||
"A","1","","","" | ||
"B","2","","","" | ||
"","","C","3","D" | ||
"","","E","","F" | ||
"","","G","5","H" | ||
"I","6","","","" | ||
"","","J","7","K" | ||
"","","L","8","" | ||
"","","M","9","N" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
0,1,2,3,4,5 | ||
"Bytes","Description","","","","" | ||
"0","","","","","" | ||
"","","Bits","Description","","" | ||
"","","7:6","Reserved","","" | ||
"","","5:4","Contents Selected (CS): This field in combination with the Scope Selected field indicates the contents of the Command and Feature Identifier List field in the log page. The Content Selected field is specified by the contents of the Contents field in the Log Specific Field field of the Get Log Page command.","","" | ||
"","","","","Value","Description" | ||
"","","","","00b","List contains command opcodes or Set Features Feature Identifiers based on the Scope Selected field that are supported to be prohibited" | ||
"","","","","01b","List contains command opcodes or Set Features Feature Identifiers based on the Scope Selected field that are currently prohibited if received on an NVM Express controller submission queue" | ||
"","","","","10b","List contains command opcodes or Set Features Feature Identifiers based on the Scope field that are currently prohibited if received out-of-band on a Management Endpoint" | ||
"","","","","11b","Reserved" | ||
"","","3:0","Scope Selected (SS): This field in combination with the Contents Selected field indicates what the Command and Feature Identifier List field contains in the log page. The Scope Selected field is specified by the contents of the Scope field in the Log Specific field of the Get Log Page command.","","" | ||
"","","","","Value","Description" | ||
"","","","","0h","List contains Admin Command Set opcodes" | ||
"","","","","1h","Reserved" | ||
"","","","","2h","List contains Set Features Feature Identifiers" | ||
"","","","","3h","List contains Management Interface Command Set opcodes" | ||
"","","","","4h","List contains PCIe Command Set opcodes" | ||
"","","","","5h to Fh","Reserved" | ||
"2:1","Reserved","","","","" | ||
"3","Length (LNGTH): This field indicates the length in bytes (n) of the Command and Feature Identifier List field that follow in the log page. If the Command and Feature Identifier List field contains no coded values, then this field shall be cleared to 0h.","","","","" | ||
"n+3:4","Command and Feature Identifier List (CFIL): The contents of this field are dependent on the setting of the Contents Selected field and Scope Selected field. This field contains a list of coded values identified by the Scope Selected field and the Content Selected field. The list shall be in order from lowest numerical value to highest numerical value.","","","","" | ||
"511:n+4","Reserved","","","","" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4 | ||
"A","1","","","" | ||
"B","2","","","" | ||
"","","C","D","" | ||
"","","E","F","" | ||
"","","G","H","" | ||
"I","6","","","" | ||
"","","J","7","K" | ||
"","","L","8","M" | ||
"","","N","9","O" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1 | ||
"A","1" | ||
"B","2" | ||
"C","3" | ||
"D","4" | ||
"E","5" | ||
"F","6" | ||
"G","7" | ||
"H","8" | ||
"I","9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
0,1,2,3 | ||
"Bits","Description","","" | ||
"14","Reserved","","" | ||
"13:12","Contents (CNTTS): This field in combination with the Scope field specifies the contents of the Command and Feature Identifier List field in the log page.","","" | ||
"","","Value","Command and Feature Identifier List Definition" | ||
"","","00b","List of command opcodes or Feature Identifiers based on the Scope field that are supported to be prohibited." | ||
"","","","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received on an NVM Express controller Admin submission queue." | ||
"","","10b","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received out-of-band on a Management Endpoint." | ||
"","","11b","Reserved" | ||
"11:08","Scope (SCP): This field in combination with the Contents field specifies the contents of the Command and Feature Identifier List field in the log page.","","" | ||
"","","Value","Command and Feature Identifier List Contents" | ||
"","","0h","List of Admin Command Set opcodes" | ||
"","","1h","Reserved" | ||
"","","","List of Feature Identifiers" | ||
"","","3h","List of a Management Interface Command Set opcodes (refer to the NVM Express Management Interface Specification)" | ||
"","","4h","List of a PCIe Command Set opcodes (refer to the NVM Express Management Interface Specification)" | ||
"","","5h to Fh","Reserved" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
0,1,2,3,4,5,6,7 | ||
"Bits","Description","","","","","","" | ||
"14","Reserved","","","","","","" | ||
"13:12","Contents (CNTTS): This field in combination with the Scope field specifies the contents of the Command and Feature Identifier List field in the log page.","","","","","","" | ||
"","","","Value","","Command and Feature Identifier List Definition","","" | ||
"","","","00b","","List of command opcodes or Feature Identifiers based on the Scope field that are supported to be prohibited.","","" | ||
"","","","01b","","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received on an NVM Express controller Admin submission queue.","","" | ||
"","","","10b","","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received out-of-band on a Management Endpoint.","","" | ||
"","","","11b","","Reserved","","" | ||
"11:08","Scope (SCP): This field in combination with the Contents field specifies the contents of the Command and Feature Identifier List field in the log page.","","","","","","" | ||
"","","Value","","Command and Feature Identifier List Contents","","","" | ||
"","","0h","","List of Admin Command Set opcodes","","","" | ||
"","","1h","","Reserved","","","" | ||
"","","2h","","List of Feature Identifiers","","","" | ||
"","","3h","","List of a Management Interface Command Set opcodes (refer to the NVM Express Management Interface Specification)","","","" | ||
"","","4h","","List of a PCIe Command Set opcodes (refer to the NVM Express Management Interface Specification)","","","" | ||
"","","5h to Fh","","Reserved","","","" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
0,1,2,3,4,5,6,7 | ||
"Bits","Description","","","","","","" | ||
"14","Reserved","","","","","","" | ||
"13:12","Contents (CNTTS): This field in combination with the Scope field specifies the contents of the Command and Feature Identifier List field in the log page.","","","","","","" | ||
"","","Value","","Command and Feature Identifier List Definition","","","" | ||
"","","00b","","List of command opcodes or Feature Identifiers based on the Scope field that are supported to be prohibited.","","","" | ||
"","","01b","","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received on an NVM Express controller Admin submission queue.","","","" | ||
"","","10b","","List of command opcodes or Feature Identifiers based on the Scope field that are currently prohibited if received out-of-band on a Management Endpoint.","","","" | ||
"","","11b","","Reserved","","","" | ||
"11:08","Scope (SCP): This field in combination with the Contents field specifies the contents of the Command and Feature Identifier List field in the log page.","","","","","","" | ||
"","","","Value","","Command and Feature Identifier List Contents","","" | ||
"","","","0h","","List of Admin Command Set opcodes","","" | ||
"","","","1h","","Reserved","","" | ||
"","","","2h","","List of Feature Identifiers","","" | ||
"","","","3h","","List of a Management Interface Command Set opcodes (refer to the NVM Express Management Interface Specification)","","" | ||
"","","","4h","","List of a PCIe Command Set opcodes (refer to the NVM Express Management Interface Specification)","","" | ||
"","","","5h to Fh","","Reserved","","" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4,5,6 | ||
"A","1","","","","" | ||
"B","2","","","","" | ||
"","","C","","3","D" | ||
"","","E","","4","F" | ||
"","","G","","5","H" | ||
"I","6","","","","" | ||
"","","J","7","","K" | ||
"","","L","8","","M" | ||
"","","N","9","","O" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4,5,6 | ||
"A","1","","","","" | ||
"B","2","","","","" | ||
"","","C","","3","D" | ||
"","","E","","","F" | ||
"","","G","","","H" | ||
"I","6","","","","" | ||
"","","J","7","","K" | ||
"","","L","8","","" | ||
"","","M","9","","" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
0,1,2,3,4,5,6 | ||
"A","1","","","","" | ||
"B","2","","","","" | ||
"","","C","","3","D" | ||
"","","E","","","F" | ||
"","","G","","5","H" | ||
"I","6","","","","" | ||
"","","J","7","","K" | ||
"","","L","8","","" | ||
"","","M","9","","N" |
Oops, something went wrong.