Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 1 | { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 4 | "required": [ |
| 5 | "validationBits", |
| 6 | "errorStatus", |
| 7 | "idInfo", |
| 8 | "memoryNumber", |
| 9 | "ioNumber", |
| 10 | "registerDataPairs" |
| 11 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 12 | "additionalProperties": false, |
| 13 | "properties": { |
| 14 | "validationBits": { |
| 15 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 16 | "description": "Indicates which other fields are valid in the section.", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 17 | "required": [ |
| 18 | "errorStatusValid", |
| 19 | "idInfoValid", |
| 20 | "memoryNumberValid", |
| 21 | "ioNumberValid", |
| 22 | "registerDataPairsValid" |
| 23 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 24 | "properties": { |
| 25 | "errorStatusValid": { |
| 26 | "type": "boolean" |
| 27 | }, |
| 28 | "idInfoValid": { |
| 29 | "type": "boolean" |
| 30 | }, |
| 31 | "memoryNumberValid": { |
| 32 | "type": "boolean" |
| 33 | }, |
| 34 | "ioNumberValid": { |
| 35 | "type": "boolean" |
| 36 | }, |
| 37 | "registerDataPairsValid": { |
| 38 | "type": "boolean" |
| 39 | } |
| 40 | } |
| 41 | }, |
| 42 | "errorStatus": { |
| 43 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 44 | "description": "PCI Component Error Status.", |
Lawrence Tang | 8a2d737 | 2022-07-12 16:44:49 +0100 | [diff] [blame] | 45 | "$ref": "./common/cper-json-error-status.json" |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 46 | }, |
| 47 | "idInfo": { |
| 48 | "type": "object", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 49 | "description": "Identification Information", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 50 | "required": [ |
| 51 | "vendorID", |
| 52 | "deviceID", |
| 53 | "classCode", |
| 54 | "functionNumber", |
| 55 | "deviceNumber", |
| 56 | "busNumber", |
| 57 | "segmentNumber" |
| 58 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 59 | "properties": { |
| 60 | "vendorID": { |
| 61 | "type": "integer" |
| 62 | }, |
| 63 | "deviceID": { |
| 64 | "type": "integer" |
| 65 | }, |
| 66 | "classCode": { |
| 67 | "type": "integer" |
| 68 | }, |
| 69 | "functionNumber": { |
| 70 | "type": "integer" |
| 71 | }, |
| 72 | "deviceNumber": { |
| 73 | "type": "integer" |
| 74 | }, |
| 75 | "busNumber": { |
| 76 | "type": "integer" |
| 77 | }, |
| 78 | "segmentNumber": { |
| 79 | "type": "integer" |
| 80 | } |
| 81 | } |
| 82 | }, |
| 83 | "memoryNumber": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 84 | "type": "integer", |
| 85 | "description": "Number of PCI Component Memory Mapped register address/data pair values present in this structure." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 86 | }, |
| 87 | "ioNumber": { |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 88 | "type": "integer", |
| 89 | "description": "Number of PCI Component Programmed IO register address/data pair values present in this structure." |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 90 | }, |
| 91 | "registerDataPairs": { |
| 92 | "type": "array", |
Andrew Adriance | d9835a1 | 2024-12-05 14:41:42 -0800 | [diff] [blame^] | 93 | "description": "An array of address/data pair values.", |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 94 | "items": { |
| 95 | "type": "object", |
| 96 | "required": ["firstHalf", "secondHalf"], |
| 97 | "properties": { |
| 98 | "firstHalf": { |
| 99 | "type": "integer" |
| 100 | }, |
| 101 | "secondHalf": { |
| 102 | "type": "integer" |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | } |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 108 | } |